Merge pull request #4430 from open-webui/dev

fix
This commit is contained in:
Timothy Jaeryang Baek 2024-08-07 15:53:11 +02:00 committed by GitHub
commit 99d10d1189
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)