From 684872fb2f44a13443c770a076f2b767118149c2 Mon Sep 17 00:00:00 2001 From: anime Date: Mon, 7 Jul 2025 01:50:36 +0800 Subject: [PATCH] feat(aisummary): Return null when AI summary retrieval fails to prevent exposing issues to users --- lib/plugins/aiSummary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/aiSummary.js b/lib/plugins/aiSummary.js index 336b9954..67021c64 100644 --- a/lib/plugins/aiSummary.js +++ b/lib/plugins/aiSummary.js @@ -27,6 +27,6 @@ export async function getAiSummary(aiSummaryAPI, aiSummaryKey, truncatedText) { } } catch (error) { console.error('ChucklePostAI:请求失败', error) - return '获取文章摘要失败,请稍后再试。' + return null } }