mirror of
https://github.com/invariantlabs-ai/invariant-gateway.git
synced 2026-05-20 14:14:42 +02:00
fix typo (#42)
This commit is contained in:
@@ -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
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user