mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 20:35:19 +00:00
refac
This commit is contained in:
parent
a2e0fbc943
commit
00f3a9cb52
2 changed files with 3 additions and 1 deletions
|
|
@ -322,7 +322,7 @@ export const generateOpenAIChatCompletion = async (
|
|||
return res.json();
|
||||
})
|
||||
.catch((err) => {
|
||||
error = `OpenAI: ${err?.detail ?? 'Network Problem'}`;
|
||||
error = `${err?.detail ?? 'Network Problem'}`;
|
||||
return null;
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -1558,10 +1558,12 @@
|
|||
},
|
||||
`${WEBUI_BASE_URL}/api`
|
||||
).catch((error) => {
|
||||
console.log(error);
|
||||
responseMessage.error = {
|
||||
content: error
|
||||
};
|
||||
responseMessage.done = true;
|
||||
history.messages[responseMessageId] = responseMessage;
|
||||
return null;
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue