Skip to content

Commit

Permalink
fix for the new lm app response
Browse files Browse the repository at this point in the history
  • Loading branch information
aakrem committed Jan 11, 2024
1 parent 1b3f505 commit 2e7fc64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion agenta-backend/agenta_backend/services/llm_apps_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 2e7fc64

Please sign in to comment.