pull/335/head
Travis Fischer 2023-02-13 00:20:11 -06:00
rodzic 1777c4551d
commit 70a91d47ef
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -15,6 +15,7 @@ dotenv.config()
*/
async function main() {
const api = new ChatGPTAPI({
// rate limit of 15 requests per 15 seconds
apiReverseProxyUrl: 'https://chatgpt.pawan.krd/api/completions',
// change this to an `accessToken` extracted from the ChatGPT site's `https://chat.openai.com/api/auth/session` response
apiKey: process.env.OPENAI_ACCESS_TOKEN,