diff --git a/readme.md b/readme.md index 0e1fc6e68..1d501a409 100644 --- a/readme.md +++ b/readme.md @@ -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 diff --git a/demo.ts b/src/demo.ts similarity index 94% rename from demo.ts rename to src/demo.ts index 3ab091750..7560c9f4d 100644 --- a/demo.ts +++ b/src/demo.ts @@ -1,7 +1,7 @@ import dotenv from 'dotenv-safe' import { oraPromise } from 'ora' -import { ChatGPTAPI } from './src' +import { ChatGPTAPI } from '.' dotenv.config()