Commit 5892f9a1 authored by Travis Fischer's avatar Travis Fischer

docs: update demo

parent ee1a1eea
...@@ -60,14 +60,14 @@ const api = new ChatGPTAPI({ ...@@ -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 ```bash
# 1. clone repo # 1. clone repo
# 2. install node deps # 2. install node deps
# 3. set `SESSION_TOKEN` in .env # 3. set `SESSION_TOKEN` in .env
# 4. run: # 4. run:
npx tsx demo.ts npx tsx src/demo.ts
``` ```
## Docs ## Docs
......
import dotenv from 'dotenv-safe' import dotenv from 'dotenv-safe'
import { oraPromise } from 'ora' import { oraPromise } from 'ora'
import { ChatGPTAPI } from './src' import { ChatGPTAPI } from '.'
dotenv.config() dotenv.config()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment