From c326adbb6612c2efa9cb9c06f2367168ca137007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=AC=E6=98=8E?= <83812544+Ed1s0nZ@users.noreply.github.com> Date: Fri, 24 Jul 2026 14:53:44 +0800 Subject: [PATCH] Add files via upload --- config.example.yaml | 2 +- web/static/i18n/en-US.json | 4 ++-- web/static/i18n/zh-CN.json | 4 ++-- web/static/js/settings.js | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/config.example.yaml b/config.example.yaml index db5f4222..d75bbb3a 100644 --- a/config.example.yaml +++ b/config.example.yaml @@ -68,7 +68,7 @@ ai: api_key: sk-xxxxxxx model: qwen3-max max_total_tokens: 120000 - max_completion_tokens: 16384 + max_completion_tokens: 32768 # Eino 路径模型推理:DeepSeek/OpenAI 为 thinking / reasoning_effort;Claude 4.6+ 为 adaptive + output_config.effort(仅显式配置 effort 时下发);3.7 为 enabled+budget_tokens:10000(文档示例),effort 不映射,自定义预算用 extra_request_fields reasoning: mode: on # auto | on | off;off:OpenAI/Claude 不附加推理字段,DeepSeek 发送 thinking.type=disabled(其默认开启思考) diff --git a/web/static/i18n/en-US.json b/web/static/i18n/en-US.json index d5a6dc73..38d580af 100644 --- a/web/static/i18n/en-US.json +++ b/web/static/i18n/en-US.json @@ -2662,8 +2662,8 @@ "maxTotalTokensPlaceholder": "120000", "maxTotalTokensHint": "Shared by memory compression and attack chain building. Default: 120000", "maxCompletionTokens": "Max Output Tokens", - "maxCompletionTokensPlaceholder": "16384", - "maxCompletionTokensHint": "Maximum tokens for a single model response. Default: 16384", + "maxCompletionTokensPlaceholder": "32768", + "maxCompletionTokensHint": "Maximum tokens for a single model response. Default: 32768", "openaiReasoningTitle": "Reasoning settings", "openaiReasoningHint": "Default reasoning settings for this AI channel; chat Session settings can override them.", "openaiReasoningProfile": "Wire profile", diff --git a/web/static/i18n/zh-CN.json b/web/static/i18n/zh-CN.json index 98bd41d8..36180344 100644 --- a/web/static/i18n/zh-CN.json +++ b/web/static/i18n/zh-CN.json @@ -2650,8 +2650,8 @@ "maxTotalTokensPlaceholder": "120000", "maxTotalTokensHint": "内存压缩和攻击链构建共用此配置,默认 120000", "maxCompletionTokens": "最大输出 Token 数", - "maxCompletionTokensPlaceholder": "16384", - "maxCompletionTokensHint": "单次模型回复的输出上限,默认 16384", + "maxCompletionTokensPlaceholder": "32768", + "maxCompletionTokensHint": "单次模型回复的输出上限,默认 32768", "openaiReasoningTitle": "推理设置", "openaiReasoningHint": "作为该 AI 通道的默认推理设置;对话页「会话设置」可覆盖。", "openaiReasoningProfile": "线路 profile", diff --git a/web/static/js/settings.js b/web/static/js/settings.js index fcff3e37..75f1f21e 100644 --- a/web/static/js/settings.js +++ b/web/static/js/settings.js @@ -2519,7 +2519,7 @@ function ensureAIConfigShape(cfg) { function readAIChannelFromMainForm(id) { const prev = currentConfig?.ai?.channels?.[id] || {}; - const maxCompletionTokens = parseInt(document.getElementById('openai-max-completion-tokens')?.value, 10) || 16384; + const maxCompletionTokens = parseInt(document.getElementById('openai-max-completion-tokens')?.value, 10) || 32768; return { ...prev, name: (document.getElementById('ai-channel-name')?.value || '').trim() || prev.name || id, @@ -2559,7 +2559,7 @@ function writeAIChannelToMainForm(id) { const maxTokensEl = document.getElementById('openai-max-total-tokens'); if (maxTokensEl) maxTokensEl.value = ch.max_total_tokens || 120000; const maxCompletionTokensEl = document.getElementById('openai-max-completion-tokens'); - if (maxCompletionTokensEl) maxCompletionTokensEl.value = ch.max_completion_tokens || 16384; + if (maxCompletionTokensEl) maxCompletionTokensEl.value = ch.max_completion_tokens || 32768; const r = ch.reasoning || {}; const modeEl = document.getElementById('openai-reasoning-mode'); if (modeEl) modeEl.value = ['auto', 'on', 'off'].includes(String(r.mode || '').toLowerCase()) ? String(r.mode).toLowerCase() : 'auto'; @@ -2973,7 +2973,7 @@ function createAIChannelFromForm() { base_url: '', model: '', max_total_tokens: 120000, - max_completion_tokens: 16384, + max_completion_tokens: 32768, reasoning: { mode: 'auto', effort: '', profile: 'auto', allow_client_reasoning: true } }; selectedAIChannelId = id;