Merge pull request #5581 from ConnectAI-E/feature/gemini-functioncall

google gemini support function call
This commit is contained in:
Lloyd Zhou
2024-10-10 21:02:36 +08:00
committed by GitHub
3 changed files with 87 additions and 113 deletions

View File

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