فهرست منبع

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,