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 fix xai - it goes through base llm tests already
Ishaan Jaffcf4c639dad38
diff --git a/tests/llm_translation/test_xai.py b/tests/llm_translation/test_xai.pyindex 727a76b16c9..59fdf8ceb70 100644--- a/tests/llm_translation/test_xai.py+++ b/tests/llm_translation/test_xai.py@@ -130,36 +130,6 @@ def test_xai_grok_4_stop_not_supported(model):assert "stop" not in supported_params[email protected]("stream", [False, True])-def test_completion_xai(stream):- try:- litellm.set_verbose = True- messages = [- {"role": "system", "content": "You're a good bot"},- {- "role": "user",- "content": "Hey",- },- ]- response = completion(model="xai/grok-4", messages=messages, stream=stream)- print(response)-- if stream is True:- for chunk in response:- print(chunk)- assert chunk is not None- assert isinstance(chunk, litellm.ModelResponseStream)- assert isinstance(chunk.choices[0], litellm.utils.StreamingChoices)-- else:- assert response is not None- assert isinstance(response, litellm.ModelResponse)- assert response.choices[0].message.content is not None- except litellm.ServiceUnavailableError as e:- pytest.fail(f"Timeout occurred: {e}")- except Exception as e:- pytest.fail(f"Error occurred: {e}")-def test_xai_message_name_filtering():messages = [