소스 검색

hotfix for gemini invald argument #5715

lloydzhou 1 년 전
부모
커밋
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,