fix: 更新 callGeminiAPI 函数参数类型以支持空数组
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
async function callGeminiAPI(articleContent: string[]): Promise<any> {
|
||||
async function callGeminiAPI(articleContent: string[] | []): Promise<any> {
|
||||
// articleContent = `You are a helpful assistant that summarizes WeChat articles.use Chinese: ${articleContent}`;
|
||||
// const response = (await model.generateContent(articleContent)).response;
|
||||
// return response.text();
|
||||
|
||||
Reference in New Issue
Block a user