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 Array variable.
-
@seven7 You will have to use javascript and the "execute code" action
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Basics -

Unfortunately, I don't know how to do it, as shown in the figure, each time the loop variable [[IMAGES_URL]] gets a different URL result.
I want to store these results in a variable like [[RESULTS_IMAGES]] value is https://url1.com,https://url2.com,https://url3.com