fix(core): type models.dev reasoning options

This commit is contained in:
Aiden Cline 2026-06-09 19:39:42 -05:00
commit e8c63dbf83
8 changed files with 122 additions and 29 deletions

View file

@ -2082,9 +2082,20 @@ export type Model = {
capabilities: {
temperature: boolean
reasoning: boolean
reasoningOptions?: Array<{
[key: string]: unknown
}>
reasoningOptions?: Array<
| {
type: "toggle"
}
| {
type: "effort"
values: Array<string>
}
| {
type: "budget_tokens"
min?: number
max?: number
}
>
attachment: boolean
toolcall: boolean
input: {
@ -2881,9 +2892,20 @@ export type ModelV2Info = {
}
capabilities: {
tools: boolean
reasoningOptions?: Array<{
[key: string]: unknown
}>
reasoningOptions?: Array<
| {
type: "toggle"
}
| {
type: "effort"
values: Array<string>
}
| {
type: "budget_tokens"
min?: number
max?: number
}
>
input: Array<string>
output: Array<string>
}
@ -4236,9 +4258,20 @@ export type ModelV2Info1 = {
}
capabilities: {
tools: boolean
reasoningOptions?: Array<{
[key: string]: unknown
}>
reasoningOptions?: Array<
| {
type: "toggle"
}
| {
type: "effort"
values: Array<string>
}
| {
type: "budget_tokens"
min?: number
max?: number
}
>
input: Array<string>
output: Array<string>
}