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();Is there a way to increment the variable name?
-
Let's say we have many variables named A1 - A2 - A3 - A4 - A5.
Is there a loop or method that can be created to pull the expressions inside these variables?
In order to extract data from the variables named A1 - A2 - A3, which I mentioned above, it is sufficient to increase the numbers next to the letter A.
I tried a few things but it failed.
However, I couldn't find a way to do this. Any idea?