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