OpenAiEmbeddingModel failes to instantiate unless embedding-model-dimensions.properties
is manually added to class path
#1709
Labels
embedding-model-dimensions.properties
is manually added to class path
#1709
Please do a quick search on GitHub issues first, there might be already a duplicate issue for the one you are about to create.
If the bug is trivial, just go ahead and create the issue. Otherwise, please take a few moments and fill in the following sections:
Bug description
org.springframework.ai.embedding.AbstractEmbeddingModel
functionloadKnownModelDimensions
is called statically to load a properties fileclasspath:/embedding/embedding-model-dimensions.properties
that is not guaranteed to be in the classpath.It should be possible to:
Environment
SpringAI SNAPSHOT-1.0.0
Steps to reproduce
Attempt to instantiate
OpenAiEmbeddingModel
without manually placing the properties file in the class path.Expected behavior
N/A
Minimal Complete Reproducible example
The text was updated successfully, but these errors were encountered: