mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 12:55:19 +00:00
avoid ugly exception
This commit is contained in:
parent
9652c8f8af
commit
44966db505
1 changed files with 1 additions and 1 deletions
|
|
@ -414,7 +414,7 @@ async def chat_completion_tools_handler(
|
|||
content = await get_content_from_response(response)
|
||||
log.debug(f"{content=}")
|
||||
|
||||
if content is None:
|
||||
if not content:
|
||||
return body, {}
|
||||
|
||||
result = json.loads(content)
|
||||
|
|
|
|||
Loading…
Reference in a new issue