fix: update default model settings for claude max pro anthropic models (#369)

This commit is contained in:
jnjpng
2025-12-23 12:40:46 -08:00
committed by GitHub
parent f73ef1d552
commit a9ab40bd6e
2 changed files with 46 additions and 1 deletions

View File

@@ -5000,7 +5000,9 @@ Plan file path: ${planFilePath}`;
const { updateAgentLLMConfig } = await import(
"../agent/modify"
);
await updateAgentLLMConfig(agentId, modelHandle);
const { getModelUpdateArgs } = await import("../agent/model");
const updateArgs = getModelUpdateArgs(modelHandle);
await updateAgentLLMConfig(agentId, modelHandle, updateArgs);
// Update current model display
setCurrentModelId(modelHandle);
}}

View File

@@ -46,6 +46,49 @@
"max_output_tokens": 64000
}
},
{
"id": "sonnet-4.5-pro-max",
"handle": "claude-pro-max/claude-sonnet-4-5-20250929",
"label": "Claude Sonnet 4.5 (Pro/Max)",
"description": "Sonnet 4.5 via Claude Pro/Max Plan",
"updateArgs": {
"context_window": 180000,
"max_output_tokens": 64000,
"max_reasoning_tokens": 31999
}
},
{
"id": "sonnet-4.5-no-reasoning-pro-max",
"handle": "claude-pro-max/claude-sonnet-4-5-20250929",
"label": "Claude Sonnet 4.5 (Pro/Max, no reasoning)",
"description": "Sonnet 4.5 via Claude Pro/Max Plan with reasoning disabled",
"updateArgs": {
"enable_reasoner": false,
"context_window": 180000,
"max_output_tokens": 64000
}
},
{
"id": "opus-pro-max",
"handle": "claude-pro-max/claude-opus-4-5-20251101",
"label": "Claude Opus 4.5 (Pro/Max)",
"description": "Opus 4.5 via Claude Pro/Max Plan",
"updateArgs": {
"context_window": 180000,
"max_output_tokens": 64000,
"max_reasoning_tokens": 31999
}
},
{
"id": "haiku-pro-max",
"handle": "claude-pro-max/claude-haiku-4-5-20251001",
"label": "Claude Haiku 4.5 (Pro/Max)",
"description": "Haiku 4.5 via Claude Pro/Max Plan",
"updateArgs": {
"context_window": 180000,
"max_output_tokens": 64000
}
},
{
"id": "gpt-5-codex",
"handle": "openai/gpt-5-codex",