mirror of
https://github.com/invariantlabs-ai/invariant-gateway.git
synced 2026-07-09 04:17:48 +02:00
improved unauthorized handling
This commit is contained in:
@@ -18,7 +18,7 @@ openai_client = OpenAI(
|
||||
"Invariant-Authorization": "Bearer " + os.getenv("INVARIANT_API_KEY"),
|
||||
"Invariant-Guardrails": guardrails,
|
||||
},
|
||||
base_url="http://localhost:9999/api/v1/gateway/non-streaming/openai",
|
||||
base_url="http://localhost:8005/api/v1/gateway/non-streaming/openai",
|
||||
)
|
||||
|
||||
response = openai_client.chat.completions.create(
|
||||
|
||||
Reference in New Issue
Block a user