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]

style: ruff format

Devin AId415c2856f14
diff --git a/litellm/llms/xai/responses/transformation.py b/litellm/llms/xai/responses/transformation.py
index 007cecbe049..291d7a5f690 100644
--- a/litellm/llms/xai/responses/transformation.py
+++ b/litellm/llms/xai/responses/transformation.py
@@ -92,9 +92,7 @@ class XAIResponsesAPIConfig(OpenAIResponsesAPIConfig):
)
domains: Final = tool.get("filters") or tool
- filters: Final = {
- key: domains[key] for key in ("allowed_domains", "excluded_domains") if key in domains
- }
+ filters: Final = {key: domains[key] for key in ("allowed_domains", "excluded_domains") if key in domains}
if filters:
xai_tool["filters"] = filters