From 84e5871b5f42ff7627abe972015eb4e92a0f2e3d Mon Sep 17 00:00:00 2001 From: Mahmoud Mabrouk Date: Thu, 13 Jun 2024 18:53:28 +0200 Subject: [PATCH] fix(backend): candidate hotfix for failing evals Just made sure not add a parameter if it not already in the db --- agenta-backend/agenta_backend/services/llm_apps_service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agenta-backend/agenta_backend/services/llm_apps_service.py b/agenta-backend/agenta_backend/services/llm_apps_service.py index 2accbfe509..322f262de0 100644 --- a/agenta-backend/agenta_backend/services/llm_apps_service.py +++ b/agenta-backend/agenta_backend/services/llm_apps_service.py @@ -52,7 +52,8 @@ async def make_payload( elif param["type"] == "file_url": payload[param["name"]] = datapoint.get(param["name"], "") else: - payload[param["name"]] = parameters[param["name"]] + if param["name"] in parameters: # hotfix + payload[param["name"]] = parameters[param["name"]] if inputs_dict: payload["inputs"] = inputs_dict