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();how can i delete the initial code
-
@Sytehel There are many ways to do this, I will tell you one way.
Because the number of characters of the Cookies variable you need to delete is always constant, specifically, you will:
Remove the first 11 characters
Delete the last 1 character.
So you can use the following way.
=> REMOVE_LAST is the value you need to find.



-
@BAS-Viet-Nam I love you

