rest embedder: use json_template

This commit is contained in:
Louis Dureuil 2024-07-16 15:04:40 +02:00
parent 4109182ca4
commit a1beddd5d9
No known key found for this signature in database
2 changed files with 174 additions and 159 deletions

View file

@ -228,7 +228,9 @@ impl Embedder {
EmbedderOptions::UserProvided(options) => {
Self::UserProvided(manual::Embedder::new(options))
}
EmbedderOptions::Rest(options) => Self::Rest(rest::Embedder::new(options)?),
EmbedderOptions::Rest(options) => {
Self::Rest(rest::Embedder::new(options, rest::ConfigurationSource::User)?)
}
})
}