Neovim plugin for interacting with OpenAI GPT-3 chatbot in Goland
MIT License
ChatGPT
is a Neovim plugin or app for your terminal that allows you to interact with OpenAI's GPT-3 language model.
With ChatGPT
, you can ask questions and get answers from GPT-3 in real-time.
and save your sessions for future use
The Neovim_ChatGPT plugin is a powerful tool that allows users to interact with OpenAI's GPT-3 language model directly from their Neovim editor or terminal. With this plugin, users can ask any question and get accurate, relevant answers in real-time. The plugin also allows users to save their sessions for future use, making it easy to continue conversations or pick up where they left off.
The main benefits of this plugin include:
charmbracelet/bubbles
Neovim: The plugin is designed to work with Neovim, so you'll need to have Neovim installed on your machine. You should have at least version 0.5.0 of Neovim, but it's recommended to use the latest version for the best experience.
Golang: The plugin is built using the Golang programming language, so you'll need to have Golang installed on your machine. You should have at least version 1.15 of Golang, but it's recommended to use the latest version for the best experience.
OpenAI API Key: To use the plugin, you'll need to have an API key from OpenAI, which you can obtain by signing up for an account on the OpenAI website. You will need to set an environment variable called $OPENAI_API_KEY with the value of the API key.
Vim-floaterm: You also need to require the vim-floaterm library, this is for run chatGpt on your terminal
Packer: You need to use the package manager for installing the plugin, such as vim-plug, dein.vim or Vundle.vim
Set environment variable called $OPENAI_API_KEY
which you can obtain here.
Neovim Plugin require
require github.com/voldikss/vim-floaterm
-- Packer
use { "waxdred/Term_ChatGPT" }
-- After install with packer use:
:ChatGPTInstall
-- vim-floaterm is for run chatGpt on your terminal
use { "voldikss/vim-floaterm" }
git clone https://github.com/waxdred/Term_ChatGPT.git
cd Term_chatGPT
./install.sh
cd bin
./chatGPT
Plugin exposes following commands on Neovim:
:ChatGPT
command which opens interactive window. flag list:
flag | default
-temp | 0
-top | 0.5
-freg | 0.5
-pres | 0.5
-token | 100
exemple:
./chatGPT -temp=0 -top=1 -freg=0.5 -pres=0.6 -token=30
0 | 1
0 | 1
-2 | 2
-2 | 2
0 | 4000
Contributions to this project are welcome. If you'd like to contribute, please fork the repository and make your changes. Then, open a pull request and I'll review your changes.
This project is licensed under the MIT License.