Browse Source

avoid ugly exception

Michael Poluektov 8 months ago
parent
commit
44966db505
1 changed files with 1 additions and 1 deletions
  1. 1 1
      backend/main.py

+ 1 - 1
backend/main.py

@@ -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)