feat: add GPT-6.2 Astra and GPT-6.2 Sol to Agents and AI Gateway (#32370)
Closes CODAGT-1608 This adds `gpt-6.2-astra` and `gpt-6.2-sol` to the Agents known models catalog, so they're suggested when an admin adds a chat model, and regenerates the AI Gateway price book from models.dev so the gateway can price them. | Model | Input | Output | Cache read | Cache write | |---|---|---|---|---| | GPT-6.2 Astra | $8 | $40 | $0.40 | $10 | | GPT-6.2 Sol | $2 | $10 | $0.10 | $2.50 | Prices are per 1M tokens, and both models have a 1,050,000 token context window and 128,000 max output tokens. They're in the catalog for OpenAI (with a suggested effort of `medium`, same as `gpt-6-astra` and `gpt-6.1-sol`), OpenRouter and Vercel. models.dev doesn't list them on Azure or Bedrock yet, so I've left those out for now. Both models also reject the `none` and `minimal` reasoning efforts. A model config only sets a default and a maximum effort, so the picker always offers both, and picking either one fails the turn: ``` Unsupported value: 'none' is not supported with the 'gpt-6.2-astra' model. Supported values are: 'low', 'medium', 'high', 'xhigh', and 'max'. ``` We already send `low` instead for `gpt-6-astra` and `gpt-6.1-sol`, so to fix, we'll just do the same for the two new models. All four now live in one list of model ID prefixes, rather than a helper each. I checked this against the real models: all four return a 400 like the one above for `none` and `minimal`, and accept `low`. `gpt-6-sol` and `gpt-6.1-terra` still accept `none`, so they're left alone. Regenerating the price book also brings in everything else models.dev changed since the last weekly refresh, mostly on OpenRouter and Vercel: 22 other new entries (4 of them `-pro` and `-fast` variants of these two), 29 it dropped and 51 price changes. 6 existing catalog entries get new prices or limits the same way.
This commit is contained in:
1 parent
7022f3f3b4
commit
feea5ab959
8 files changed
+462
-392
No files matched your search
@@ -200,10 +200,18 @@
|
||||
}
|
||||
],
|
||||
"openai": [
|
||||
{
|
||||
"modelIdentifier": "gpt-6.2-astra",
|
||||
"reasoningEffort": "medium"
|
||||
},
|
||||
{
|
||||
"modelIdentifier": "gpt-6-astra",
|
||||
"reasoningEffort": "medium"
|
||||
},
|
||||
{
|
||||
"modelIdentifier": "gpt-6.2-sol",
|
||||
"reasoningEffort": "medium"
|
||||
},
|
||||
{
|
||||
"modelIdentifier": "gpt-6.1-sol",
|
||||
"reasoningEffort": "medium"
|
||||
@@ -253,9 +261,15 @@
|
||||
}
|
||||
],
|
||||
"openrouter": [
|
||||
{
|
||||
"modelIdentifier": "openai/gpt-6.2-astra"
|
||||
},
|
||||
{
|
||||
"modelIdentifier": "openai/gpt-6-astra"
|
||||
},
|
||||
{
|
||||
"modelIdentifier": "openai/gpt-6.2-sol"
|
||||
},
|
||||
{
|
||||
"modelIdentifier": "openai/gpt-6.1-sol"
|
||||
},
|
||||
@@ -370,9 +384,15 @@
|
||||
}
|
||||
],
|
||||
"vercel": [
|
||||
{
|
||||
"modelIdentifier": "openai/gpt-6.2-astra"
|
||||
},
|
||||
{
|
||||
"modelIdentifier": "openai/gpt-6-astra"
|
||||
},
|
||||
{
|
||||
"modelIdentifier": "openai/gpt-6.2-sol"
|
||||
},
|
||||
{
|
||||
"modelIdentifier": "openai/gpt-6.1-sol"
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user