Skip to content

Commit

Permalink
grab correct key if call fails (#195)
Browse files Browse the repository at this point in the history
* grab correct key if call fails

* fixed format
  • Loading branch information
dillonalaird authored Aug 11, 2024
1 parent 859edb8 commit 38949a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vision_agent/tools/tool_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ 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 38949a4

Please sign in to comment.