From 4ab24ffcbd34752f2df41c577053f0d8e872c1bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=B8=9C=E4=BA=91?= Date: Wed, 12 Feb 2025 16:59:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=20callGeminiAPI=20?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E5=8F=82=E6=95=B0=E7=B1=BB=E5=9E=8B=E4=BB=A5?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E7=A9=BA=E6=95=B0=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/llm/gemini.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llm/gemini.ts b/src/llm/gemini.ts index ad56077..964a810 100644 --- a/src/llm/gemini.ts +++ b/src/llm/gemini.ts @@ -1,4 +1,4 @@ -async function callGeminiAPI(articleContent: string[]): Promise { +async function callGeminiAPI(articleContent: string[] | []): Promise { // articleContent = `You are a helpful assistant that summarizes WeChat articles.use Chinese: ${articleContent}`; // const response = (await model.generateContent(articleContent)).response; // return response.text();