Просмотр исходного кода

hotfix for gemini invald argument #5715

lloydzhou 1 год назад
Родитель
Сommit
f0b3e10a6c
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      app/client/platforms/google.ts

+ 2 - 1
app/client/platforms/google.ts

@@ -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,