ChatGPT.nvim icon indicating copy to clipboard operation
ChatGPT.nvim copied to clipboard

[Feature request]: Offer an API with configurable arguments

Open HPRIOR opened this issue 9 months ago • 0 comments

It would be nice to have a lua API exposed to the user which could be called with various arguments, such as the model type. This would allow for greater control and interoperability with other plugins. as well as opening the door for more flexibility if other LLMs are introduced.

For my particular use case, I am using a telescope extension which provides a picker over various chat gpt functions, such as chat and interactive modes. I would like to be able to declare options in the extension, like: chat-cheap, or chat-expensive that offer an easy way to switch between gpt3 and gpt4 models.

Another useful feature of the proposed API would be the ability to specify visual selections.

Ideally this would be available for most the functionality provided by the plugin: ChatGPT, ChatGPTEditWithInstruction, ChatGPTRun

HPRIOR avatar Apr 27 '24 12:04 HPRIOR