fixed embedding dimensions to get stripped model

This commit is contained in:
Lucas Oliveira 2025-09-30 16:20:59 -03:00
parent d6b100459f
commit d018a96923

View file

@ -10,6 +10,8 @@ def get_embedding_dimensions(model_name: str) -> int:
# Check all model dictionaries
all_models = {**OPENAI_EMBEDDING_DIMENSIONS, **OLLAMA_EMBEDDING_DIMENSIONS, **WATSONX_EMBEDDING_DIMENSIONS}
model_name = model_name.lower().strip().split(":")[0]
if model_name in all_models:
dimensions = all_models[model_name]
logger.info(f"Found dimensions for model '{model_name}': {dimensions}")