mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
feat: no text response error message
This commit is contained in:
@@ -245,6 +245,13 @@
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
responseMessage.done = true;
|
responseMessage.done = true;
|
||||||
|
|
||||||
|
if (responseMessage.content == '') {
|
||||||
|
responseMessage.error = true;
|
||||||
|
responseMessage.content =
|
||||||
|
'Oops! No text generated from Ollama, Please try again.';
|
||||||
|
}
|
||||||
|
|
||||||
responseMessage.context = data.context ?? null;
|
responseMessage.context = data.context ?? null;
|
||||||
responseMessage.info = {
|
responseMessage.info = {
|
||||||
total_duration: data.total_duration,
|
total_duration: data.total_duration,
|
||||||
|
|||||||
@@ -259,6 +259,13 @@
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
responseMessage.done = true;
|
responseMessage.done = true;
|
||||||
|
|
||||||
|
if (responseMessage.content == '') {
|
||||||
|
responseMessage.error = true;
|
||||||
|
responseMessage.content =
|
||||||
|
'Oops! No text generated from Ollama, Please try again.';
|
||||||
|
}
|
||||||
|
|
||||||
responseMessage.context = data.context ?? null;
|
responseMessage.context = data.context ?? null;
|
||||||
responseMessage.info = {
|
responseMessage.info = {
|
||||||
total_duration: data.total_duration,
|
total_duration: data.total_duration,
|
||||||
|
|||||||
Reference in New Issue
Block a user