From 5d4dc2613ef1adf200f9221d1c7e44ff5b08ac4c Mon Sep 17 00:00:00 2001 From: Dillon Laird Date: Sun, 11 Aug 2024 16:34:04 -0700 Subject: [PATCH] grab correct key if call fails --- vision_agent/tools/tool_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vision_agent/tools/tool_utils.py b/vision_agent/tools/tool_utils.py index e1fa69c3..d8d9b44d 100644 --- a/vision_agent/tools/tool_utils.py +++ b/vision_agent/tools/tool_utils.py @@ -62,7 +62,7 @@ def send_inference_request( traceback_raw=[], ) _LOGGER.error(f"Request failed: {res.status_code} {res.text}") - raise RemoteToolCallFailed(payload["tool"], res.status_code, res.text) + raise RemoteToolCallFailed(payload["function_name"], res.status_code, res.text) resp = res.json() tool_call_trace.response = resp