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 multiple result in multiple .txt file ?
-
Hallo, I have looping get element text, and I want save the text in multiple .txt file. how make it possible ? I try this http://wiki.bablosoft.com/doku.php?id=how_to_let_user_to_choose_output_file_name but its only save in one .txt file,
-
@Fox Still not work, http://prntscr.com/frk6st http://prntscr.com/frk7cq
I also try change variable like this http://prntscr.com/frk7zw and my folder still empty http://prntscr.com/frk8hw , what wrong ?
