mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
fix(voyage): drop banned typing.Any from contextual transform to satisfy strict lint gate
This commit is contained in:
parent
0769cc2ebc
commit
a1be423632
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue