mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 05:24:02 +00:00
commit
99d10d1189
@ -356,7 +356,9 @@ async def generate_chat_completion(
|
||||
):
|
||||
idx = 0
|
||||
payload = {**form_data}
|
||||
payload.pop("metadata")
|
||||
|
||||
if "metadata" in payload:
|
||||
del payload["metadata"]
|
||||
|
||||
model_id = form_data.get("model")
|
||||
model_info = Models.get_model_by_id(model_id)
|
||||
|
Loading…
Reference in New Issue
Block a user