This is an extension to allow interaction with browser instances of ChatGPT via a REST API identical to OpenAI's. It goes hand-in-hand with coddit.py.
- Run server.py locally.
- Install this extension by entering the Developer Mode on Chrome's or any other Chromium-based browser's Extensions page.
- Open chatgpt.com and open the extension popup. Click
Connect
to connect with the server on the localhost.
Add a chatgpt
model to the models
table during the coddit.nvim setup, as shown below.
require("coddit").setup({
models = {
["chatgpt"] = {
endpoint = "http://127.0.0.1:5000/v1/chat/completions",
model = "chatgpt",
api_type = "openai",
},
},
selected_model = "chatgpt",
})