Correctly support document templates on the chat API

This commit is contained in:
Clément Renault 2025-05-21 15:32:34 +02:00
parent c6930c8819
commit 75c3f33478
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
8 changed files with 72 additions and 52 deletions

View file

@ -1,5 +1,3 @@
use std::collections::BTreeMap;
use actix_web::web::{self, Data};
use actix_web::HttpResponse;
use index_scheduler::IndexScheduler;
@ -51,7 +49,6 @@ pub struct GlobalChatSettings {
pub base_api: Option<String>,
pub api_key: Option<String>,
pub prompts: ChatPrompts,
pub indexes: BTreeMap<String, ChatIndexSettings>,
}
#[derive(Debug, Serialize, Deserialize)]
@ -105,7 +102,6 @@ impl Default for GlobalChatSettings {
.to_string(),
pre_query: "".to_string(),
},
indexes: BTreeMap::new(),
}
}
}