Fix ollama embedding options merging bug

This commit is contained in:
Christian Tzolov
2024-02-03 15:34:41 +01:00
parent 0a930d2ab5
commit 4c4e234279

View File

@@ -122,9 +122,11 @@ public class OllamaEmbeddingClient extends AbstractEmbeddingClient {
if (options instanceof OllamaOptions ollamaOptions) {
runtimeOptions = ollamaOptions;
}
// currently EmbeddingOptions does not have any portable options to be
// merged.
runtimeOptions = null;
else {
// currently EmbeddingOptions does not have any portable options to be
// merged.
runtimeOptions = null;
}
}
OllamaOptions mergedOptions = ModelOptionsUtils.merge(runtimeOptions, this.defaultOptions, OllamaOptions.class);