fix: qwen thinking toggle and recall log styles

This commit is contained in:
2026-02-08 18:12:55 +08:00
parent b4e181caea
commit 8fdce7b9a1
4 changed files with 147 additions and 324 deletions

View File

@@ -240,6 +240,9 @@ class StreamingGeneration {
include_reasoning: oai_settings?.show_thoughts ?? true,
reasoning_effort: oai_settings?.reasoning_effort || 'medium',
};
if (baseOptions?.enable_thinking !== undefined) body.enable_thinking = baseOptions.enable_thinking;
if (baseOptions?.thinking_budget !== undefined) body.thinking_budget = baseOptions.thinking_budget;
if (baseOptions?.min_p !== undefined) body.min_p = baseOptions.min_p;
// Claude 专用top_k
if (source === chat_completion_sources.CLAUDE) {
@@ -949,6 +952,9 @@ class StreamingGeneration {
temperature: this.parseOpt(args, 'temperature'),
presence_penalty: this.parseOpt(args, 'presence_penalty'),
frequency_penalty: this.parseOpt(args, 'frequency_penalty'),
enable_thinking: this.parseOpt(args, 'enable_thinking'),
thinking_budget: this.parseOpt(args, 'thinking_budget'),
min_p: this.parseOpt(args, 'min_p'),
};
let parsedStop;
try {