mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
fix: allow batch embedding result reassignment
This commit is contained in:
parent
78b8a5f415
commit
ebb34775fa
1 changed files with 1 additions and 1 deletions
|
|
@ -153,7 +153,7 @@ class LiteLLMRouterEncoder(CustomDenseEncoder, AsymmetricDenseMixin):
|
|||
batch = docs[i : i + EMBEDDING_BATCH_SIZE]
|
||||
|
||||
try:
|
||||
embeds: Final = await self.litellm_router_instance.aembedding(
|
||||
embeds = await self.litellm_router_instance.aembedding( # rebind-ok: one result per batch
|
||||
input=self._clamp(batch),
|
||||
model=self.model_name,
|
||||
**kwargs,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue