fix(provider): derive variants from reasoning metadata (#36624)

This commit is contained in:
Aiden Cline 2026-07-13 01:21:59 -05:00 committed by GitHub
commit a8062ea314
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 532 additions and 173 deletions

View file

@ -21777,58 +21777,6 @@
"release_date": {
"type": "string"
},
"reasoning_options": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": ["effort"]
},
"values": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": ["type", "values"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": ["toggle"]
}
},
"required": ["type"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": ["budget_tokens"]
},
"min": {
"type": "number"
},
"max": {
"type": "number"
}
},
"required": ["type"],
"additionalProperties": false
}
]
}
},
"variants": {
"type": "object",
"additionalProperties": {