forked from waylaidwanderer/node-chatgpt-api
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings.example.js
27 lines (27 loc) · 1.28 KB
/
settings.example.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
export default {
chatGptClient: {
// (Optional) Parameters as described in https://platform.openai.com/docs/api-reference/completions
modelOptions: {
// https://platform.openai.com/docs/models/overview
model: "text-davinci-003", // official
// unofficial by original author. This might violate terms and conditions, recommend DO NOT USE
// model: 'text-chat-davinci-002-20221122',
},
// (Optional) Set custom instructions instead of "You are ChatGPT...".
// promptPrefix: 'You are Bob, a cowboy in Western times...',
// (Optional) Set a custom name for the user
// userLabel: 'User',
// (Optional) Set a custom name for ChatGPT
// chatGptLabel: 'ChatGPT',
// (Optional) Set to true to enable `console.debug()` logging
debug: false,
},
// Options for the Keyv cache, see https://www.npmjs.com/package/keyv.
// This is used for storing conversations, and supports additional drivers (conversations are stored in memory by default)
cacheOptions: {},
// The port the server will run on (optional, defaults to 4000)
port: 4000,
// If set, ChatGPTClient will use `keyv-file` to store conversations to this JSON file instead of in memory.
// `cacheOptions.store` will override this if set
storageFilePath: "./cache.json",
};