mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-24 07:39:27 +01:00
avoid ugly exception
This commit is contained in:
@@ -414,7 +414,7 @@ async def chat_completion_tools_handler(
|
|||||||
content = await get_content_from_response(response)
|
content = await get_content_from_response(response)
|
||||||
log.debug(f"{content=}")
|
log.debug(f"{content=}")
|
||||||
|
|
||||||
if content is None:
|
if not content:
|
||||||
return body, {}
|
return body, {}
|
||||||
|
|
||||||
result = json.loads(content)
|
result = json.loads(content)
|
||||||
|
|||||||
Reference in New Issue
Block a user