fix: 更新 callGeminiAPI 函数参数类型以支持空数组

This commit is contained in:
李东云
2025-02-12 16:59:54 +08:00
parent 0a545a77b0
commit 4ab24ffcbd

View File

@@ -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();