Skip to content

Commit

Permalink
Use http body instead of header for runtime_tag
Browse files Browse the repository at this point in the history
  • Loading branch information
humpydonkey committed May 13, 2024
1 parent f52282e commit a528b0d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vision_agent/tools/tool_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@
def _send_inference_request(
payload: Dict[str, Any], endpoint_name: str
) -> Dict[str, Any]:
# runtime_tag is used to differentiate different internal callers
runtime_tag = os.environ.get("RUNTIME_TAG", "")
if runtime_tag := os.environ.get("RUNTIME_TAG", ""):
payload["runtime_tag"] = runtime_tag
res = requests.post(
f"{_LND_API_URL}/model/{endpoint_name}",
headers={
"Content-Type": "application/json",
"apikey": _LND_API_KEY,
"runtime-tag": runtime_tag,
},
json=payload,
)
Expand Down

0 comments on commit a528b0d

Please sign in to comment.