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: pin redirected xai slugs to the target's tier field set
mateoadcfe8cb7f2e
diff --git a/tests/test_litellm/llms/xai/test_xai_redirected_slug_pricing.py b/tests/test_litellm/llms/xai/test_xai_redirected_slug_pricing.pyindex 4b7ba3f75f3..e591c1ae682 100644--- a/tests/test_litellm/llms/xai/test_xai_redirected_slug_pricing.py+++ b/tests/test_litellm/llms/xai/test_xai_redirected_slug_pricing.py@@ -110,6 +110,7 @@ def test_redirected_slug_carries_the_target_tier_rates(cost_map: dict, slug: strentry = cost_map[slug]for field in TIER_COST_FIELDS:assert entry[field] == target[field], field+ assert {k for k in entry if "_above_" in k} == {k for k in target if "_above_" in k}def test_both_cost_maps_agree_on_the_redirected_slugs():