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
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ Enter a prompt:
28
28
29
29
```
30
30
31
-
Chat mode with [chat context](#chat-context) and [initial prompt](#set-chat-initial-prompt):
31
+
Chat mode with [initial prompt](#set-chat-initial-prompt):
32
32
```shell
33
33
$ chatgpt -i "You are Rick, from Rick and Morty. Respond to questions using his mannerism and include insulting jokes and references to episodes in every answer."
34
34
Welcome to chatgpt. You can quit with 'exit'.
@@ -91,7 +91,7 @@ This script relies on curl for the requests to the api and jq to parse the json
91
91
### Start
92
92
93
93
#### Chat Mode
94
-
- Run the script by using the `chatgpt` command anywhere
94
+
- Run the script by using the `chatgpt` command anywhere. By default the script uses the `gpt-3.5-turbo` model.
95
95
#### Pipe Mode
96
96
- You can also use it in pipe mode `echo "What is the command to get all pdf files created yesterday?" | chatgpt`
97
97
#### Script Parameters
@@ -107,7 +107,7 @@ This script relies on curl for the requests to the api and jq to parse the json
107
107
108
108
### Chat context
109
109
110
-
- You can enable chat context mode for the model to remember your previous chat questions and answers. This way you can ask follow-up questions. In chat context the model gets a prompt to act as ChatGPT and is aware of today's date and that it's trained with data up until 2021. To enable this mode start the script with `-c` or `--chat-context`. i.e. `chatgpt --chat-context` and start to chat.
110
+
- For models other than `gpt-3.5-turbo` and `gpt-4` where the chat context is not supported by the OpenAI api, you can use the chat context build in this script. You can enable chat context mode for the model to remember your previous chat questions and answers. This way you can ask follow-up questions. In chat context the model gets a prompt to act as ChatGPT and is aware of today's date and that it's trained with data up until 2021. To enable this mode start the script with `-c` or `--chat-context`. i.e. `chatgpt --chat-context` and start to chat.
111
111
112
112
#### Set chat initial prompt
113
113
- You can set your own initial chat prompt to use in chat context mode. The initial prompt will be sent on every request along with your regular prompt so that the OpenAI model will "stay in character". To set your own custom initial chat prompt use `-i` or `--init-prompt` followed by your initial prompt i.e. `chatgpt -i "You are Rick from Rick and Morty, reply with references to episodes."`
@@ -120,7 +120,7 @@ This script relies on curl for the requests to the api and jq to parse the json
120
120
- ✨ The model that ChatGPT web uses is `gpt-3.5-turbo` which is the model that is set by default when starting the script.
121
121
122
122
### Use GPT4
123
-
- If you have access to GPT4 model you can use it by setting the model to `gpt-4`, i.e. `chatgpt --model gpt-4`
123
+
- If you have access to the GPT4 model you can use it by setting the model to `gpt-4`, i.e. `chatgpt --model gpt-4`
0 commit comments