mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-20 04:30:17 +09:00
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(),
|
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user