Skip to content

Commit 6c76073

Browse files
committed
add reasoning for not using api keys
1 parent e6dd605 commit 6c76073

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/background/chatgpt/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
This module provides a TypeScript implementation for interacting with the OpenAI Chat API, specifically the `gpt-3.5-turbo` model. It includes utilities for fetching and managing access tokens, generating responses from the model, and handling server-sent events.
44

5+
6+
### Why we aren't using API Keys
7+
Session token auth is used instead of API keys to keep the requests free. It's also easier for the user to just login to ChatGPT in their browser.
8+
59
## Files
610

711
- `chatgpt.ts`: This is the main file of the module. It exports a function `getChatGPTAccessToken` for fetching and caching access tokens, and a class `ChatGPTProvider` for interacting with the OpenAI Chat API.

0 commit comments

Comments
 (0)