diff --git a/web/src/utils/ai.js b/web/src/utils/ai.js index 2f3156ea..59c3311a 100644 --- a/web/src/utils/ai.js +++ b/web/src/utils/ai.js @@ -88,7 +88,7 @@ class Ai { }) }) if (res.status && res.status !== 200) { - return false + throw new Error('请求失败') } return res.body.getReader() }