Support missing search_fragments and indexing_fragments

This commit is contained in:
Louis Dureuil
2025-09-10 09:43:39 +02:00
parent 4d4f6d2c20
commit ce136ec0c1

View File

@ -140,7 +140,9 @@ pub struct EmbedderOptions {
pub dimensions: Option<usize>, pub dimensions: Option<usize>,
pub url: String, pub url: String,
pub request: Value, pub request: Value,
#[serde(default)] // backward compatibility
pub search_fragments: BTreeMap<String, Value>, pub search_fragments: BTreeMap<String, Value>,
#[serde(default)] // backward compatibility
pub indexing_fragments: BTreeMap<String, Value>, pub indexing_fragments: BTreeMap<String, Value>,
pub response: Value, pub response: Value,
pub headers: BTreeMap<String, String>, pub headers: BTreeMap<String, String>,