mirror of
https://github.com/open-webui/open-webui
synced 2025-02-22 21:32:32 +00:00
commit
ee0152c1fa
@ -470,7 +470,7 @@ class ChatTable:
|
|||||||
try:
|
try:
|
||||||
with get_db() as db:
|
with get_db() as db:
|
||||||
# it is possible that the shared link was deleted. hence,
|
# it is possible that the shared link was deleted. hence,
|
||||||
# we check if the chat is still shared by checkng if a chat with the share_id exists
|
# we check if the chat is still shared by checking if a chat with the share_id exists
|
||||||
chat = db.query(Chat).filter_by(share_id=id).first()
|
chat = db.query(Chat).filter_by(share_id=id).first()
|
||||||
|
|
||||||
if chat:
|
if chat:
|
||||||
|
@ -483,13 +483,13 @@ async def chat_image_generation_handler(
|
|||||||
{
|
{
|
||||||
"type": "status",
|
"type": "status",
|
||||||
"data": {
|
"data": {
|
||||||
"description": f"An error occured while generating an image",
|
"description": f"An error occurred while generating an image",
|
||||||
"done": True,
|
"done": True,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
system_message_content = "<context>Unable to generate an image, tell the user that an error occured</context>"
|
system_message_content = "<context>Unable to generate an image, tell the user that an error occurred</context>"
|
||||||
|
|
||||||
if system_message_content:
|
if system_message_content:
|
||||||
form_data["messages"] = add_or_update_system_message(
|
form_data["messages"] = add_or_update_system_message(
|
||||||
|
Loading…
Reference in New Issue
Block a user