- Make sure all functions include annotations
- Identify the model name with a request to
GET https://api.openai.com/v1/models
- Make sure the model supports the API you're interested in using (see Model endpoint compatibility here)
- Modify the
command
, currently in./lua/explain-it/services/chat-gpt.lua
, to use the model of interest - Make sure you are parsing the response correctly (should work out of the box if you are using the
chat
orcompletions
APIs)
Often times you will have the published version of the explain-it.nvim
plugin installed via the package manager used on your local system, but you will want to test or run the code in your local repo. The Makefile
has two scripts to help facilitate this:
make run
make test
These ensure that the local version is used along with a minimal config for a sandboxed test/run environment
Execute this command to view current settings: :lua =ExplainIt.config