Merge pull request #3474 from qixing-jk/feat/aisummary/prevent-error-exposure

feat(aisummary): Return null when AI summary retrieval fails to preve…
This commit is contained in:
tangly1024
2025-07-07 15:06:00 +08:00
committed by GitHub

View File

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