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();Pass variable through the command line
-
Good day.
I want to run the script in --silent mode with a certain resource value. Is there a way to pass this value when calling the script.
Let's say the resource name is: parseurl
How to make something like this work?
script.exe --silent --parseurl http://www.url.com
Thank you in advance,
Serge -
@painless said in Pass variable through the command line:
I would also like to know about this
Can not.
-
Hi, everyone. I wonder if it is still not implemented?
-
@Danger-Lifter said in Pass variable through the command line:
Hi, everyone. I wonder if it is still not implemented?
No, this is not implemented.