Add ollama url in settings GET

This commit is contained in:
ManyTheFish 2024-05-02 15:36:13 +02:00
parent 66dce4600d
commit 2373adf9b7

View File

@ -338,7 +338,7 @@ impl From<EmbeddingConfig> for EmbeddingSettings {
api_key: options.api_key.map(Setting::Set).unwrap_or_default(),
dimensions: Setting::NotSet,
document_template: Setting::Set(prompt.template),
url: Setting::NotSet,
url: options.url.map(Setting::Set).unwrap_or_default(),
query: Setting::NotSet,
input_field: Setting::NotSet,
path_to_embeddings: Setting::NotSet,