"src/vscode:/vscode.git/clone" did not exist on "327deaee4122b3ff7780e36d0e481c5997dbe1fa"
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