Skip to content

Commit ddb40dc

Browse files
authored
Merge pull request #10635 from nextcloud/backport/10609/stable3.7
[stable3.7] fix: issues with AI integration
2 parents b7602f6 + 26c0207 commit ddb40dc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/service/AiIntergrationsService.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ export const summarizeThread = async (threadId) => {
99

1010
try {
1111
const resp = await axios.get(url)
12-
if (resp.status === 204) throw convertAxiosError()
12+
if (resp.status === 204) {
13+
throw new Error('Thread summary failed, error in the llm service')
14+
}
1315
return resp.data.data
1416
} catch (e) {
1517
throw convertAxiosError(e)
@@ -36,7 +38,9 @@ export const smartReply = async (messageId) => {
3638

3739
try {
3840
const resp = await axios.get(url)
39-
if (resp.status === 204) throw convertAxiosError()
41+
if (resp.status === 204) {
42+
throw new Error('Thread summary failed, error in the llm service')
43+
}
4044
return resp.data
4145
} catch (e) {
4246
throw convertAxiosError(e)

0 commit comments

Comments
 (0)