Skip to content

Commit

Permalink
Merge pull request #5720 from ConnectAI-E/hotfix/gemini_invald_argument
Browse files Browse the repository at this point in the history
hotfix for gemini invald argument #5715
  • Loading branch information
Dogtiti authored Oct 25, 2024
2 parents 4745706 + f0b3e10 commit 1110a08
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/client/platforms/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@ export class GeminiProApi implements LLMApi {
requestPayload,
getHeaders(),
// @ts-ignore
[{ functionDeclarations: tools.map((tool) => tool.function) }],
tools.length > 0
? // @ts-ignore
[{ functionDeclarations: tools.map((tool) => tool.function) }]
: [],
funcs,
controller,
// parseSSE
Expand Down

0 comments on commit 1110a08

Please sign in to comment.