You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/background/chatgpt/README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,10 @@
2
2
3
3
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.
4
4
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
+
5
9
## Files
6
10
7
11
-`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