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();Variables in executed functions
-
Hello,
If I create a variable using the example of an SQL query and then want to execute a function, the variable can be used in record mode in the function.
But if I do this in Run mode, as soon as I want to query the variable, I get the message that the thread has ended successfully, no matter what comes next. -
Hello,
Please attach a test script or describe the problem in more detail.