Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9a6d84db
authored
Feb 27, 2025
by
1808837298@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: Reorganize Claude MaxTokens configuration UI layout
parent
96e73ad8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
web/src/pages/Setting/Model/SettingClaudeModel.js
+11
-9
No files found.
web/src/pages/Setting/Model/SettingClaudeModel.js
View file @
9a6d84db
...
...
@@ -103,6 +103,17 @@ export default function SettingClaudeModel(props) {
<
/Col
>
<
/Row
>
<
Row
>
<
Col
span
=
{
8
}
>
<
Form
.
InputNumber
label
=
{
t
(
'缺省 MaxTokens'
)}
field
=
{
'claude.thinking_adapter_max_tokens'
}
initValue
=
{
''
}
extraText
=
{
t
(
'客户端没有指定MaxTokens时的缺省值'
)}
onChange
=
{(
value
)
=>
setInputs
({
...
inputs
,
'claude.thinking_adapter_max_tokens'
:
value
})}
/
>
<
/Col
>
<
/Row
>
<
Row
>
<
Col
span
=
{
16
}
>
<
Form
.
Switch
label
=
{
t
(
'启用Claude思考适配(-thinking后缀)'
)}
...
...
@@ -122,15 +133,6 @@ export default function SettingClaudeModel(props) {
<
Row
>
<
Col
span
=
{
8
}
>
<
Form
.
InputNumber
label
=
{
t
(
'缺省 MaxTokens'
)}
field
=
{
'claude.thinking_adapter_max_tokens'
}
initValue
=
{
''
}
extraText
=
{
t
(
'客户端没有指定MaxTokens时的缺省值'
)}
onChange
=
{(
value
)
=>
setInputs
({
...
inputs
,
'claude.thinking_adapter_max_tokens'
:
value
})}
/
>
<
/Col
>
<
Col
span
=
{
8
}
>
<
Form
.
InputNumber
label
=
{
t
(
'思考适配 BudgetTokens 百分比'
)}
field
=
{
'claude.thinking_adapter_budget_tokens_percentage'
}
initValue
=
{
''
}
...
...
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