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();Please help me: TypeError: The result of expression 'result' [153,136,234,130] is not a function
-
I get the error "TypeError: The result of expression 'result' [153,136,234,130] is not a function. while performing action" when using the Result block.
This error occurs after I removed the Logger Module and used the built-in Results block, I am using BAS version 27.1.0

-
@radb0310 said in Please help me: TypeError: The result of expression 'result' [153,136,234,130] is not a function:
Someone please help me
You have already been given an exhaustive answer
-
@radb0310 said in Please help me: TypeError: The result of expression 'result' [153,136,234,130] is not a function:
How do I detect that the result function has been overridden,
There is a code: "result = ..." in your script