mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-10-10 03:30:56 +00:00
fix(embedding): add list type check for embeddings in cache loading
This commit is contained in:
parent
f970d5e778
commit
b1160d3b8e
1 changed files with 1 additions and 1 deletions
|
|
@ -160,7 +160,7 @@ class BaseEmbeddingModel(ABC):
|
|||
# Each line is {cache_key: embedding}
|
||||
cache_key, embedding = next(iter(data.items()))
|
||||
|
||||
if cache_key and embedding:
|
||||
if cache_key and embedding and isinstance(embedding, list):
|
||||
# Skip if already loaded (keep the newest)
|
||||
if cache_key in self._embedding_cache:
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue