fix: gemini response format
This commit is contained in:
@@ -42,6 +42,7 @@ export function lenientParseMacroToolCall(
|
|||||||
// check
|
// check
|
||||||
switch (choice.finish_reason) {
|
switch (choice.finish_reason) {
|
||||||
case 'tool_calls':
|
case 'tool_calls':
|
||||||
|
case 'function_call': // gemini
|
||||||
case 'stop': // will try a robust parse
|
case 'stop': // will try a robust parse
|
||||||
// ✅ Normal
|
// ✅ Normal
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user