mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-28 04:05: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:
|
||||||
if res.get("choices", []) and len(res["choices"]) > 0:
|
if res.get("choices", []) and len(res["choices"]) > 0:
|
||||||
await update_message_by_id(
|
await update_message_by_id(
|
||||||
|
request,
|
||||||
channel.id,
|
channel.id,
|
||||||
response_message.id,
|
response_message.id,
|
||||||
MessageForm(
|
MessageForm(
|
||||||
|
|
@ -1037,6 +1038,7 @@ async def model_response_handler(request, channel, message, user):
|
||||||
)
|
)
|
||||||
elif res.get("error", None):
|
elif res.get("error", None):
|
||||||
await update_message_by_id(
|
await update_message_by_id(
|
||||||
|
request,
|
||||||
channel.id,
|
channel.id,
|
||||||
response_message.id,
|
response_message.id,
|
||||||
MessageForm(
|
MessageForm(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue