OpenAI completion
Sublime text OpenAI completion plugin.
Details
Installs
- Total 127
- Win 62
- Mac 45
- Linux 20
Jan 27 | Jan 26 | Jan 25 | Jan 24 | Jan 23 | Jan 22 | Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 2 | 1 | 4 | 1 | 6 | 3 | 2 | 4 | 6 | 3 | 5 | 1 | 3 | 2 | 2 | 4 | 6 | 2 | 0 | 1 | 1 | 2 | 2 | 2 | 2 | 0 | 1 | 3 | 1 | 1 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 1 | 6 | 2 | 2 | 0 | 2 | 0 | 0 | 4 | 4 | 0 | 3 | 1 | 3 | 0 | 3 | 1 | 3 | 0 | 0 | 1 | 0 | 2 | 5 | 2 | 1 | 0 | 0 | 2 | 2 | 2 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 4 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 | 1 | 1 | 1 | 0 | 3 | 1 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
OpenAI Sublime Text Plugin
Abstract
OpenAI Completion is a Sublime Text 4 plugin that uses the OpenAI natural language processing (NLP) model to provide suggestions for editing code within the Sublime Text editor.
Features
- Append suggested text to selected code
- Insert suggested text instead of placeholder in selected code
- Edit selected code according to a given command
Demo
Click to see screens
Requirements
- Sublime Text 4
- OpenAI API key (paid service)
- Internet connection
Usage
- Open the Sublime Text 4 editor and select some code.
- Open the command palette and run the
OpenAI Append
,OpenAI Insert
, orOpenAI Edit
command.- To use the
OpenAI Insert
command, the selected code should include a placeholder[insert]
. This can be modified in the settings.
- To use the
- The plugin will send the selected code to the OpenAI servers, using your API key, to generate a suggestion for editing the code.
- The suggestion will modify the selected code in the editor, according to the command you ran (append, insert, or edit).
Settings
The OpenAI Completion plugin has a settings file where you can set your OpenAI API key. This is required for the plugin to work. To set your API key, open the settings within Preferences
-> Package Settings
-> OpenAI
-> Settings
and paste your API key in the token property, as follows:
{
"token": "sk-your-token",
}
Note
Please note that OpenAI is a paid service, and you will need to have an API key and sufficient credit to use the plugin.
Additionally, all selected code will be sent to the OpenAI servers for processing, so make sure you have the necessary permissions to do so.
Disclamer
This one was at 80% written by that thing itself including this readme. I was here mostly for debugging purposes, rather then designing and researching. This is pure magic, i swear.