about summary refs log tree commit diff stats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 78bb61b..0605dd9 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -10,6 +10,7 @@ struct Config {
     base_url: String,
     key: String,
     model: String,
+    timeout: u64,
 }
 
 async fn get_horoscope(sign: &str) -> String {
@@ -26,7 +27,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
     let client = LlmClient::openai_with_config(
         &config.key,
         Some(&config.base_url),
-        Some(300),
+        Some(config.timeout),
         None,
     )?;
     eprintln!("Config Setup");