feat(aisummary): Return null when AI summary retrieval fails to prevent exposing issues to users

This commit is contained in:
anime
2025-07-07 01:50:36 +08:00
parent 40b206b39b
commit 684872fb2f

View File

@@ -27,6 +27,6 @@ export async function getAiSummary(aiSummaryAPI, aiSummaryKey, truncatedText) {
}
} catch (error) {
console.error('ChucklePostAI请求失败', error)
return '获取文章摘要失败,请稍后再试。'
return null
}
}