mirror of
https://github.com/open-webui/open-webui
synced 2025-03-03 10:52:09 +00:00
refac
This commit is contained in:
parent
4c989808d6
commit
1ea00a58f9
@ -616,7 +616,7 @@ async def process_chat_response(request, response, user, events, metadata, tasks
|
||||
user,
|
||||
)
|
||||
|
||||
if res:
|
||||
if res and isinstance(res, dict):
|
||||
title = (
|
||||
res.get("choices", [])[0]
|
||||
.get("message", {})
|
||||
@ -648,7 +648,7 @@ async def process_chat_response(request, response, user, events, metadata, tasks
|
||||
user,
|
||||
)
|
||||
|
||||
if res:
|
||||
if res and isinstance(res, dict):
|
||||
tags_string = (
|
||||
res.get("choices", [])[0]
|
||||
.get("message", {})
|
||||
|
Loading…
Reference in New Issue
Block a user