Upload eat-cookie.js
Browse files- eat-cookie.js +2 -2
eat-cookie.js
CHANGED
@@ -43,7 +43,7 @@ async function sendRequest() {
|
|
43 |
"messages": messages,
|
44 |
"model": models[modelIndex],
|
45 |
"temperature": Math.random(),
|
46 |
-
"max_tokens": Math.floor(Math.random() *
|
47 |
"stream": false,
|
48 |
"presence_penalty": Math.random(),
|
49 |
"frequency_penalty": Math.random(),
|
@@ -105,7 +105,7 @@ function handleResponse(text) {
|
|
105 |
}
|
106 |
|
107 |
if (switchCount >= models.length) {
|
108 |
-
pauseUntil = Date.now() +
|
109 |
console.log(`All models have been tried once. Pausing until ${new Date(pauseUntil).toLocaleString()}`);
|
110 |
resetSwitchState();
|
111 |
}
|
|
|
43 |
"messages": messages,
|
44 |
"model": models[modelIndex],
|
45 |
"temperature": Math.random(),
|
46 |
+
"max_tokens": Math.floor(Math.random() * 100),
|
47 |
"stream": false,
|
48 |
"presence_penalty": Math.random(),
|
49 |
"frequency_penalty": Math.random(),
|
|
|
105 |
}
|
106 |
|
107 |
if (switchCount >= models.length) {
|
108 |
+
pauseUntil = Date.now() + 60 * 1000;
|
109 |
console.log(`All models have been tried once. Pausing until ${new Date(pauseUntil).toLocaleString()}`);
|
110 |
resetSwitchState();
|
111 |
}
|