fix(core): expand reasoning option variants (#36894)
This commit is contained in:
parent
2cb2f9d538
commit
7eb7fe0763
7 changed files with 988 additions and 53 deletions
|
|
@ -13,7 +13,7 @@
|
|||
"attachment": false,
|
||||
"reasoning": true,
|
||||
"reasoning_options": [
|
||||
{ "type": "effort", "values": ["low", "high"] },
|
||||
{ "type": "effort", "values": [null, "null", "low", "high"] },
|
||||
{ "type": "budget_tokens", "min": 1024, "max": 64000 },
|
||||
{ "type": "toggle" }
|
||||
],
|
||||
|
|
@ -27,6 +27,11 @@
|
|||
"headers": { "x-mode": "high" },
|
||||
"body": { "service_tier": "priority" }
|
||||
}
|
||||
},
|
||||
"pro": {
|
||||
"provider": {
|
||||
"body": { "reasoning": { "mode": "pro" } }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -49,18 +54,296 @@
|
|||
"reasoning_options": [{ "type": "budget_tokens", "min": 1024, "max": 64000 }],
|
||||
"temperature": true,
|
||||
"tool_call": true,
|
||||
"limit": { "context": 128000, "output": 8192 }
|
||||
"limit": { "context": 128000, "output": 64000 }
|
||||
},
|
||||
"claude-effort": {
|
||||
"id": "claude-effort",
|
||||
"id": "claude-opus-4.7",
|
||||
"name": "Claude Effort",
|
||||
"release_date": "2026-01-01",
|
||||
"attachment": false,
|
||||
"reasoning": true,
|
||||
"reasoning_options": [{ "type": "toggle" }, { "type": "effort", "values": ["low"] }],
|
||||
"temperature": true,
|
||||
"tool_call": true,
|
||||
"limit": { "context": 128000, "output": 8192 }
|
||||
},
|
||||
"claude-toggle": {
|
||||
"id": "claude-toggle",
|
||||
"name": "Claude Toggle",
|
||||
"release_date": "2026-01-01",
|
||||
"attachment": false,
|
||||
"reasoning": true,
|
||||
"reasoning_options": [{ "type": "toggle" }],
|
||||
"temperature": true,
|
||||
"tool_call": true,
|
||||
"limit": { "context": 128000, "output": 8192 }
|
||||
},
|
||||
"claude-opus-4-5": {
|
||||
"id": "claude-opus-4-5",
|
||||
"name": "Claude Opus 4.5",
|
||||
"release_date": "2026-01-01",
|
||||
"attachment": false,
|
||||
"reasoning": true,
|
||||
"reasoning_options": [
|
||||
{ "type": "effort", "values": ["low", "high"] },
|
||||
{ "type": "budget_tokens", "min": 1024 }
|
||||
],
|
||||
"temperature": true,
|
||||
"tool_call": true,
|
||||
"limit": { "context": 128000, "output": 8192 }
|
||||
}
|
||||
}
|
||||
},
|
||||
"xai": {
|
||||
"id": "xai",
|
||||
"name": "xAI",
|
||||
"env": ["XAI_API_KEY"],
|
||||
"npm": "@ai-sdk/xai",
|
||||
"models": {
|
||||
"grok-4.5": {
|
||||
"id": "grok-4.5",
|
||||
"name": "Grok 4.5",
|
||||
"release_date": "2026-07-08",
|
||||
"attachment": true,
|
||||
"reasoning": true,
|
||||
"reasoning_options": [{ "type": "effort", "values": ["low", "medium", "high"] }],
|
||||
"temperature": true,
|
||||
"tool_call": true,
|
||||
"limit": { "context": 500000, "output": 500000 }
|
||||
}
|
||||
}
|
||||
},
|
||||
"opencode-go": {
|
||||
"id": "opencode-go",
|
||||
"name": "OpenCode Go",
|
||||
"env": ["OPENCODE_API_KEY"],
|
||||
"npm": "@ai-sdk/openai-compatible",
|
||||
"models": {
|
||||
"minimax-m3": {
|
||||
"id": "minimax-m3",
|
||||
"name": "MiniMax-M3",
|
||||
"release_date": "2026-05-31",
|
||||
"attachment": false,
|
||||
"reasoning": true,
|
||||
"reasoning_options": [{ "type": "toggle" }],
|
||||
"temperature": true,
|
||||
"tool_call": true,
|
||||
"limit": { "context": 1000000, "output": 131072 },
|
||||
"provider": { "npm": "@ai-sdk/anthropic" }
|
||||
}
|
||||
}
|
||||
},
|
||||
"alibaba": {
|
||||
"id": "alibaba",
|
||||
"name": "Alibaba",
|
||||
"env": ["ALIBABA_API_KEY"],
|
||||
"npm": "@ai-sdk/alibaba",
|
||||
"models": {
|
||||
"toggle-only": {
|
||||
"id": "toggle-only",
|
||||
"name": "Toggle Only",
|
||||
"release_date": "2026-01-01",
|
||||
"attachment": false,
|
||||
"reasoning": true,
|
||||
"reasoning_options": [{ "type": "toggle" }],
|
||||
"temperature": true,
|
||||
"tool_call": true,
|
||||
"limit": { "context": 128000, "output": 20000 }
|
||||
},
|
||||
"toggle-budget": {
|
||||
"id": "toggle-budget",
|
||||
"name": "Toggle Budget",
|
||||
"release_date": "2026-01-01",
|
||||
"attachment": false,
|
||||
"reasoning": true,
|
||||
"reasoning_options": [{ "type": "toggle" }, { "type": "budget_tokens", "max": 16000 }],
|
||||
"temperature": true,
|
||||
"tool_call": true,
|
||||
"limit": { "context": 128000, "output": 20000 }
|
||||
}
|
||||
}
|
||||
},
|
||||
"vercel": {
|
||||
"id": "vercel",
|
||||
"name": "Vercel AI Gateway",
|
||||
"env": ["AI_GATEWAY_API_KEY"],
|
||||
"npm": "@ai-sdk/gateway",
|
||||
"models": {
|
||||
"alibaba/qwen-toggle": {
|
||||
"id": "alibaba/qwen-toggle",
|
||||
"name": "Gateway Alibaba Toggle",
|
||||
"release_date": "2026-01-01",
|
||||
"attachment": false,
|
||||
"reasoning": true,
|
||||
"reasoning_options": [{ "type": "toggle" }, { "type": "budget_tokens", "max": 16000 }],
|
||||
"temperature": true,
|
||||
"tool_call": true,
|
||||
"limit": { "context": 128000, "output": 20000 }
|
||||
},
|
||||
"amazon/nova-2-lite": {
|
||||
"id": "amazon/nova-2-lite",
|
||||
"name": "Gateway Nova 2 Lite",
|
||||
"release_date": "2026-01-01",
|
||||
"attachment": false,
|
||||
"reasoning": true,
|
||||
"reasoning_options": [{ "type": "toggle" }, { "type": "effort", "values": ["low", "high"] }],
|
||||
"temperature": true,
|
||||
"tool_call": true,
|
||||
"limit": { "context": 128000, "output": 20000 }
|
||||
},
|
||||
"deepseek/deepseek-toggle": {
|
||||
"id": "deepseek/deepseek-toggle",
|
||||
"name": "Gateway DeepSeek Toggle",
|
||||
"release_date": "2026-01-01",
|
||||
"attachment": false,
|
||||
"reasoning": true,
|
||||
"reasoning_options": [{ "type": "toggle" }, { "type": "effort", "values": ["low", "high"] }],
|
||||
"temperature": true,
|
||||
"tool_call": true,
|
||||
"limit": { "context": 128000, "output": 20000 }
|
||||
}
|
||||
}
|
||||
},
|
||||
"openrouter": {
|
||||
"id": "openrouter",
|
||||
"name": "OpenRouter",
|
||||
"env": ["OPENROUTER_API_KEY"],
|
||||
"npm": "@openrouter/ai-sdk-provider",
|
||||
"models": {
|
||||
"openrouter-toggle": {
|
||||
"id": "openrouter-toggle",
|
||||
"name": "OpenRouter Toggle",
|
||||
"release_date": "2026-01-01",
|
||||
"attachment": false,
|
||||
"reasoning": true,
|
||||
"reasoning_options": [{ "type": "toggle" }],
|
||||
"temperature": true,
|
||||
"tool_call": true,
|
||||
"limit": { "context": 128000, "output": 20000 }
|
||||
}
|
||||
}
|
||||
},
|
||||
"google": {
|
||||
"id": "google",
|
||||
"name": "Google",
|
||||
"env": ["GOOGLE_GENERATIVE_AI_API_KEY"],
|
||||
"npm": "@ai-sdk/google",
|
||||
"models": {
|
||||
"gemini-2.5-flash": {
|
||||
"id": "gemini-2.5-flash",
|
||||
"name": "Gemini 2.5 Flash",
|
||||
"release_date": "2026-01-01",
|
||||
"attachment": false,
|
||||
"reasoning": true,
|
||||
"reasoning_options": [{ "type": "toggle" }, { "type": "budget_tokens", "min": 0, "max": 16000 }],
|
||||
"temperature": true,
|
||||
"tool_call": true,
|
||||
"limit": { "context": 128000, "output": 20000 }
|
||||
}
|
||||
}
|
||||
},
|
||||
"google-vertex": {
|
||||
"id": "google-vertex",
|
||||
"name": "Google Vertex",
|
||||
"env": ["GOOGLE_VERTEX_PROJECT"],
|
||||
"npm": "@ai-sdk/google-vertex",
|
||||
"models": {
|
||||
"gemini-2.5-flash-lite": {
|
||||
"id": "gemini-2.5-flash-lite",
|
||||
"name": "Gemini 2.5 Flash Lite",
|
||||
"release_date": "2026-01-01",
|
||||
"attachment": false,
|
||||
"reasoning": true,
|
||||
"reasoning_options": [{ "type": "toggle" }, { "type": "budget_tokens", "min": 512, "max": 16000 }],
|
||||
"temperature": true,
|
||||
"tool_call": true,
|
||||
"limit": { "context": 128000, "output": 20000 }
|
||||
}
|
||||
}
|
||||
},
|
||||
"amazon-bedrock": {
|
||||
"id": "amazon-bedrock",
|
||||
"name": "Amazon Bedrock",
|
||||
"env": ["AWS_ACCESS_KEY_ID"],
|
||||
"npm": "@ai-sdk/amazon-bedrock",
|
||||
"models": {
|
||||
"amazon.nova-2-lite-v1:0": {
|
||||
"id": "amazon.nova-2-lite-v1:0",
|
||||
"name": "Nova 2 Lite",
|
||||
"release_date": "2026-01-01",
|
||||
"attachment": false,
|
||||
"reasoning": true,
|
||||
"reasoning_options": [{ "type": "toggle" }, { "type": "effort", "values": ["low", "high"] }],
|
||||
"temperature": true,
|
||||
"tool_call": true,
|
||||
"limit": { "context": 128000, "output": 20000 }
|
||||
}
|
||||
}
|
||||
},
|
||||
"sap-ai-core": {
|
||||
"id": "sap-ai-core",
|
||||
"name": "SAP AI Core",
|
||||
"env": ["AICORE_SERVICE_KEY"],
|
||||
"npm": "@jerome-benoit/sap-ai-provider-v2",
|
||||
"models": {
|
||||
"gemini-2.5-flash": {
|
||||
"id": "gemini-2.5-flash",
|
||||
"name": "Gemini 2.5 Flash",
|
||||
"release_date": "2026-01-01",
|
||||
"attachment": false,
|
||||
"reasoning": true,
|
||||
"reasoning_options": [{ "type": "toggle" }, { "type": "budget_tokens", "min": 0, "max": 16000 }],
|
||||
"temperature": true,
|
||||
"tool_call": true,
|
||||
"limit": { "context": 128000, "output": 20000 }
|
||||
},
|
||||
"amazon--nova-lite": {
|
||||
"id": "amazon--nova-lite",
|
||||
"name": "Nova Lite",
|
||||
"release_date": "2026-01-01",
|
||||
"attachment": false,
|
||||
"reasoning": true,
|
||||
"reasoning_options": [{ "type": "toggle" }, { "type": "effort", "values": ["low", "high"] }],
|
||||
"temperature": true,
|
||||
"tool_call": true,
|
||||
"limit": { "context": 128000, "output": 20000 }
|
||||
},
|
||||
"cohere--command-a-reasoning": {
|
||||
"id": "cohere--command-a-reasoning",
|
||||
"name": "Command A Reasoning",
|
||||
"release_date": "2026-01-01",
|
||||
"attachment": false,
|
||||
"reasoning": true,
|
||||
"reasoning_options": [
|
||||
{ "type": "toggle" },
|
||||
{ "type": "effort", "values": ["low", "high"] },
|
||||
{ "type": "budget_tokens", "min": 1 }
|
||||
],
|
||||
"temperature": true,
|
||||
"tool_call": true,
|
||||
"limit": { "context": 128000, "output": 20000 }
|
||||
},
|
||||
"anthropic--claude-4.7-opus": {
|
||||
"id": "anthropic--claude-4.7-opus",
|
||||
"name": "Claude 4.7 Opus",
|
||||
"release_date": "2026-01-01",
|
||||
"attachment": false,
|
||||
"reasoning": true,
|
||||
"reasoning_options": [{ "type": "effort", "values": ["low"] }],
|
||||
"temperature": true,
|
||||
"tool_call": true,
|
||||
"limit": { "context": 128000, "output": 8192 }
|
||||
"limit": { "context": 128000, "output": 20000 }
|
||||
},
|
||||
"anthropic--claude-4-sonnet": {
|
||||
"id": "anthropic--claude-4-sonnet",
|
||||
"name": "Claude 4 Sonnet",
|
||||
"release_date": "2026-01-01",
|
||||
"attachment": false,
|
||||
"reasoning": true,
|
||||
"reasoning_options": [{ "type": "budget_tokens", "min": 1024, "max": 16000 }],
|
||||
"temperature": true,
|
||||
"tool_call": true,
|
||||
"limit": { "context": 128000, "output": 20000 }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue