Add files via upload

This commit is contained in:
公明
2026-07-24 14:53:44 +08:00
committed by GitHub
parent 7d1e9bdac4
commit c326adbb66
4 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -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_effortClaude 4.6+ 为 adaptive + output_config.effort(仅显式配置 effort 时下发);3.7 为 enabled+budget_tokens:10000(文档示例),effort 不映射,自定义预算用 extra_request_fields
reasoning:
mode: on # auto | on | offoffOpenAI/Claude 不附加推理字段,DeepSeek 发送 thinking.type=disabled(其默认开启思考)
+2 -2
View File
@@ -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",
+2 -2
View File
@@ -2650,8 +2650,8 @@
"maxTotalTokensPlaceholder": "120000",
"maxTotalTokensHint": "内存压缩和攻击链构建共用此配置,默认 120000",
"maxCompletionTokens": "最大输出 Token 数",
"maxCompletionTokensPlaceholder": "16384",
"maxCompletionTokensHint": "单次模型回复的输出上限,默认 16384",
"maxCompletionTokensPlaceholder": "32768",
"maxCompletionTokensHint": "单次模型回复的输出上限,默认 32768",
"openaiReasoningTitle": "推理设置",
"openaiReasoningHint": "作为该 AI 通道的默认推理设置;对话页「会话设置」可覆盖。",
"openaiReasoningProfile": "线路 profile",
+3 -3
View File
@@ -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;