|
|
@ -22,14 +22,14 @@ Download from [Github Releases](https://github.com/sigoden/aichat/releases), unz
|
|
|
|
|
|
|
|
|
|
|
|
## Features
|
|
|
|
## Features
|
|
|
|
|
|
|
|
|
|
|
|
- [x] Powerful REPL
|
|
|
|
- Predefine AI [roles](#roles)
|
|
|
|
- [x] Predefine AI roles
|
|
|
|
- Use GPT prompt easily
|
|
|
|
- [x] Add GPT prompt
|
|
|
|
- Powerful [Chat REPL](#chat-repl)
|
|
|
|
- [x] Markdown highlight
|
|
|
|
- Markdown highlight
|
|
|
|
- [x] Stream output
|
|
|
|
- Stream output
|
|
|
|
- [x] Multiline input
|
|
|
|
- Multiline input
|
|
|
|
- [x] Proxy support
|
|
|
|
- Proxy support
|
|
|
|
- [x] Save chat messages
|
|
|
|
- Save chat messages
|
|
|
|
|
|
|
|
|
|
|
|
## Config
|
|
|
|
## Config
|
|
|
|
|
|
|
|
|
|
|
@ -53,23 +53,7 @@ highlight: true # optional, Set false to turn highlight
|
|
|
|
proxy: "socks5://127.0.0.1:1080" # optional, set proxy server. e.g. http://127.0.0.1:8080 or socks5://127.0.0.1:1080
|
|
|
|
proxy: "socks5://127.0.0.1:1080" # optional, set proxy server. e.g. http://127.0.0.1:8080 or socks5://127.0.0.1:1080
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
> You can customize the configuration directory through `$AICHAT_CONFIG_DIR`
|
|
|
|
> You can specify the configuration directory through `$AICHAT_CONFIG_DIR`
|
|
|
|
|
|
|
|
|
|
|
|
Use the `.info` command to get current configuration information.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
〉.info
|
|
|
|
|
|
|
|
config_file /home/alice/.config/aichat/config.yaml
|
|
|
|
|
|
|
|
roles_file /home/alice/.config/aichat/roles.yaml
|
|
|
|
|
|
|
|
messages_file /home/alice/.config/aichat/messages.md
|
|
|
|
|
|
|
|
role -
|
|
|
|
|
|
|
|
api_key sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
|
|
|
|
|
|
temperature -
|
|
|
|
|
|
|
|
save true
|
|
|
|
|
|
|
|
highlight true
|
|
|
|
|
|
|
|
proxy -
|
|
|
|
|
|
|
|
dry_run false
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Roles
|
|
|
|
### Roles
|
|
|
|
|
|
|
|
|
|
|
@ -122,7 +106,7 @@ aichat calculate 25.6 + 32.5
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
```sh
|
|
|
|
aichat -r bash flip the image horizontally
|
|
|
|
aichat -r shell flip the image horizontally
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Enter Chat REPL if no text input.
|
|
|
|
Enter Chat REPL if no text input.
|
|
|
@ -174,6 +158,23 @@ Type ".help" for more information.
|
|
|
|
Press Ctrl+C to abort session, Ctrl+D to exit the REPL
|
|
|
|
Press Ctrl+C to abort session, Ctrl+D to exit the REPL
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- View current configuration information.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
〉.info
|
|
|
|
|
|
|
|
config_file /home/alice/.config/aichat/config.yaml
|
|
|
|
|
|
|
|
roles_file /home/alice/.config/aichat/roles.yaml
|
|
|
|
|
|
|
|
messages_file /home/alice/.config/aichat/messages.md
|
|
|
|
|
|
|
|
role -
|
|
|
|
|
|
|
|
api_key sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
|
|
|
|
|
|
temperature -
|
|
|
|
|
|
|
|
save true
|
|
|
|
|
|
|
|
highlight true
|
|
|
|
|
|
|
|
proxy -
|
|
|
|
|
|
|
|
dry_run false
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- Modify the configuration temporarily
|
|
|
|
- Modify the configuration temporarily
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
```
|
|
|
|