Skip to content

Commit

Permalink
Merge pull request #10633 from nextcloud/backport/10609/stable4.2
Browse files Browse the repository at this point in the history
[stable4.2] fix: issues with AI integration
  • Loading branch information
hamza221 authored Jan 30, 2025
2 parents 46b3f41 + 445bba0 commit 4c96c23
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/service/AiIntergrationsService.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 4c96c23

Please sign in to comment.