Skip to content

Commit

Permalink
hotfix for gemini invald argument #5715
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydzhou committed Oct 25, 2024
1 parent 4745706 commit f89872b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/client/platforms/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ export class GeminiProApi implements LLMApi {
requestPayload,
getHeaders(),
// @ts-ignore
[{ functionDeclarations: tools.map((tool) => tool.function) }],
tools.length > 0
? [{ functionDeclarations: tools.map((tool) => tool.function) }]
: [],
funcs,
controller,
// parseSSE
Expand Down

0 comments on commit f89872b

Please sign in to comment.