google gemini support function call

This commit is contained in:
lloydzhou
2024-10-03 20:28:15 +08:00
parent cea5b91f96
commit 450766a44b
3 changed files with 87 additions and 112 deletions

View File

@@ -240,6 +240,7 @@ export function stream(
return e.toString();
})
.then((content) => ({
name: tool.function.name,
role: "tool",
content,
tool_call_id: tool.id,