From c3942ad9c857d655b05086c92451931b56d6b000 Mon Sep 17 00:00:00 2001 From: Peter Krenesky Date: Tue, 6 Feb 2024 18:57:32 -0800 Subject: [PATCH] OpenAPIRequest should return response json for error responses so an agent may try to correct it. --- ix/runnable/openapi.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/ix/runnable/openapi.py b/ix/runnable/openapi.py index 8d0e8524..a6b7bbf6 100644 --- a/ix/runnable/openapi.py +++ b/ix/runnable/openapi.py @@ -99,7 +99,4 @@ async def ainvoke( client_method = getattr(client, self.method) response = await client_method(**request_kwargs) - if response.status_code != 200: - raise Exception(f"Failed to get schema: {response.content}") - return response.json()