Skip to content

ashaiber/openaipg.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

openaipg.nvim

A simple OpenAI Playground plugin for Neovim.

Allows to put text between:

% Prompt

[test]

% End of prompt

And then run :SendToOpenAI to send the text to OpenAI Playground and print the response after the end of the prompt, retaining previous versions.

Installation

Using Packer:

use 'ashaiber/openaipg.nvim'

require('openaipg').setup {
}

Note that curl must be installed, and the OpenAI key must be set as an environment variable.

Configuring the model to use

The default model is gpt-3.5-turbo. To change it, use the model option in the prompt file itself:

---
model: gpt-4-0125-preview
---

% Prompt
...

About

OpenAI Playground

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages