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();how to save result in .txt ?
-
I want to save text from green box http://prntscr.com/fqx2bg and save it to .txt file. if loop it will make multiple .txt file
-
heres an example,will make a file for each google result
-
@deliter hallo, I try for loop for one day, but the result max 88 .txt file, I have try make success to http://prntscr.com/ft2kbt but it only max 125 .txt . and if script continue run it will replace every result with new one. I also check http://prntscr.com/ft2l0u but the result still same. how to make it unlimited file result ?
