Skip to content

Commit 10c18f5

Browse files
docs: update readme and example settings
1 parent 0a32b7a commit 10c18f5

File tree

2 files changed

+25
-13
lines changed

2 files changed

+25
-13
lines changed

README.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@
1010

1111
See OpenAI's post, [Introducing ChatGPT and Whisper APIs](https://openai.com/blog/introducing-chatgpt-and-whisper-apis) for more information.
1212

13-
To use it, set `modelOptions.model` to `gpt-3.5-turbo`, and `ChatGPTClient` will handle the rest. You can still set `userLabel`, `chatGptLabel` and `promptPrefix` (system instructions) as usual.
13+
~~To use it, set `modelOptions.model` to `gpt-3.5-turbo`, and `ChatGPTClient` will handle the rest.~~
14+
The default model used in `ChatGPTClient` is now `gpt-3.5-turbo`.
15+
You can still set `userLabel`, `chatGptLabel` and `promptPrefix` (system instructions) as usual.
1416

15-
**There may be a high chance of your account being banned if you continue to automate chat.openai.com.** Continue doing so at your own risk.
17+
**There may be a higher chance of your account being banned if you continue to automate chat.openai.com.** Continue doing so at your own risk.
1618
</details>
1719

1820
<details>
@@ -185,7 +187,8 @@ module.exports = {
185187
// (Optional) Parameters as described in https://platform.openai.com/docs/api-reference/completions
186188
modelOptions: {
187189
// You can override the model name and any other parameters here.
188-
// model: 'text-chat-davinci-002-20221122',
190+
// The default model is `gpt-3.5-turbo`.
191+
model: 'gpt-3.5-turbo',
189192
// Set max_tokens here to override the default max_tokens of 1000 for the completion.
190193
// max_tokens: 1000,
191194
},
@@ -195,11 +198,13 @@ module.exports = {
195198
// Earlier messages will be dropped until the prompt is within the limit.
196199
// maxPromptTokens: 3097,
197200
// (Optional) Set custom instructions instead of "You are ChatGPT...".
198-
// promptPrefix: 'You are Bob, a cowboy in Western times...',
199201
// (Optional) Set a custom name for the user
200202
// userLabel: 'User',
201-
// (Optional) Set a custom name for ChatGPT
202-
// chatGptLabel: 'ChatGPT',
203+
// (Optional) Set a custom name for ChatGPT ("ChatGPT" by default)
204+
// chatGptLabel: 'Bob',
205+
// promptPrefix: 'You are Bob, a cowboy in Western times...',
206+
// A proxy string like "http://<ip>:<port>"
207+
proxy: '',
203208
// (Optional) Set to true to enable `console.debug()` logging
204209
debug: false,
205210
},
@@ -224,21 +229,23 @@ module.exports = {
224229
accessToken: '',
225230
// Cookies from chat.openai.com (likely not required if using reverse proxy server).
226231
cookies: '',
232+
// A proxy string like "http://<ip>:<port>"
233+
proxy: '',
227234
// (Optional) Set to true to enable `console.debug()` logging
228-
// debug: true,
235+
debug: false,
229236
},
230237
// Options for the API server
231238
apiOptions: {
232239
port: process.env.API_PORT || 3000,
233240
host: process.env.API_HOST || 'localhost',
234241
// (Optional) Set to true to enable `console.debug()` logging
235242
debug: false,
236-
// (Optional) Set to "bing" to use `BingAIClient` instead of `ChatGPTClient`.
243+
// (Optional) Possible options: "chatgpt", "chatgpt-browser", "bing".
237244
// clientToUse: 'bing',
238245
},
239246
// Options for the CLI app
240247
cliOptions: {
241-
// (Optional) Set to "bing" to use `BingAIClient` instead of `ChatGPTClient`.
248+
// (Optional) Possible options: "chatgpt", "bing".
242249
// clientToUse: 'bing',
243250
},
244251
};

settings.example.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ export default {
1515
// (Optional) Parameters as described in https://platform.openai.com/docs/api-reference/completions
1616
modelOptions: {
1717
// You can override the model name and any other parameters here.
18-
// model: 'text-chat-davinci-002-20221122',
18+
// The default model is `gpt-3.5-turbo`.
19+
model: 'gpt-3.5-turbo',
1920
// Set max_tokens here to override the default max_tokens of 1000 for the completion.
2021
// max_tokens: 1000,
2122
},
@@ -30,6 +31,8 @@ export default {
3031
// (Optional) Set a custom name for ChatGPT ("ChatGPT" by default)
3132
// chatGptLabel: 'Bob',
3233
// promptPrefix: 'You are Bob, a cowboy in Western times...',
34+
// A proxy string like "http://<ip>:<port>"
35+
proxy: '',
3336
// (Optional) Set to true to enable `console.debug()` logging
3437
debug: false,
3538
},
@@ -54,21 +57,23 @@ export default {
5457
accessToken: '',
5558
// Cookies from chat.openai.com (likely not required if using reverse proxy server).
5659
cookies: '',
60+
// A proxy string like "http://<ip>:<port>"
61+
proxy: '',
5762
// (Optional) Set to true to enable `console.debug()` logging
58-
// debug: true,
63+
debug: false,
5964
},
6065
// Options for the API server
6166
apiOptions: {
6267
port: process.env.API_PORT || 3000,
6368
host: process.env.API_HOST || 'localhost',
6469
// (Optional) Set to true to enable `console.debug()` logging
6570
debug: false,
66-
// (Optional) Set to "bing" to use `BingAIClient` instead of `ChatGPTClient`.
71+
// (Optional) Possible options: "chatgpt", "chatgpt-browser", "bing".
6772
// clientToUse: 'bing',
6873
},
6974
// Options for the CLI app
7075
cliOptions: {
71-
// (Optional) Set to "bing" to use `BingAIClient` instead of `ChatGPTClient`.
76+
// (Optional) Possible options: "chatgpt", "bing".
7277
// clientToUse: 'bing',
7378
},
7479
}

0 commit comments

Comments
 (0)