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: Use .get() method to access additional_drop_params for MyPy compatibility

mzagar761798e5c7b2
diff --git a/litellm/llms/custom_httpx/llm_http_handler.py b/litellm/llms/custom_httpx/llm_http_handler.py
index a23a26721c9..f4ea50bda4c 100644
--- a/litellm/llms/custom_httpx/llm_http_handler.py
+++ b/litellm/llms/custom_httpx/llm_http_handler.py
@@ -1845,7 +1845,7 @@ class BaseLLMHTTPHandler:
)
# Apply additional_drop_params for nested field removal
- additional_drop_params = litellm_params.additional_drop_params
+ additional_drop_params = litellm_params.get("additional_drop_params")
if additional_drop_params:
from litellm.litellm_core_utils.dot_notation_indexing import (
delete_nested_value,