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 bug

LingXuanYindf5db48c3cea
diff --git a/litellm/llms/volcengine/chat/transformation.py b/litellm/llms/volcengine/chat/transformation.py
index 3a6daee025b..6df1cd38267 100644
--- a/litellm/llms/volcengine/chat/transformation.py
+++ b/litellm/llms/volcengine/chat/transformation.py
@@ -95,7 +95,7 @@ class VolcEngineChatConfig(OpenAILikeChatConfig):
if (
thinking_value is not None
and isinstance(thinking_value, dict)
- and thinking_value.get("type", None) in ["enabled", "disabled", "auto"], # legal values, see docs
+ and thinking_value.get("type", None) in ["enabled", "disabled", "auto"] # legal values, see docs
):
# Add thinking parameter to extra_body for all legal cases
optional_params.setdefault("extra_body", {})["thinking"] = thinking_value