kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
docs: update demo
rodzic
1446e5b38e
commit
9a42ee66f6
|
@ -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
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import dotenv from 'dotenv-safe'
|
||||
import { oraPromise } from 'ora'
|
||||
|
||||
import { ChatGPTAPI } from './src'
|
||||
import { ChatGPTAPI } from '.'
|
||||
|
||||
dotenv.config()
|
||||
|
Ładowanie…
Reference in New Issue