Skip to content

Commit

Permalink
grab correct key if call fails
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed Aug 11, 2024
1 parent 859edb8 commit 5d4dc26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vision_agent/tools/tool_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5d4dc26

Please sign in to comment.