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();Add list item to variable
-
How can you loop items from a list list to a variable ?
Edit :
I think i've solved it .
For people who will find the answer to this in the future
set a new variable to "0" or the starting point of the list --->"Get Element" in list menu and at the "index" put your variable ----> to get the next list item do an increment to the variable set to "0"