diff --git a/.env b/.env index 6fa5ec4..ae81d93 100644 --- a/.env +++ b/.env @@ -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://:8000 to push to the local explorer instance. INVARIANT_API_URL=https://explorer.invariantlabs.ai -GUADRAILS_API_URL=https://explorer.invariantlabs.ai \ No newline at end of file +GUARDRAILS_API_URL=https://explorer.invariantlabs.ai \ No newline at end of file diff --git a/gateway/integrations/guardrails.py b/gateway/integrations/guardrails.py index c84e44d..ca25016 100644 --- a/gateway/integrations/guardrails.py +++ b/gateway/integrations/guardrails.py @@ -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",