Skip to content

Gen AI Plugins

Giuseppe M Pereira edited this page Jun 17, 2023 · 2 revisions

🤖 ChatGPT, Codeium, Copilot plugins recipes

This page you'll find the configuration instructions and recipes for the chat-gpt, codeium, copilot (gen-ai etc) plugins.

Requirement: Open AI Account and API Key

To use ChatGPT plugin you'll need to create an account at OpenAI and create API Key to use the OpenAI API.

To create the api_key follow the instructions API Keys.

Afterwards the api_key created, you must provide this api_key to the jackMort/ChatGPT plugins, as explained here: ChatGPT.nvim#secrets-management.

How to: 1Password Integration with ChatGPT Plugin

This Neovim configuration uses 1Password integration. If you don't want to use it, please change the api_key_cmd configuration as explained here: ChatGPT.nvim#secrets-management, otherwise follow the instructions bellow.

Create a secure note called open_ai.

Add field api_key with the value of the OpenAPI Developer site.

image

The default lua config is:

api_key_cmd = "op read op://private/open_ai/api_key --no-newline",

Warning: Pay attention to the secure note path op://private, if you create the note in some other vault, you need to adjust the api_key_cmd accordingly.

In order to get this configuration work, you'll need to integrate 1Password App with 1Password CLI, instructions 1Password Instructions.

Don't forget to authenticate the CLI with the App Integration: image