docs: update demo

chatgpt-api-old-v3
Travis Fischer 2022-12-05 17:14:19 -06:00
rodzic 1446e5b38e
commit 9a42ee66f6
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -60,14 +60,14 @@ const api = new ChatGPTAPI({
})
```
A full [demo](./demo.ts) is included for testing purposes:
A full [demo](./src/demo.ts) is included for testing purposes:
```bash
# 1. clone repo
# 2. install node deps
# 3. set `SESSION_TOKEN` in .env
# 4. run:
npx tsx demo.ts
npx tsx src/demo.ts
```
## Docs

Wyświetl plik

@ -1,7 +1,7 @@
import dotenv from 'dotenv-safe'
import { oraPromise } from 'ora'
import { ChatGPTAPI } from './src'
import { ChatGPTAPI } from '.'
dotenv.config()