mirror of
https://github.com/invariantlabs-ai/invariant-gateway.git
synced 2026-08-16 14:00:20 +02:00
Update the format where the user passes the invariant key in the llm provider key header. (#18)
This commit is contained in:
@@ -31,7 +31,7 @@ async def test_gateway_with_invariant_key_in_anthropic_key_header(
|
||||
os.environ,
|
||||
{
|
||||
"ANTHROPIC_API_KEY": anthropic_api_key
|
||||
+ "|invariant-auth: <not needed for test>"
|
||||
+ ";invariant-auth=<not needed for test>"
|
||||
},
|
||||
):
|
||||
client = anthropic.Anthropic(
|
||||
|
||||
@@ -183,7 +183,7 @@ async def test_chat_completion_with_invariant_key_in_openai_key_header(
|
||||
openai_api_key = os.getenv("OPENAI_API_KEY")
|
||||
with patch.dict(
|
||||
os.environ,
|
||||
{"OPENAI_API_KEY": openai_api_key + "|invariant-auth: <not needed for test>"},
|
||||
{"OPENAI_API_KEY": openai_api_key + ";invariant-auth=<not needed for test>"},
|
||||
):
|
||||
client = OpenAI(
|
||||
http_client=Client(),
|
||||
|
||||
Reference in New Issue
Block a user