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 f89872b commit f0b3e10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/client/platforms/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ export class GeminiProApi implements LLMApi {
getHeaders(),
// @ts-ignore
tools.length > 0
? [{ functionDeclarations: tools.map((tool) => tool.function) }]
? // @ts-ignore
[{ functionDeclarations: tools.map((tool) => tool.function) }]
: [],
funcs,
controller,
Expand Down

0 comments on commit f0b3e10

Please sign in to comment.