Skip to content

Commit 3938daf

Browse files
gumabclaude
andcommitted
feat: add Opus [1M] model option to model selector
Adds opus[1m] to the Claude model options alongside the existing sonnet[1m], allowing users to select the Opus model with 1M context window. Closes #579 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1628868 commit 3938daf

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

server/claude-sdk.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function mapCliOptionsToSDK(options = {}) {
193193
sdkOptions.disallowedTools = settings.disallowedTools || [];
194194

195195
// Map model (default to sonnet)
196-
// Valid models: sonnet, opus, haiku, opusplan, sonnet[1m]
196+
// Valid models: sonnet, opus, haiku, opusplan, sonnet[1m], opus[1m]
197197
sdkOptions.model = options.model || CLAUDE_MODELS.DEFAULT;
198198
// Model logged at query start below
199199

server/routes/agent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ class ResponseCollector {
643643
*
644644
* @param {string} model - (Optional) Model identifier for providers.
645645
*
646-
* Claude models: 'sonnet' (default), 'opus', 'haiku', 'opusplan', 'sonnet[1m]'
646+
* Claude models: 'sonnet' (default), 'opus', 'haiku', 'opusplan', 'sonnet[1m]', 'opus[1m]'
647647
* Cursor models: 'gpt-5' (default), 'gpt-5.2', 'gpt-5.2-high', 'sonnet-4.5', 'opus-4.5',
648648
* 'gemini-3-pro', 'composer-1', 'auto', 'gpt-5.1', 'gpt-5.1-high',
649649
* 'gpt-5.1-codex', 'gpt-5.1-codex-high', 'gpt-5.1-codex-max',

shared/modelConstants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export const CLAUDE_MODELS = {
1818
{ value: "haiku", label: "Haiku" },
1919
{ value: "opusplan", label: "Opus Plan" },
2020
{ value: "sonnet[1m]", label: "Sonnet [1M]" },
21+
{ value: "opus[1m]", label: "Opus [1M]" },
2122
],
2223

2324
DEFAULT: "sonnet",

0 commit comments

Comments
 (0)