mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
refac: error handling
This commit is contained in:
@@ -1639,10 +1639,12 @@
|
||||
return null;
|
||||
});
|
||||
|
||||
console.log(res);
|
||||
|
||||
if (res) {
|
||||
taskId = res.task_id;
|
||||
if (res.error) {
|
||||
await handleOpenAIError(res.error, responseMessage);
|
||||
} else {
|
||||
taskId = res.task_id;
|
||||
}
|
||||
}
|
||||
|
||||
await tick();
|
||||
|
||||
Reference in New Issue
Block a user