fix typo (#42)

This commit is contained in:
Kristian Nielsen
2025-04-23 09:28:45 +01:00
committed by GitHub
parent da76fd516a
commit ed63a4b592
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -3,4 +3,4 @@
# If you want to push to a local instance of explorer, then specify the app-api docker container name like:
# http://<app-api-docker-container-name>:8000 to push to the local explorer instance.
INVARIANT_API_URL=https://explorer.invariantlabs.ai
GUADRAILS_API_URL=https://explorer.invariantlabs.ai
GUARDRAILS_API_URL=https://explorer.invariantlabs.ai
+2 -2
View File
@@ -75,7 +75,7 @@ async def _preload(guardrails: str, invariant_authorization: str) -> None:
invariant-authorization header.
"""
async with httpx.AsyncClient() as client:
url = os.getenv("GUADRAILS_API_URL", DEFAULT_API_URL).rstrip("/")
url = os.getenv("GUARDRAILS_API_URL", DEFAULT_API_URL).rstrip("/")
result = await client.post(
f"{url}/api/v1/policy/load",
json={"policy": guardrails},
@@ -358,7 +358,7 @@ async def check_guardrails(
Dict: Response containing guardrail check results.
"""
async with httpx.AsyncClient() as client:
url = os.getenv("GUADRAILS_API_URL", DEFAULT_API_URL).rstrip("/")
url = os.getenv("GUARDRAILS_API_URL", DEFAULT_API_URL).rstrip("/")
try:
result = await client.post(
f"{url}/api/v1/policy/check/batch",