The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test_openai_azure_embedding_optional_arg
Ishaan Jafferb97e56252d49
diff --git a/tests/local_testing/test_embedding.py b/tests/local_testing/test_embedding.pyindex bf60fe23b88..60e2a0764b7 100644--- a/tests/local_testing/test_embedding.py+++ b/tests/local_testing/test_embedding.py@@ -380,8 +380,16 @@ def test_openai_azure_embedding_optional_arg():azure_ad_token="test",)- assert mock_client.called_once_with(model="test", input=["test"], timeout=600)+ mock_client.assert_called_once_with(+ model="test",+ input=["test"],+ extra_body={"azure_ad_token": "test"},+ timeout=600,+ extra_headers={"X-Stainless-Raw-Response": "true"}+ )+ # Verify azure_ad_token is passed in extra_body, not as a direct parameterassert "azure_ad_token" not in mock_client.call_args.kwargs+ assert mock_client.call_args.kwargs["extra_body"]["azure_ad_token"] == "test"# test_openai_azure_embedding()