hotfix for gemini invald argument #5715

This commit is contained in:
lloydzhou 2024-10-25 18:19:22 +08:00
parent f89872b833
commit f0b3e10a6c
1 changed files with 2 additions and 1 deletions

View File

@ -193,7 +193,8 @@ export class GeminiProApi implements LLMApi {
getHeaders(), getHeaders(),
// @ts-ignore // @ts-ignore
tools.length > 0 tools.length > 0
? [{ functionDeclarations: tools.map((tool) => tool.function) }] ? // @ts-ignore
[{ functionDeclarations: tools.map((tool) => tool.function) }]
: [], : [],
funcs, funcs,
controller, controller,