Timothy Jaeryang Baek před 3 měsíci
rodič
revize
e5bb0f014a
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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(