mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
feat: add new models and ability to override dimensions
This commit is contained in:
parent
84235a63df
commit
fb705116a6
2 changed files with 52 additions and 5 deletions
|
@ -208,6 +208,9 @@ impl From<EmbeddingSettings> for EmbeddingConfig {
|
|||
if let Some(api_key) = api_key.set() {
|
||||
options.api_key = Some(api_key);
|
||||
}
|
||||
if let Some(dimensions) = dimensions.set() {
|
||||
options.dimensions = Some(dimensions);
|
||||
}
|
||||
this.embedder_options = super::EmbedderOptions::OpenAi(options);
|
||||
}
|
||||
EmbedderSource::HuggingFace => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue