From ad9a7cb1e2481b9b5c7f7a917427771b2366eeb0 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Wed, 7 Aug 2024 15:52:03 +0200 Subject: [PATCH] refac --- backend/apps/openai/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/openai/main.py b/backend/apps/openai/main.py index a39b2787e..948ee7c46 100644 --- a/backend/apps/openai/main.py +++ b/backend/apps/openai/main.py @@ -358,7 +358,7 @@ async def generate_chat_completion( payload = {**form_data} if "metadata" in payload: - payload.pop("metadata") + del payload["metadata"] model_id = form_data.get("model") model_info = Models.get_model_by_id(model_id)