chore: fix typos (#79)

This commit is contained in:
Bob Liu 2025-04-02 01:15:01 +08:00 • committed by GitHub
commit 6a648b8827
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 14 deletions

View file

@ -12,7 +12,7 @@ pub struct Config {
}
impl Config {
pub async fn retrive(path: impl AsRef<Path>) -> anyhow::Result<Self> {
pub async fn retrieve(path: impl AsRef<Path>) -> anyhow::Result<Self> {
let content = tokio::fs::read_to_string(path).await?;
let config: Self = toml::from_str(&content)?;
Ok(config)

View file

@ -11,7 +11,7 @@ pub mod config;
pub mod mcp_adaptor;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let config = config::Config::retrive("config.toml").await?;
let config = config::Config::retrieve("config.toml").await?;
let openai_client = {
if let Some(key) = config.deepseek_key {
deepseek::Client::new(&key)