mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-24 18:25:21 +00:00
fix: channel model mention
This commit is contained in:
parent
758325a203
commit
5995771583
1 changed files with 2 additions and 0 deletions
|
|
@ -1023,6 +1023,7 @@ async def model_response_handler(request, channel, message, user):
|
|||
if res:
|
||||
if res.get("choices", []) and len(res["choices"]) > 0:
|
||||
await update_message_by_id(
|
||||
request,
|
||||
channel.id,
|
||||
response_message.id,
|
||||
MessageForm(
|
||||
|
|
@ -1037,6 +1038,7 @@ async def model_response_handler(request, channel, message, user):
|
|||
)
|
||||
elif res.get("error", None):
|
||||
await update_message_by_id(
|
||||
request,
|
||||
channel.id,
|
||||
response_message.id,
|
||||
MessageForm(
|
||||
|
|
|
|||
Loading…
Reference in a new issue