It does not work if I do this:
const OpenAI = require('openai'); const openai = new OpenAI({ apiKey: [[CHATGPTAPIKEY]] }); async function main() { const completion = await openai.chat.completions.create({ model: [[MODEL]], messages: [ {"role": "system", "content": "You are a "+[[COMMENTSTYLE]]+" assistant."}, {"role": "user", "content": [[SAVED_TEXT]]} ], temperature: [[TEMPERATURE2]], max_tokens: 150, stop: ["\n", "User:"], n: 1 }); [[OUTPUT]] = completion.choices[0]; } main();BAS stops every 2 hours
-
Hello. This problem arises - the BAS stops after 2 hours of operation. My task is to parse one page constantly, my bot runs in one thread that does not restart. Works without interruption. But, every 2 hours it stops, and I see an inscription with which I attach a screenshot. Has anyone encountered such a problem?
Because restarting a script every 2 hours that should run 24/7 is not very convenient