mirror of
https://github.com/james-m-jordan/morphik-core.git
synced 2025-05-09 19:32:38 +00:00
slice azure embeddings as well
This commit is contained in:
parent
7bdc09828a
commit
0857a7f57e
@ -54,7 +54,7 @@ class LiteLLMEmbeddingModel(BaseEmbeddingModel):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
model_params = {"model": self.model_config["model_name"]}
|
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
|
model_params["dimensions"] = PGVECTOR_MAX_DIMENSIONS
|
||||||
|
|
||||||
# Add all model-specific parameters from the config
|
# Add all model-specific parameters from the config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user