We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f16358 commit f943cc5Copy full SHA for f943cc5
ui/src/views/application/component/GeneratePromptDialog.vue
@@ -309,6 +309,12 @@ const getWrite = (reader: any) => {
309
if (split) {
310
for (const index in split) {
311
const chunk = JSON?.parse(split[index].replace('data:', ''))
312
+ if (chunk.error) {
313
+ loading.value = false
314
+ stopStreaming()
315
+ middleAnswer.content = chunk.error
316
+ return Promise.reject(new Error(chunk.error))
317
+ }
318
if (!chunk.is_end) {
319
// 实时将新接收的内容添加到完整内容中
320
fullContent.value += chunk.content
0 commit comments