I hereby claim:
- I am dbrian on github.
- I am dbrian (https://keybase.io/dbrian) on keybase.
- I have a public key ASBcCXIPaPFbQtqrSvep9FQtUz_QBKKHQzYQPI4SgYEwuQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
FWIW: I didn't produce the content present here. I've just copy-pasted it from somewhere over the Internet, but I cannot remember exactly the original source. I was also not able to find the author's name, so I cannot give him/her the proper credit.
import { ChatGPTAPI } from "chatgpt"; | |
const api = new ChatGPTAPI({ | |
apiKey: process.env.OPENAI_API_KEY | |
}); | |
// get all command line options | |
const prompt = process.argv.slice(2).join(" "); | |
const prefix = |