Compare commits

..

No commits in common. "ffa2bc9bd23fb8ff70b314c63d7646c4b6549b0d" and "1baf800e3d1852f972a5d30b933f35572c964b97" have entirely different histories.

3 changed files with 10 additions and 8 deletions

View File

@ -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 "GPT4OMini"
model = "Claude" # or "GPT3"
tos = false # whether if you agree to ddg chat tos
```

View File

@ -76,6 +76,10 @@ impl Cache {
}
pub fn get_last_vqd<'a, T: From<&'a String>>(self: &'a Self) -> Option<T> {
None
if self.last_vqd_time - (chrono::Local::now().timestamp_millis() as u64) < 60000 {
Some((&self.last_vqd).into())
} else {
None
}
}
}
}

View File

@ -8,11 +8,10 @@ pub enum Model {
// outdated
Claude12,
GPT35,
GPT3,
// current
Claude,
GPT4OMini,
GPT3,
Llama,
Mixtral
}
@ -26,8 +25,7 @@ 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::GPT4OMini => String::from("gpt-4o-mini")
Self::Mixtral => String::from("mistralai/Mixtral-8x7B-Instruct-v0.1")
}
}
}
@ -94,4 +92,4 @@ impl Config {
Ok(conf)
}
}
}
}