Browse Source

chore: format

Timothy Jaeryang Baek 4 tháng trước cách đây
mục cha
commit
5c74e56bd0
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      backend/open_webui/utils/middleware.py

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

@@ -1027,7 +1027,9 @@ async def process_chat_response(
                 messages.append(
                     {
                         **message,
-                        "role": message.get("role", "assistant"),  # Safe fallback for missing role
+                        "role": message.get(
+                            "role", "assistant"
+                        ),  # Safe fallback for missing role
                         "content": content,
                     }
                 )