Browse Source

fix: arena model selected model id

Timothy Jaeryang Baek 1 month ago
parent
commit
d7363fd65f
1 changed files with 6 additions and 0 deletions
  1. 6 0
      backend/open_webui/utils/middleware.py

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

@@ -1906,6 +1906,12 @@ async def process_chat_response(
                                             "selectedModelId": model_id,
                                         },
                                     )
+                                    await event_emitter(
+                                        {
+                                            "type": "chat:completion",
+                                            "data": data,
+                                        }
+                                    )
                                 else:
                                     choices = data.get("choices", [])
                                     if not choices: