From 2e7fc64aa6a4ba81774552e6aa3d45198f58f071 Mon Sep 17 00:00:00 2001 From: Akrem Abayed Date: Thu, 11 Jan 2024 19:38:29 +0100 Subject: [PATCH] fix for the new lm app response --- agenta-backend/agenta_backend/services/llm_apps_service.py | 4 +++- 1 file changed, 3 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 3caa069dbe..f040b85e21 100644 --- a/agenta-backend/agenta_backend/services/llm_apps_service.py +++ b/agenta-backend/agenta_backend/services/llm_apps_service.py @@ -77,7 +77,9 @@ async def invoke_app( url, json=payload, timeout=httpx.Timeout(timeout=5, read=None, write=5) ) response.raise_for_status() - return AppOutput(output=response.json(), status="success") + + lm_app_response = response.json() + return AppOutput(output=lm_app_response["message"], status="success") async def run_with_retry(