slice azure embeddings as well

This commit is contained in:
Arnav Agrawal 2025-04-08 20:06:18 -07:00
parent 7bdc09828a
commit 0857a7f57e

View File

@ -54,7 +54,7 @@ class LiteLLMEmbeddingModel(BaseEmbeddingModel):
try:
model_params = {"model": self.model_config["model_name"]}
if self.model_config["model_name"] == "text-embedding-3-large":
if self.model_config["model_name"] in ["text-embedding-3-large", "azure/text-embedding-3-large"]:
model_params["dimensions"] = PGVECTOR_MAX_DIMENSIONS
# Add all model-specific parameters from the config