Sign up to save tools and stay up to date with the latest in AI
bg
bg
1

GitHub - crabhi/vim-llmchat: Editable interactive chat with large language models directly in your editor

Mar 08, 2024 - github.com
The article introduces vim-llmchat, a plugin that allows editable interactive chat with large language models directly in your editor. Unlike other tools, this plugin uses the buffer directly, enabling immediate saving and editing of conversations. Users can even modify the chatbot's responses to control the dialogue flow. The plugin requires the Python OpenAI module and works with the 'llmchat' filetype. Users can modify the chatbot's "personality" with a system prompt and initiate dialogue where user prompts start with '>' and the chatbot's replies are printed as paragraphs.

The installation process involves cloning the plugin from GitHub and installing the Python OpenAI module. It is recommended to map the 'llmchat#send()' call to a key sequence. The plugin supports only the OpenAI provider at the moment. The file structure starts with options, with the only supported option being the model name. The default value is 'gpt-3.5-turbo'. The plugin allows users to copy, paste, and modify any part of the text file.

Key takeaways:

  • The vim-llmchat plugin allows for editable interactive chat with large language models directly in your editor.
  • It uses the buffer directly, enabling immediate saving and editing of conversations, including the ability to edit the chatbot's responses.
  • The plugin requires the Python OpenAI module and works with the 'llmchat' filetype. The default model is 'gpt-3.5-turbo' but can be changed.
  • Currently, the only supported provider for this plugin is OpenAI.
View Full Article

Comments (0)

Be the first to comment!