mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-26 16:21:07 +00:00
Add security if chat settings parameters are missing
This commit is contained in:
@ -162,10 +162,14 @@ impl ChatCompletionSource {
|
|||||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
|
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct ChatCompletionPrompts {
|
pub struct ChatCompletionPrompts {
|
||||||
|
#[serde(default)]
|
||||||
pub system: String,
|
pub system: String,
|
||||||
|
#[serde(default)]
|
||||||
pub search_description: String,
|
pub search_description: String,
|
||||||
|
#[serde(default)]
|
||||||
pub search_q_param: String,
|
pub search_q_param: String,
|
||||||
pub search_filter_param: String,
|
pub search_filter_param: String,
|
||||||
|
#[serde(default)]
|
||||||
pub search_index_uid_param: String,
|
pub search_index_uid_param: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user