"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "0cc4366f70bb58b59024b046e8e3123be424109a"
Commit 8187922e authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: "metadata" issue

parent 240a3014
...@@ -356,7 +356,9 @@ async def generate_chat_completion( ...@@ -356,7 +356,9 @@ async def generate_chat_completion(
): ):
idx = 0 idx = 0
payload = {**form_data} payload = {**form_data}
payload.pop("metadata")
if "metadata" in payload:
payload.pop("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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment