mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-03 02:23:51 +00:00
Update main.py
This commit is contained in:
parent
57d4c35a90
commit
7c527837f0
1 changed files with 1 additions and 1 deletions
|
|
@ -1833,7 +1833,7 @@ async def chat_completion(
|
|||
finally:
|
||||
raise # re-raise to ensure proper task cancellation handling
|
||||
except Exception as e:
|
||||
log.exception('Error processing chat payload: %s', e)
|
||||
log.error('Error processing chat payload: %s', e)
|
||||
if metadata.get('chat_id') and metadata.get('message_id'):
|
||||
# Update the chat message with the error
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue