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();join a resource with a variable
-
Does anyone know how I can join a resource with a variable, for example, I am using this:
[[USERNAME]] = {{EMAIL[[THREAD_INDEX]]}};
But it gives me this error:
Thread #1 : All data have been processed for EMAIL[[THREAD_INDEX]]
I want to extract the value of a resource according to the THREAD
-
@isaacjaco49111 said in join a resource with a variable:
Does anyone know how I can join a resource with a variable, for example, I am using this:
[[USERNAME]] = {{EMAIL[[THREAD_INDEX]]}};
But it gives me this error:
Thread #1 : All data have been processed for EMAIL[[THREAD_INDEX]]
I want to extract the value of a resource according to the THREAD
You can't do that, and this is an example of bad code
-
@isaacjaco49111 said in join a resource with a variable:
@Fox I understand, so for example if I have 20 accounts and I want to obtain resource 18, should I create 18 resources?
Create one resource and put the data of 20 accounts in it