feat(embedding): update dimensions parameter to support optional type

This commit is contained in:
jinli.yl 2026-01-14 16:21:33 +08:00
parent ef7c4daa9a
commit 681fb22170

View file

@ -22,7 +22,7 @@ class BaseEmbeddingModel(ABC):
def __init__(
self,
model_name: str = "",
dimensions: int = 1024,
dimensions: int | None = 1024,
max_batch_size: int = 10,
max_retries: int = 3,
raise_exception: bool = True,