mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
Retrieve the overriden dimensions from the configuration when fetching settings
This commit is contained in:
parent
7ae4013478
commit
9ac5750096
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue