From d5b10ea0c1aa80b391e99ff554adf15bc0501401 Mon Sep 17 00:00:00 2001 From: sigoden Date: Thu, 7 Mar 2024 12:31:06 +0000 Subject: chore: fix typos --- README.md | 4 ++-- config.example.yaml | 2 +- src/config/mod.rs | 2 +- src/repl/mod.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2829954..21bef2f 100644 --- a/README.md +++ b/README.md @@ -142,11 +142,11 @@ aichat -e install nvim # Execute aichat -c fibonacci in js # Code aichat -s # REPL + New session -aichat -s sesson1 # REPL + New/Reuse 'session1' +aichat -s session1 # REPL + New/Reuse 'session1' aichat --info # System info aichat -r role1 --info # Role info -aichat -s sesson1 --info # Session info +aichat -s session1 --info # Session info cat data.toml | aichat -c to json > data.json # Pipe IO diff --git a/config.example.yaml b/config.example.yaml index 2d3c58f..429cdf9 100644 --- a/config.example.yaml +++ b/config.example.yaml @@ -36,7 +36,7 @@ clients: # See https://ai.google.dev/docs - type: gemini - api_key: AIxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx + api_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # See https://docs.anthropic.com/claude/reference/getting-started-with-the-api - type: claude diff --git a/src/config/mod.rs b/src/config/mod.rs index ffdb942..d616f65 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -1000,7 +1000,7 @@ impl State { ] } - pub fn notin_session() -> Vec { + pub fn not_in_session() -> Vec { let excludes: HashSet<_> = Self::in_session().into_iter().collect(); Self::all() .into_iter() diff --git a/src/repl/mod.rs b/src/repl/mod.rs index 6ce52f2..4c5540c 100644 --- a/src/repl/mod.rs +++ b/src/repl/mod.rs @@ -35,7 +35,7 @@ lazy_static! { ReplCommand::new( ".session", "Start a context-aware chat session", - State::notin_session(), + State::not_in_session(), ), ReplCommand::new(".info session", "Show session info", State::in_session(),), ReplCommand::new( -- cgit v1.2.3