You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-4Lines changed: 25 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,17 +27,31 @@ Uses the [gpt-3.5-turbo](https://platform.openai.com/docs/guides/chat/chat-compl
27
27
28
28
## Changelog
29
29
30
-
### 2023-05-20
30
+
### 2023-06-21
31
31
32
-
- Added host configuration support, which is very useful when using self-built API reverse proxy server ([#49](https://github.com/xiaoxx970/chatgpt-in-terminal/issues/49)), you can now use `gpt-term --set-host HOST`to configure host, the default is https://api.openai.com
32
+
- Added direct query mode, now you can run `gpt-term` with the content of the question as a parameter to conduct a single question and answer
33
33
34
-
### 2023-05-18
34
+
```sh
35
+
gpt-term "What's the weather like today?"
36
+
```
35
37
36
-
- Added multi-language support: English, Chinese, Japanese, German, follow the system language by default, now you can use `/lang` to switch languages
38
+
The answer will be printed directly, or piped into a variable
39
+
40
+
```sh
41
+
gpt-term "What's the weather like today"|read answer
42
+
echo$answer
43
+
```
37
44
38
45
<details>
39
46
<summary>More Change log</summary>
40
47
48
+
### 2023-05-20
49
+
50
+
- Added host configuration support, which is very useful when using self-built API reverse proxy server ([#49](https://github.com/xiaoxx970/chatgpt-in-terminal/issues/49)), you can now use `gpt-term --set-host HOST` to configure host, the default is https://api.openai.com
51
+
52
+
### 2023-05-18
53
+
54
+
- Added multi-language support: English, Chinese, Japanese, German, follow the system language by default, now you can use `/lang` to switch languages
41
55
### 2023-05-11
42
56
43
57
- Find the command the user most likely intended to enter when typing an unrecognized command
@@ -49,6 +63,7 @@ Uses the [gpt-3.5-turbo](https://platform.openai.com/docs/guides/chat/chat-compl
49
63
- Add overflow mode switch for `/stream` command, now you can run command `/stream visible` to switch to always visible mode. In this mode, the content that exceeds the screen will be scrolled up, and the new content will be output until it is completed
50
64
51
65
### 2023-04-23
66
+
52
67
Released `gpt-term` on [Pypi](https://pypi.org/project/gpt-term/), started version control. No need to clone the project locally anymore, simply use the `pip` command to install gpt-term.
53
68
54
69
### 2023-04-15
@@ -143,6 +158,12 @@ Or:
143
158
python3 -m gpt_term
144
159
```
145
160
161
+
Quick query:
162
+
163
+
```sh
164
+
gpt-term "What's the weather like today?"
165
+
```
166
+
146
167
When entering a question in single-line mode, use `Esc` + `Enter` to start a new line, and use `Enter` to submit the question.
147
168
148
169
Here are some common shortcut keys (also shortcut keys for the shell):
0 commit comments