fix: Fix URL path in POST request helper

This commit is contained in:
Jash Gulabrai 2025-04-10 10:29:03 -04:00
parent 8cd10c1d05
commit 76aa2782a8

View file

@ -109,7 +109,7 @@ class NeMoGuardrails:
headers = {
"Accept": "application/json",
}
response = requests.post(url=f"{self.guardrails_service_url}/{path}", headers=headers, json=data)
response = requests.post(url=f"{self.guardrails_service_url}{path}", headers=headers, json=data)
response.raise_for_status()
return response.json()