mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix: allow mutable embedding accumulator
This commit is contained in:
parent
5ce528e3d3
commit
ae12d40eab
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ class LiteLLMRouterEncoder(CustomDenseEncoder, AsymmetricDenseMixin):
|
|||
if self.litellm_router_instance is None:
|
||||
raise ValueError("litellm_router_instance is not set")
|
||||
|
||||
embeddings: list[list[float]] = []
|
||||
embeddings: list[list[float]] = [] # mutable-ok: used to accumulate embeddings in batches
|
||||
|
||||
for i in range(0, len(docs), EMBEDDING_BATCH_SIZE):
|
||||
batch = docs[i : i + EMBEDDING_BATCH_SIZE]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue