From 2ec59eebf6aa1f61a10a05e5dbd73c08135f7261 Mon Sep 17 00:00:00 2001 From: yassin Date: Wed, 2 Sep 2026 15:45:58 +0000 Subject: [PATCH] refactor(xai): trim transform_request docstring that restated the code Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/llms/xai/chat/transformation.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/litellm/llms/xai/chat/transformation.py b/litellm/llms/xai/chat/transformation.py index c6462f10cc9..f9140601101 100644 --- a/litellm/llms/xai/chat/transformation.py +++ b/litellm/llms/xai/chat/transformation.py @@ -211,13 +211,7 @@ class XAIChatConfig(OpenAIGPTConfig): litellm_params: dict, headers: dict, ) -> dict: - """ - Handle https://github.com/BerriAI/litellm/issues/9720 - - Filter out 'name' from messages, and drop 'web_search_options': xAI retired Live Search on - /v1/chat/completions and now answers those requests with a 410. xAI web search lives on the - Responses API, where completion() bridges it to a native 'web_search' tool - """ + """Handle https://github.com/BerriAI/litellm/issues/9720""" if "web_search_options" in optional_params: verbose_logger.warning( "XAI no longer supports web search on /chat/completions (Live Search is deprecated). "