We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c37a977 commit 9105f67Copy full SHA for 9105f67
src/config.ts
@@ -42,12 +42,16 @@ export function setupConfig(initConfig?: Partial<Config>): void {
42
config = { ...config, ...initConfig };
43
}
44
45
- if (config.port === 0) {
46
- config.port = 3700;
47
- }
48
- if (config.rateLimit === 0) {
49
- config.rateLimit = 10;
+ config.port ??= 3700;
+ config.rateLimit ??= 60;
+ config.coolDown ??= 3;
+ config.timeout ??= 180;
+ config.simulateRoles ??= 2;
50
+
51
+ if (!config?.accessTokens?.length) {
52
+ config.accessTokens = [];
53
54
55
if (!config.bot) {
56
config.bot = {
57
"gpt-3.5-turbo-16k": "ChatGPT-16k",
0 commit comments