sukaka commited on
Commit
7072447
·
verified ·
1 Parent(s): 80648b5

Upload eat-cookie.js

Browse files
Files changed (1) hide show
  1. 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() * 501) + 500,
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() + 30 * 60 * 1000;
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
  }