mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-17 04:55:51 +00:00
🐛 fix: Correctly handle reasoning_effort (#8180)
This commit is contained in:
@@ -530,6 +530,11 @@ export const generateAIChat: StateCreator<
|
||||
? agentConfig.params.max_tokens
|
||||
: undefined;
|
||||
|
||||
// 4. handle reasoning_effort
|
||||
agentConfig.params.reasoning_effort = chatConfig.enableReasoningEffort
|
||||
? agentConfig.params.reasoning_effort
|
||||
: undefined;
|
||||
|
||||
let isFunctionCall = false;
|
||||
let msgTraceId: string | undefined;
|
||||
let output = '';
|
||||
|
||||
Reference in New Issue
Block a user