mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
Merge pull request #839 from sam0jones0/add-claude-4.1-4.5-thinking-support
Add thinking support for Claude 4.1 Opus and 4.5 Sonnet via OpenRouter
This commit is contained in:
@@ -97,7 +97,13 @@ export function openRouterInjectVariants(models: ModelDescriptionSchema[], model
|
||||
models.push(model);
|
||||
|
||||
// inject thinking variants for Anthropic thinking models
|
||||
const antThinkingModels = ['anthropic/claude-opus-4', 'anthropic/claude-sonnet-4', 'anthropic/claude-3-7-sonnet'];
|
||||
const antThinkingModels = [
|
||||
'anthropic/claude-opus-4.1',
|
||||
'anthropic/claude-opus-4',
|
||||
'anthropic/claude-sonnet-4.5',
|
||||
'anthropic/claude-sonnet-4',
|
||||
'anthropic/claude-3-7-sonnet'
|
||||
];
|
||||
if (antThinkingModels.includes(model.id)) {
|
||||
|
||||
// create a thinking variant for the model, by setting 'idVariant' and modifying the label/description
|
||||
|
||||
Reference in New Issue
Block a user