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(voyage): drop banned typing.Any from contextual transform to satisfy strict lint gate

fzowla1be4236322d
diff --git a/litellm/llms/voyage/embedding/transformation_contextual.py b/litellm/llms/voyage/embedding/transformation_contextual.py
index d473450a969..0c02f00fbd5 100644
--- a/litellm/llms/voyage/embedding/transformation_contextual.py
+++ b/litellm/llms/voyage/embedding/transformation_contextual.py
@@ -3,7 +3,7 @@ This module is used to transform the request and response for the Voyage context
This would be used for all the contextualized embeddings models in Voyage.
"""
-from typing import Any, Final
+from typing import Final
import httpx
@@ -167,7 +167,7 @@ class VoyageContextualEmbeddingConfig(BaseEmbeddingConfig):
``enable_auto_chunking=True`` requires ``input_type="document"``, so set
it unless the caller already provided an ``input_type``.
"""
- params: dict[str, Any] = { # mutable-ok: building return value
+ params: dict[str, object] = { # mutable-ok: building return value
"enable_auto_chunking": True,
"chunk_size": cls.AUTO_CHUNK_SIZE,
}