feat: Enhance Claude MaxTokens configuration handling

- Update Claude relay to set default MaxTokens dynamically
- Modify web interface to clarify default MaxTokens input purpose
- Improve token configuration logic for thinking adapter models
This commit is contained in:
1808837298@qq.com
2025-02-27 22:10:29 +08:00
parent 4784ca7514
commit d0bc8d17d1
2 changed files with 6 additions and 7 deletions

View File

@@ -122,9 +122,10 @@ export default function SettingClaudeModel(props) {
<Row>
<Col span={8}>
<Form.InputNumber
label={t('思考适配 MaxTokens')}
label={t('缺省 MaxTokens')}
field={'claude.thinking_adapter_max_tokens'}
initValue={''}
extraText={t('客户端没有指定MaxTokens时的缺省值')}
onChange={(value) => setInputs({ ...inputs, 'claude.thinking_adapter_max_tokens': value })}
/>
</Col>