-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding support for GPT-4o and GPT-4-turbo. (#32)
* Updated turbo. Bugs remain. * Removed deprecated models from model list. Fixed bugs with icons. * Added support for GPT-4-Turbo & text streaming. * Update README.md * Update README.md * Added GPT-4o support. * Mid-bugfix. * Bugfix in progress. * Debugged build with GPT-4o support. Note that the ChatGPT interface is a little bit buggy. * Replaced GPT-4o with GPT-4-turbo as the default model. * add webpack as dev dep. + fix export/ import CHAT_API_MODELS * Reformat custom prompt to match the chatGPT mode. Fix bug with model in popup.js --------- Co-authored-by: giosilvi <[email protected]>
- Loading branch information
Showing
12 changed files
with
741 additions
and
565 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
# GPT-Prompter | ||
Open source Browser extension to get fast customizable prompts (e.g. explanations) of the selected text or chat using OpenAI`s GPT-3 model. Available in the Chrome/Firefox web store. | ||
|
||
To use it follows these steps: | ||
|
||
1- Add the extension from the Chrome Web store at https://chrome.google.com/webstore/detail/gpt-prompter/lcgpdbficokndjodlcgflbhaibicompp | ||
|
||
2- If you don`t have it already, make a profile at OpenAI https://beta.openai.com/ | ||
|
||
3- From https://beta.openai.com/account/api-keys you can copy your API Key and paste into the chrome extension (we never have access to your API Key, it is stored on your Chrome profile). | ||
|
||
4- (Optional)Now just select text from a website. | ||
|
||
5- Select from the context menu (right click) the GPT-Prompter command to send the custom prompt to open the popup. | ||
|
||
5- The default prompt is "Tell me more about <selected text>", but you can create anything you want with just the constrain that it has to contain a field for the selected text to be parsed in it. | ||
|
||
### Update (05/10/2024) - Differences from [giosilvi's GPT-Prompter](https://github.com/giosilvi/GPT-Prompter): | ||
- Added support for GPT-4-Turbo. | ||
- Updated prompt list with Anki prompts. | ||
- No present support for Instruct models. | ||
- Live response streaming is back. | ||
|
||
### Installation Instructions: | ||
1. `git clone https://github.com/wz-ml/GPT-Prompter.git` | ||
2. `cd` into the repository and type `npm run build`. | ||
3. A new .zip file should appear in /zips. Unzip it! | ||
4. Go to `chrome://extensions`. If you use Brave or another Chromium-based browser, replace the prefix with the name of your browser (e.g `brave://extensions`). | ||
5. Click "Load unpacked" and select your newly unzipped folder: | ||
|
||
 | ||
|
||
### Usage: | ||
1. Make a profile at [OpenAI](https://beta.openai.com/), if you haven't already | ||
2. From https://beta.openai.com/account/api-keys you can copy your API Key and paste into the chrome extension (we never have access to your API Key, it is stored on your Chrome profile). | ||
3. (Optional)Now just select text from a website. | ||
4. Select from the context menu (right click) the GPT-Prompter command to send the custom prompt to open the popup. | ||
5. The default prompt is "Tell me more about <selected text>", but you can create anything you want with just the constrain that it has to contain a field for the selected text to be parsed in it. | ||
|
||
 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.