fix: qwen thinking toggle and recall log styles
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user