Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
f96a2a18
Commit
f96a2a18
authored
Feb 26, 2026
by
cagedbird043
Browse files
feat(opencode): 更新 opencode.json 模板至 Claude 4.6(默认启用 thinking)
parent
f955b04a
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/keys/UseKeyModal.vue
View file @
f96a2a18
...
@@ -883,25 +883,38 @@ function generateOpenCodeConfig(platform: string, baseUrl: string, apiKey: strin
...
@@ -883,25 +883,38 @@ function generateOpenCodeConfig(platform: string, baseUrl: string, apiKey: strin
}
}
}
}
const
claudeModels
=
{
const
claudeModels
=
{
'
claude-opus-4-
5
-thinking
'
:
{
'
claude-opus-4-
6
-thinking
'
:
{
name
:
'
Claude Opus
4.5
Thinking
'
,
name
:
'
Claude
4.6
Opus
(
Thinking
)
'
,
limit
:
{
limit
:
{
context
:
200000
,
context
:
200000
,
output
:
64000
output
:
128000
}
},
},
modalities
:
{
'
claude-sonnet-4-5-thinking
'
:
{
input
:
[
'
text
'
,
'
image
'
,
'
pdf
'
],
name
:
'
Claude Sonnet 4.5 Thinking
'
,
output
:
[
'
text
'
]
limit
:
{
},
context
:
200000
,
options
:
{
output
:
64000
thinking
:
{
budgetTokens
:
24576
,
type
:
'
enabled
'
}
}
}
},
},
'
claude-sonnet-4-
5
'
:
{
'
claude-sonnet-4-
6
'
:
{
name
:
'
Claude Sonnet
4.5
'
,
name
:
'
Claude
4.6
Sonnet
'
,
limit
:
{
limit
:
{
context
:
200000
,
context
:
200000
,
output
:
64000
output
:
64000
},
modalities
:
{
input
:
[
'
text
'
,
'
image
'
,
'
pdf
'
],
output
:
[
'
text
'
]
},
options
:
{
thinking
:
{
budgetTokens
:
24576
,
type
:
'
enabled
'
}
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment