Timothy Jaeryang Baek 3 月之前
父节点
当前提交
e5bb0f014a
共有 1 个文件被更改,包括 1 次插入0 次删除
  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(