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();log setting help me
-
function log(text) { var now = new Date(); Logger.WriteHtml("<span style='color:#000000'>" thread_number() + " : " + "Bilgi" + text + "</span>", "Bilgi" + thread_number() + " : " + text + " " + now.getHours() + ": " + now.getMinutes() + ": " + now.getSeconds() ); } -
@tet-vivi said in log setting help me:
function log(text) {
var now = new Date();
Logger.WriteHtml("<span style='color:#000000'>" thread_number() + " : " + "Bilgi" + text + "</span>", "Bilgi" + thread_number() + " : " + text + " " + now.getHours() + ": " + now.getMinutes() + ": " + now.getSeconds() );
}SyntaxError: Parse error during execution of action 2
-
@xxasaxx said in log setting help me:
@tet-vivi said in log setting help me:
function log(text) {
var now = new Date();
Logger.WriteHtml("<span style='color:#000000'>" thread_number() + " : " + "Bilgi" + text + "</span>", "Bilgi" + thread_number() + " : " + text + " " + now.getHours() + ": " + now.getMinutes() + ": " + now.getSeconds() );
}SyntaxError: Parse error during execution of action 2