🐛 fix: Correctly handle reasoning_effort (#8180)

This commit is contained in:
sxjeru
2025-06-15 18:51:27 +08:00
committed by GitHub
parent 619ce9fc8b
commit 1c04736225
@@ -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 = '';