5
5
6
6
Chat with ChatGPT-3.5 in the terminal.
7
7
8
- ![ demo] ( https://user-images.githubusercontent.com/4012553/222897111-dd5015a0-abc1-4c65-a0fb-d491aba3c427 .gif )
8
+ ![ demo] ( https://user-images.githubusercontent.com/4012553/222935716-33dc37df-f58d-4a66-8917-f741fd69682d .gif )
9
9
10
10
## Install
11
11
@@ -22,11 +22,9 @@ Download from [Github Releases](https://github.com/sigoden/aichat/releases), unz
22
22
## Features
23
23
24
24
- Compared to the browser, the terminal starts faster and needs less resources.
25
- - Interactive chat and imperative query.
26
- - Support highlight.
27
- - Predefine prompts for role playing.
28
- - History query/completion.
29
- - Persist chat messages.
25
+ - Highlight chat message and stream.
26
+ - Define roles and let AI play them.
27
+ - Save chat messages.
30
28
- Support proxy.
31
29
- Written in rust, single executable file, cross-platform.
32
30
@@ -81,16 +79,45 @@ We can predefine a batch of roles in `roles.yaml`. For example, we define a emoj
81
79
Let ChatGPT answer questions in the role of a emoji translator
82
80
83
81
```
84
- $ aichat --role emoji I am very angry
82
+ 〉.role emoji
83
+
84
+ 〉I am very angry
85
85
😠💢👿
86
86
```
87
87
88
- In interactive chat, we do this:
88
+ ## CLI
89
89
90
90
```
91
- 〉.role emoji
91
+ Chat with OpenAI GPT-3.5 in the terminal.
92
92
93
- 〉I am very angry
93
+ Usage: aichat [OPTIONS] [TEXT]...
94
+
95
+ Arguments:
96
+ [TEXT]... Input text, if no input text, enter interactive mode
97
+
98
+ Options:
99
+ -L, --list-roles List all roles
100
+ -r, --role <ROLE> Specify the role that the AI will play
101
+ -h, --help Print help
102
+ -V, --version Print version
103
+ ```
104
+
105
+ Interactive chat if no text input:
106
+ ```
107
+ $ aichat
108
+ Welcome to aichat x.x.x
109
+ Type ".help" for more information.
110
+ 〉
111
+ ```
112
+
113
+ Imperative request data:
114
+ ```
115
+ aichat --role emoji I am very angry
116
+ ```
117
+
118
+ Accept pipe:
119
+ ```
120
+ cat text | aichat
94
121
```
95
122
96
123
## License
0 commit comments