mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac
This commit is contained in:
parent
8187922ef1
commit
ad9a7cb1e2
1 changed files with 1 additions and 1 deletions
|
|
@ -358,7 +358,7 @@ async def generate_chat_completion(
|
||||||
payload = {**form_data}
|
payload = {**form_data}
|
||||||
|
|
||||||
if "metadata" in payload:
|
if "metadata" in payload:
|
||||||
payload.pop("metadata")
|
del payload["metadata"]
|
||||||
|
|
||||||
model_id = form_data.get("model")
|
model_id = form_data.get("model")
|
||||||
model_info = Models.get_model_by_id(model_id)
|
model_info = Models.get_model_by_id(model_id)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue