fix: gemini response format

This commit is contained in:
Simon
2025-10-24 16:54:05 +08:00
parent 22a25b17f5
commit 7f04f3564a

View File

@@ -42,6 +42,7 @@ export function lenientParseMacroToolCall(
// check
switch (choice.finish_reason) {
case 'tool_calls':
case 'function_call': // gemini
case 'stop': // will try a robust parse
// ✅ Normal
break