mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
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:
@@ -27,6 +27,6 @@ export async function getAiSummary(aiSummaryAPI, aiSummaryKey, truncatedText) {
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('ChucklePostAI:请求失败', error)
|
||||
return '获取文章摘要失败,请稍后再试。'
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user