Skip to content

Commit

Permalink
docs: update demo to remove redundant browser conversation demo
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit committed Jan 2, 2023
1 parent 726550b commit 025e7e3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 87 deletions.
81 changes: 0 additions & 81 deletions demos/demo-conversation-browser.ts

This file was deleted.

1 change: 1 addition & 0 deletions demos/demo-conversation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ async function main() {
)
console.log('\n' + res.response + '\n')

// close the browser at the end
await api.closeSession()
}

Expand Down
6 changes: 0 additions & 6 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,6 @@ A [conversation demo](./demos/demo-conversation.ts) is also included:
npx tsx demos/demo-conversation.ts
```

A [browser-based conversation demo](./demos/demo-conversation-browser.ts) is also included:

```bash
npx tsx demos/demo-conversation-browser.ts
```

### Authentication

The authentication section relates to the REST-based version (using `getOpenAIAuth` + `ChatGPTAPI`). The browser-based solution, `ChatGPTAPIBrowser`, takes care of all the authentication for you.
Expand Down

0 comments on commit 025e7e3

Please sign in to comment.