diff options
| author | sigoden <sigoden@gmail.com> | 2023-11-27 18:02:38 +0800 |
|---|---|---|
| committer | sigoden <sigoden@gmail.com> | 2023-11-27 18:02:52 +0800 |
| commit | 0afef991f91b66ca2c10540ecbfffd35ebd00e2a (patch) | |
| tree | a20a9c1aa65c4b23d0e09783fa20429a6f53bc5e | |
| parent | c58912ba6415ac15e3aa28f2b732be3490731939 (diff) | |
| download | aichat-0afef991f91b66ca2c10540ecbfffd35ebd00e2a.tar.gz | |
chore: update cli description and readme
| -rw-r--r-- | Cargo.toml | 2 | ||||
| -rw-r--r-- | README.md | 54 |
2 files changed, 39 insertions, 17 deletions
@@ -3,7 +3,7 @@ name = "aichat" version = "0.10.0" edition = "2021" authors = ["sigoden <sigoden@gmail.com>"] -description = "Use ChatGPT, LocalAI and other LLMs in the terminal." +description = "Use GPT-4(V), LocalAI and other LLMs in the terminal." license = "MIT OR Apache-2.0" homepage = "https://github.com/sigoden/aichat" repository = "https://github.com/sigoden/aichat" @@ -3,9 +3,9 @@ [](https://github.com/sigoden/aichat/actions/workflows/ci.yaml) [](https://crates.io/crates/aichat) -Use ChatGPT, LocalAI and other LLMs in the terminal. +Use GPT-4(V), LocalAI and other LLMs in the terminal. -AIChat in chat mode: +AIChat in chat REPL mode:  @@ -15,10 +15,31 @@ AIChat in command mode: ## Install -### With cargo +### With package management tools +For Rust programmer +```sh +cargo install aichat ``` -cargo install --force aichat + +For macOS Homebrew or a Linuxbrew user +```sh +brew install aichat +``` + +For Windows Scoop user +```sh +scoop install aichat +``` + +For Arch Linux use +```sh +sudo pacman -S ripgrep +``` + +For Android termux user +```sh +pkg install aichat ``` ### Binaries for macOS, Linux, Windows @@ -27,25 +48,24 @@ Download it from [GitHub Releases](https://github.com/sigoden/aichat/releases), ## Support Models -- OpenAI: gpt-3.5/gpt-4 -- LocalAI: opensource models -- Azure-OpenAI: user deployed gpt3.5/gpt4 -- PaLM: chat-bison-001 -- Ernie: eb-instant/ernie-bot/ernie-bot-4 -- Qianwen: qwen-turbo/qwen-plus +- [x] OpenAI: gpt-3.5/gpt-4/gpt-4-vision +- [x] LocalAI: user deployed opensource LLMs +- [x] Azure-OpenAI: user created gpt3.5/gpt4 +- [x] PaLM: chat-bison-001 +- [x] Ernie: ernie-bot-turbo/ernie-bot/ernie-bot-8k/ernie-bot-4 +- [x] Qianwen: qwen-turbo/qwen-plus/qwen-max ## Features -- Support chat and command modes +- With two modes: [chat REPL](#chat-repl) and [command](#command). - Use [Roles](#roles) -- Powerful [Chat REPL](#chat-repl) - Support vision - Context-aware conversation/session - Syntax highlighting markdown and 200 other languages - Stream output with hand-typing effect - Support proxy - Dark/light theme -- Save chat messages/sessions +- Save messages/sessions ## Config @@ -83,9 +103,9 @@ clients: max_tokens: 8192 ``` -Check out [config.example.yaml](config.example.yaml) for all configuration items. +Take a look at the [config.example.yaml](config.example.yaml) for the complete configuration details. -There are some configurations that can be set through environment variables. Please see the [Environment Variables](https://github.com/sigoden/aichat/wiki/Environment-Variables) for details. +There are some configurations that can be set through environment variables. For more information, please refer to the [Environment Variables](https://github.com/sigoden/aichat/wiki/Environment-Variables) page. ### Roles @@ -267,6 +287,8 @@ Usage: .file <file>... [-- text...] .file https://ibb.co/a.png https://ibb.co/b.png -- what is the difference? ``` +> Only the current model that supports vision can process images submitted through `.file` command. + ### `.set` - modify the configuration temporarily ``` @@ -277,7 +299,7 @@ Usage: .file <file>... [-- text...] 〉.set auto_copy true ``` -## Command Line +## Command ``` Usage: aichat [OPTIONS] [TEXT]... |
