mirror of
https://github.com/alibaba/page-agent.git
synced 2026-10-28 02:57:35 +08:00
fix: gemini response format
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user