mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
fix: "metadata" issue
This commit is contained in:
parent
240a30147d
commit
8187922ef1
1 changed files with 3 additions and 1 deletions
|
|
@ -356,7 +356,9 @@ async def generate_chat_completion(
|
|||
):
|
||||
idx = 0
|
||||
payload = {**form_data}
|
||||
payload.pop("metadata")
|
||||
|
||||
if "metadata" in payload:
|
||||
payload.pop("metadata")
|
||||
|
||||
model_id = form_data.get("model")
|
||||
model_info = Models.get_model_by_id(model_id)
|
||||
|
|
|
|||
Loading…
Reference in a new issue