chore: spell check

pull/343/head
sigoden 3 months ago
parent b82ae88a15
commit 46cb320aa5

@ -3,7 +3,7 @@
[![CI](https://github.com/sigoden/aichat/actions/workflows/ci.yaml/badge.svg)](https://github.com/sigoden/aichat/actions/workflows/ci.yaml)
[![Crates](https://img.shields.io/crates/v/aichat.svg)](https://crates.io/crates/aichat)
All in one CLI tool for 10+ AI, supports OpenAI, Gemini, Claude, Mistral, LocalAI, Ollama, VertexAI, Ernie, Qianwen...
All in one CLI tool for 10+ AI, including OpenAI, Gemini, Claude, Mistral, LocalAI, Ollama, VertexAI, Ernie, Qianwen...
Command Mode:

@ -682,9 +682,9 @@ impl Config {
}
pub fn should_compress_session(&mut self) -> bool {
if let Some(sesion) = self.session.as_mut() {
if sesion.need_compress(self.compress_threshold) {
sesion.compressing = true;
if let Some(session) = self.session.as_mut() {
if session.need_compress(self.compress_threshold) {
session.compressing = true;
return true;
}
}

@ -167,7 +167,7 @@ fn execute(config: &GlobalConfig, text: &str) -> Result<()> {
println!("{}", markdown_render.render(&eval_str).trim());
let mut describe = false;
loop {
let anwser = Text::new("[e]xecute, [d]escribe, [a]bort: ")
let answer = Text::new("[e]xecute, [d]escribe, [a]bort: ")
.with_default("e")
.with_validator(|input: &str| {
match matches!(input, "E" | "e" | "D" | "d" | "A" | "a") {
@ -181,7 +181,7 @@ fn execute(config: &GlobalConfig, text: &str) -> Result<()> {
println!();
match anwser.as_str() {
match answer.as_str() {
"E" | "e" => {
let code = run_command(&eval_str)?;
if code != 0 {

Loading…
Cancel
Save