mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 21:42:58 +00:00
refac
This commit is contained in:
parent
9bea1950dc
commit
fa8bb51b81
@ -1328,9 +1328,14 @@
|
|||||||
|
|
||||||
document.getElementById(`speak-button-${responseMessage.id}`)?.click();
|
document.getElementById(`speak-button-${responseMessage.id}`)?.click();
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
await handleOpenAIError(null, res, model, responseMessage);
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
await handleOpenAIError(error, null, model, responseMessage);
|
||||||
|
}
|
||||||
|
|
||||||
if ($chatId == _chatId) {
|
if ($chatId == _chatId) {
|
||||||
if ($settings.saveChatHistory ?? true) {
|
|
||||||
chat = await updateChatById(localStorage.token, _chatId, {
|
chat = await updateChatById(localStorage.token, _chatId, {
|
||||||
models: selectedModels,
|
models: selectedModels,
|
||||||
messages: messages,
|
messages: messages,
|
||||||
@ -1342,13 +1347,7 @@
|
|||||||
currentChatPage.set(1);
|
currentChatPage.set(1);
|
||||||
await chats.set(await getChatList(localStorage.token, $currentChatPage));
|
await chats.set(await getChatList(localStorage.token, $currentChatPage));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else {
|
|
||||||
await handleOpenAIError(null, res, model, responseMessage);
|
|
||||||
}
|
|
||||||
} catch (error) {
|
|
||||||
await handleOpenAIError(error, null, model, responseMessage);
|
|
||||||
}
|
|
||||||
messages = messages;
|
messages = messages;
|
||||||
|
|
||||||
stopResponseFlag = false;
|
stopResponseFlag = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user