mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 13:55:19 +00:00
refac
This commit is contained in:
parent
4c989808d6
commit
1ea00a58f9
1 changed files with 2 additions and 2 deletions
|
|
@ -616,7 +616,7 @@ async def process_chat_response(request, response, user, events, metadata, tasks
|
||||||
user,
|
user,
|
||||||
)
|
)
|
||||||
|
|
||||||
if res:
|
if res and isinstance(res, dict):
|
||||||
title = (
|
title = (
|
||||||
res.get("choices", [])[0]
|
res.get("choices", [])[0]
|
||||||
.get("message", {})
|
.get("message", {})
|
||||||
|
|
@ -648,7 +648,7 @@ async def process_chat_response(request, response, user, events, metadata, tasks
|
||||||
user,
|
user,
|
||||||
)
|
)
|
||||||
|
|
||||||
if res:
|
if res and isinstance(res, dict):
|
||||||
tags_string = (
|
tags_string = (
|
||||||
res.get("choices", [])[0]
|
res.get("choices", [])[0]
|
||||||
.get("message", {})
|
.get("message", {})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue