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(test_get_llm_provider.py): cover scenario where xai not in model name
Krrish Dholakia267084a1af7d
diff --git a/tests/local_testing/test_get_llm_provider.py b/tests/local_testing/test_get_llm_provider.pyindex 5872d4ea076..fa27a8378cf 100644--- a/tests/local_testing/test_get_llm_provider.py+++ b/tests/local_testing/test_get_llm_provider.py@@ -218,9 +218,10 @@ def test_bedrock_invoke_anthropic():assert model == "invoke/anthropic.claude-3-5-sonnet-20240620-v1:0"-def test_xai_api_base():[email protected]("model", ["xai/grok-2-vision-latest", "grok-2-vision-latest"])+def test_xai_api_base(model):args = {- "model": "xai/grok-2-vision-latest",+ "model": model,"custom_llm_provider": "xai","api_base": None,"api_key": "xai-my-specialkey",