hotfix for gemini invald argument #5715
This commit is contained in:
parent
f89872b833
commit
f0b3e10a6c
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue