Skip to content

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]

Fix unsupported stop param for grok-code models (#14565)

Sameer Kankute7fd6e62570b9
diff --git a/litellm/llms/xai/chat/transformation.py b/litellm/llms/xai/chat/transformation.py
index 78c20ac5731..b01f6c18466 100644
--- a/litellm/llms/xai/chat/transformation.py
+++ b/litellm/llms/xai/chat/transformation.py
@@ -80,6 +80,8 @@ class XAIChatConfig(OpenAIGPTConfig):
return False
elif "grok-4" in model:
return False
+ elif "grok-code-fast" in model:
+ return False
return True
def _supports_frequency_penalty(self, model: str) -> bool: