diff --git a/src/service/AiIntergrationsService.js b/src/service/AiIntergrationsService.js index 6ccdbc153f..b609fffd28 100644 --- a/src/service/AiIntergrationsService.js +++ b/src/service/AiIntergrationsService.js @@ -13,7 +13,9 @@ export const summarizeThread = async (threadId) => { try { const resp = await axios.get(url) - if (resp.status === 204) throw convertAxiosError() + if (resp.status === 204) { + throw new Error('Thread summary failed, error in the llm service') + } return resp.data.data } catch (e) { throw convertAxiosError(e) @@ -40,7 +42,9 @@ export const smartReply = async (messageId) => { try { const resp = await axios.get(url) - if (resp.status === 204) throw convertAxiosError() + if (resp.status === 204) { + throw new Error('Thread summary failed, error in the llm service') + } return resp.data } catch (e) { throw convertAxiosError(e)