Retrieve the overriden dimensions from the configuration when fetching settings

This commit is contained in:
Louis Dureuil 2024-02-07 10:37:59 +01:00
parent 7ae4013478
commit 9ac5750096
No known key found for this signature in database

View File

@ -176,7 +176,7 @@ impl From<EmbeddingConfig> for EmbeddingSettings {
model: Setting::Set(options.embedding_model.name().to_owned()),
revision: Setting::NotSet,
api_key: options.api_key.map(Setting::Set).unwrap_or_default(),
dimensions: Setting::NotSet,
dimensions: options.dimensions.map(Setting::Set).unwrap_or_default(),
document_template: Setting::Set(prompt.template),
},
super::EmbedderOptions::UserProvided(options) => Self {