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]

refactor(utils): gate the triton branch on bool(drop_params) like every other provider

mateo-berri1067697c7b47
diff --git a/litellm/utils.py b/litellm/utils.py
index 59db4162410..50282674868 100644
--- a/litellm/utils.py
+++ b/litellm/utils.py
@@ -4302,7 +4302,7 @@ def get_optional_params(
non_default_params=non_default_params,
optional_params=optional_params,
model=model,
- drop_params=drop_params if drop_params is not None else False,
+ drop_params=bool(drop_params),
)
elif custom_llm_provider == "maritalk":