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
fix(databricks/chat/transformation.py): remove reasoning_effort from request (#9811)
Krish Dholakia8d338aee78ee
diff --git a/litellm/llms/databricks/chat/transformation.py b/litellm/llms/databricks/chat/transformation.pyindex 09c87a91680..bdccf6b9386 100644--- a/litellm/llms/databricks/chat/transformation.py+++ b/litellm/llms/databricks/chat/transformation.py@@ -240,6 +240,7 @@ class DatabricksConfig(DatabricksBase, OpenAILikeChatConfig, AnthropicConfig):optional_params["thinking"] = AnthropicConfig._map_reasoning_effort(non_default_params.get("reasoning_effort"))+ optional_params.pop("reasoning_effort", None)## handle thinking tokensself.update_optional_params_with_thinking_tokens(non_default_params=non_default_params, optional_params=mapped_paramsdiff --git a/tests/llm_translation/base_llm_unit_tests.py b/tests/llm_translation/base_llm_unit_tests.pyindex dee85fde5c0..a8402aaeeeb 100644--- a/tests/llm_translation/base_llm_unit_tests.py+++ b/tests/llm_translation/base_llm_unit_tests.py@@ -1272,3 +1272,5 @@ class BaseAnthropicChatTest(ABC):reasoning_effort="high",)assert optional_params["thinking"] == {"type": "enabled", "budget_tokens": 4096}++ assert "reasoning_effort" not in optional_params\ No newline at end of file