fix(provider): widen interleaved reasoning fields (#39556)

Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
This commit is contained in:
opencode-agent[bot] 2026-07-30 11:10:34 -05:00 committed by GitHub
commit a1ab489e61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 63 additions and 16 deletions

View file

@ -1768,9 +1768,13 @@ export type ProviderConfig = {
temperature?: boolean
tool_call?: boolean
interleaved?:
| true
| boolean
| "reasoning"
| "reasoning_content"
| "reasoning_text"
| string
| {
field: "reasoning" | "reasoning_content" | "reasoning_details"
field: "reasoning" | "reasoning_content" | "reasoning_text" | string
}
cost?: {
input: number
@ -2057,7 +2061,7 @@ export type Model = {
interleaved:
| boolean
| {
field: "reasoning" | "reasoning_content" | "reasoning_details"
field: "reasoning" | "reasoning_content" | "reasoning_text" | string
}
}
cost: {

View file

@ -20820,15 +20820,28 @@
"interleaved": {
"anyOf": [
{
"type": "boolean",
"enum": [true]
"type": "boolean"
},
{
"type": "string",
"enum": ["reasoning", "reasoning_content", "reasoning_text"]
},
{
"type": "string"
},
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": ["reasoning", "reasoning_content", "reasoning_details"]
"anyOf": [
{
"type": "string",
"enum": ["reasoning", "reasoning_content", "reasoning_text"]
},
{
"type": "string"
}
]
}
},
"required": ["field"],
@ -21641,8 +21654,15 @@
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": ["reasoning", "reasoning_content", "reasoning_details"]
"anyOf": [
{
"type": "string",
"enum": ["reasoning", "reasoning_content", "reasoning_text"]
},
{
"type": "string"
}
]
}
},
"required": ["field"],