Skip to content

Commit

Permalink
docs: update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit committed Dec 5, 2022
1 parent ee1a1ee commit 5892f9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion demo.ts → src/demo.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import dotenv from 'dotenv-safe'
import { oraPromise } from 'ora'

import { ChatGPTAPI } from './src'
import { ChatGPTAPI } from '.'

dotenv.config()

Expand Down

0 comments on commit 5892f9a

Please sign in to comment.