Timothy Jaeryang Baek 2 mesi fa
parent
commit
e5bb0f014a
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      backend/open_webui/utils/middleware.py

+ 1 - 0
backend/open_webui/utils/middleware.py

@@ -1388,6 +1388,7 @@ async def process_chat_response(
                     retries += 1
                     log.debug(f"Attempt count: {retries}")
 
+                    output = ""
                     try:
                         if content_blocks[-1]["attributes"].get("type") == "code":
                             output = await event_caller(