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 rename variable file
-
Hello,
This is my first question here and i hope someone can help me
i added a new source txt files with numbers
i visit the website enter the number and take screenshot.
so i want that the screenshot has the name of the number entered on the website
on the data i did [[SCREENSHOT_BASE64]]
on the file path i did {{numbers}}.png and that's the exact name of the source file but i get error -
@majdi105 said in How to rename variable file:
Hello,
This is my first question here and i hope someone can help me
i added a new source txt files with numbers
i visit the website enter the number and take screenshot.
so i want that the screenshot has the name of the number entered on the website
on the data i did [[SCREENSHOT_BASE64]]
on the file path i did {{numbers}}.png and that's the exact name of the source file but i get errorWhat kind of error do you get and what kind of data is in the "{{numbers}}" resource?