diff --git a/README.md b/README.md index c74b94a..f2c1466 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ you can set their paths and filenames via `HEY_CONFIG_PATH`, `HEY_CONFIG_FILENAM ## config file reference ```toml -model = "Claude" # or "GPT3" +model = "Claude" # or "GPT4OMini" tos = false # whether if you agree to ddg chat tos ``` diff --git a/src/cache.rs b/src/cache.rs index 1583461..969b9b0 100644 --- a/src/cache.rs +++ b/src/cache.rs @@ -76,10 +76,6 @@ impl Cache { } pub fn get_last_vqd<'a, T: From<&'a String>>(self: &'a Self) -> Option { - if self.last_vqd_time - (chrono::Local::now().timestamp_millis() as u64) < 60000 { - Some((&self.last_vqd).into()) - } else { - None - } + None } -} \ No newline at end of file +} diff --git a/src/config.rs b/src/config.rs index 9f7d486..644acb8 100644 --- a/src/config.rs +++ b/src/config.rs @@ -8,10 +8,11 @@ pub enum Model { // outdated Claude12, GPT35, + GPT3, // current Claude, - GPT3, + GPT4OMini, Llama, Mixtral } @@ -25,7 +26,8 @@ impl ToString for Model { Self::Claude => String::from("claude-3-haiku-20240307"), Self::GPT3 => String::from("gpt-3.5-turbo-0125"), Self::Llama => String::from("meta-llama/Llama-3-70b-chat-hf"), - Self::Mixtral => String::from("mistralai/Mixtral-8x7B-Instruct-v0.1") + Self::Mixtral => String::from("mistralai/Mixtral-8x7B-Instruct-v0.1"), + Self::GPT4OMini => String::from("gpt-4o-mini") } } } @@ -92,4 +94,4 @@ impl Config { Ok(conf) } } -} \ No newline at end of file +}