Browse Source

chore: format

Timothy Jaeryang Baek 1 month ago
parent
commit
5c74e56bd0
1 changed files with 3 additions and 1 deletions
  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,
                     }
                 )