Update the format where the user passes the invariant key in the llm provider key header. (#18)

This commit is contained in:
Hemang Sarkar
2025-03-06 10:57:32 +01:00
committed by GitHub
parent 73f42e7938
commit adfabd5b12
5 changed files with 11 additions and 11 deletions
@@ -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(),