mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-22 18:17:39 +08:00
Small adjustments to respect the spec
This commit is contained in:
parent
5b51cb04af
commit
a4536b1381
@ -35,6 +35,8 @@ pub struct EmbedderOptions {
|
|||||||
#[deserr(rename_all = camelCase, deny_unknown_fields)]
|
#[deserr(rename_all = camelCase, deny_unknown_fields)]
|
||||||
pub enum EmbeddingModel {
|
pub enum EmbeddingModel {
|
||||||
#[default]
|
#[default]
|
||||||
|
#[serde(rename = "text-embedding-ada-002")]
|
||||||
|
#[deserr(rename = "text-embedding-ada-002")]
|
||||||
TextEmbeddingAda002,
|
TextEmbeddingAda002,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -243,8 +243,8 @@ pub struct OpenAiEmbedderSettings {
|
|||||||
#[serde(default, skip_serializing_if = "Setting::is_not_set")]
|
#[serde(default, skip_serializing_if = "Setting::is_not_set")]
|
||||||
#[deserr(default)]
|
#[deserr(default)]
|
||||||
pub api_key: Setting<String>,
|
pub api_key: Setting<String>,
|
||||||
#[serde(default, skip_serializing_if = "Setting::is_not_set")]
|
#[serde(default, skip_serializing_if = "Setting::is_not_set", rename = "model")]
|
||||||
#[deserr(default)]
|
#[deserr(default, rename = "model")]
|
||||||
pub embedding_model: Setting<crate::vector::openai::EmbeddingModel>,
|
pub embedding_model: Setting<crate::vector::openai::EmbeddingModel>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user