Tweaking OAI settings
This commit is contained in:
@@ -18,9 +18,6 @@ use songbird::SerenityInit;
|
||||
|
||||
mod commands;
|
||||
mod database;
|
||||
|
||||
pub const MIGRATIONS: diesel_migrations::EmbeddedMigrations = diesel_migrations::embed_migrations!("migrations");
|
||||
|
||||
struct Handler {
|
||||
// Open AI Config
|
||||
oai: Option<commands::oai::OAI>,
|
||||
@@ -125,7 +122,7 @@ async fn main() {
|
||||
Ok(token) => {
|
||||
info!("Loaded OpenAI token");
|
||||
Handler {
|
||||
oai: Some(commands::oai::OAI { client: reqwest::Client::new(), base_url: "https://api.openai.com/v1".to_string(), max_attempts: 5, token }),
|
||||
oai: Some(commands::oai::OAI { client: reqwest::Client::new(), base_url: "https://api.openai.com/v1".to_string(), max_attempts: 5, token , max_context_questions: 10 }),
|
||||
pool
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user