7 ms·
Show HN: CodeGPT.nvim – ChatGPT plugin for Neovim
- madelyn 4y agoI just tried this out and it's basically exactly what I want! No frills, basic feature set. Was going to make something myself but now I can be even lazier than normal.
- rldjbpin 4y agothis seems like a melange of two polar opposite things, but i can see their common goals.
- klinquist 4y agoThis is a ChatGPT plugin for Neovim, not a Neovim plugin for ChatGPT.
- dang 4y agoOk, we've swapped the order in the title above.
- nextaccountic 4y agoThat's like Windows subsystem for Linux. At least in that case it was related to trademarks (you can't say it's a Linux subsystem but you can say it's for Linux)
- kilgnad 4y agoIt's like we're LLMs ourselves... generating different flavors of UIs to interface with chatGPT. That's what I think of when I see the proliferation of chatGPT UIs that hit the front page. Inevitably, human behavior that's similar to an LLM is ripe for replacement by an LLM due to the abundance of behavioral data.
- nico 4y ago> It's like we're LLMs ourselves... Absolutely. That’s a very exciting thing. These tools are forcing us to confront who we are. Interestingly, LLMs (so far) are similarly limited, they can only ingest/digest so much data at a time, so we are trying to figure ways around it. Just like humans, soon there will be lots of specialized LLMs, ones that do only certain types of law, or only one programming language, or even just one codebase, etc. Fun times coming.
- discreteevent 4y ago>forcing us to confront who we are. LLMs don't force me to confront who I am any more than a dog does when I see them eating. LLMs generate copycat ideas. So do I. Dogs eat. So do I. Neither of these cause me any kind of identity crisis.
- nico 4y agoSure, not everyone in the world will be forced to ask themselves what they truly are. However. Can dogs write too? Can they write better code than you? Can they write better letters/documents/proposals/essays than you? Because ChatGPT can. If you apply that at a global scale, as quickly as it is happening, it’s easy to imagine that pretty soon there’s going to be a big change in the way we interact with technology and how we view ourselves in the world.
- _emacsomancer_ 4y agoAlso in Emacs: https://github.com/joshcho/ChatGPT.el https://github.com/joshcho/ChatGPT.el https://youtu.be/SL-nNOjqoxg https://youtu.be/SL-nNOjqoxg
- forgotpwd16 4y agoFirst for time being isn't really comparable as is still stuck in text-davinci model.
- deleted 4y ago[deleted]
- redfloatplane 4y agoIn the meantime there is also my package, but I'd be fairly confident it's not as good as the other one. https://github.com/CarlQLange/chatgpt-arcana.el https://github.com/CarlQLange/chatgpt-arcana.el
- renewiltord 4y agoSick dude. Thank you! I love copilot.vim and use it quite extensively. Will try this. I only ever use the ChatGPT service through their website. Do you get an API key by default or is that a separate service?
- dpayne 4y agoI still use copilot as my main completion tool. I found ChatGPT to be too slow and expensive to use for tab complete level of usage, but it works really well for larger things (e.g. refactor X to do Y, or write unit tests). You can get your API key here https://platform.openai.com/account/api-keys https://platform.openai.com/account/api-keys.
- renewiltord 4y agoThank you!
- totetsu 4y agoDo these api keys still work for free users?
- jarenmf 4y agoDoes the API offer access to the same model as the one used in ChatGPT web app? If so it might be way cheaper to use the API than ChatGPT plus?
- capableweb 4y ago> Does the API offer access to the same model as the one used in ChatGPT web app? Chat API is this: https://platform.openai.com/docs/api-reference/chat/create https://platform.openai.com/docs/api-reference/chat/create URL that the plugin is using for the API call is here: https://github.com/dpayne/CodeGPT.nvim/blob/1ff70459b170ddaf278085a3ecc71430fe825884/lua/codegpt/config.lua#L2 https://github.com/dpayne/CodeGPT.nvim/blob/1ff70459b170ddaf... TLDR: yes > If so it might be way cheaper to use the API than ChatGPT plus? I haven't used ChatGPT Plus, just the normal one. But at least the demonstration GIF makes it seem kind of slow. One selling point of the Plus service is supposedly that you get faster responses.
- ilaksh 4y agoIt defaults to temp 0.6. I thought that 0 was better for following instructions? At least it was for text-davinci-003. Is chatgpt-turbo different in this regard? Also if you have installed any GPT command line program like askleo and don't need to give it context you can just run :r !askleo description of function and language here Although askleo uses text-davinci-003 so I would use one set up for ChatGPT instead. Or if you are not too lazy this extension looks great. What would be really nice is something that automatically selected context and then streamed in the code. Also it should come with a short command or default for that.
- robertkrahn01 4y agoAnother Emacs integration, using org-mode for ChatGPT and DALL-E: https://github.com/rksm/org-ai https://github.com/rksm/org-ai
- aunch 4y agothis is really cool and well done. i will start using it in conjunction with Codeium's plugin (free Copilot alternative): https://github.com/Exafunction/codeium.vim https://github.com/Exafunction/codeium.vim for transparency: I'm from the Codeium team, and we are big fans of getting this AI gen tech to all developers on all IDEs for free - we've also open sourced an emacs plugin: https://github.com/Exafunction/codeium.el https://github.com/Exafunction/codeium.el
- capableweb 4y agoHow are you supposed to use two plugins providing the same functionality? Are you gonna compare them and then uninstall one of them? Do they differ? As far as I can tell, it seems like you just wanted to plug your own plugin, but I'm happy if I'm wrong. I just to understand how you can use two plugins that provide the same functionality and why you would do that.
- aunch 4y agothey're complementary! codeium works like copilot, constantly autocompleting what you want to type next, which helps a lot when you already have a decent idea of what you need to get done and need to get it done faster. chatgpt (and chat interfaces in general) help you get some ideas on what to do when you are doing more open-ended exploration, and is explicitly invoked. as developers, we all code in these different "modes" and different tools can be built for each!
- z3t4 4y agoHN encurage you to mention your own products when relevant, so you don't have to wrap it in, just put it bluntly.
- QuadrupleA 4y agoHa - this was my weekend project, was pretty sure something similar would pop up in a few days. It's been very handy to ask questions, summarize, proofread, give jailbroken wisecracks, etc. right within VIM where I can slice and dice the text at will. Not sure if this supports the API's "streaming mode" but it's nice for seeing the output typing in real time. Requires spawning a separate job though.
- qudat 4y agoVery cool! I added it to https://neovimcraft.com/?search=codegpt https://neovimcraft.com/?search=codegpt
- orsenthil 4y agoSo, these utilize OpenAI API key. Do people run into limits have to go for paid version while utilizing apps based on openai API?
- astrod 4y agoDo you mean for the plugin creator or as a user? I tried to build a saas app which generates logos and I had to upgrade. Using chatgpt prompt on the free tier, I sometimes dont get responses due to volume of requests(I believe free tier gets culled in these cases?). Or sometimes its just extremely slow. In this case, once you setup with your api key, its free to use inside neovim.
- kronion 4y agoSee also ChatGPT.nvim, which can be used both for editing code and for standard chat: https://github.com/jackMort/ChatGPT.nvim https://github.com/jackMort/ChatGPT.nvim The Telescope-esque UI is nicely done as well.
- TOMDM 4y agoAnyone built an IntelliJ one yet?
- singularity2001 4y agoyes, but we haven't released it yet
- totetsu 4y agoAfter the temporary outage of history in the openai web interface yesterday, I just want a simple no bells and whistles way to interface with chatGPT and have a local log kept. One big log is okay, but it would be nice to save sessions to unique files.
- kytazo 4y agoThere you go https://github.com/thomasantony/chatgpt-term https://github.com/thomasantony/chatgpt-term
- totetsu 4y agoIf you forgot like me see how to install plugins at https://github.com/wbthomason/packer.nvim#quickstart https://github.com/wbthomason/packer.nvim#quickstart
- amelius 4y agoIs anyone working on a tool to navigate the biomedical literature (NCBI, etc.) using ChatGPT?
- barrenko 4y agoI've seen some bio specific implementations but for the life of me I can't find it now, my browser history is swamped with this theme atm.
- ema_dev 4y agoGreat job on creating CodeGPT.nvim! This plugin for neovim seems like a useful tool for code-related tasks such as code completion, refactoring, and generating documentation. The clear instructions for installation, including setting the environment variable and required plugins, make it easy for users to get started. The use of the ChatGPT API is also an exciting feature that adds a unique aspect to the plugin. Overall, I appreciate your hard work in developing this tool and look forward to seeing how it continues to evolve. Keep up the good work!
- cyanf 4y agoThis fails the Turing test.
- axxto 4y agoExcuse me, but it seems like your comment was generated by a language model, most likely ChatGPT. While it's impressive that AI technology can produce text that sounds so human-like, it's important to be clear about when a comment is written by a machine instead of a person. This can help avoid confusion and ensure that our conversations are productive and informative. Is there anything else I can help you with?
- synergy20 4y agoWill this work for vim as well? would love to use it if it does.
- frebord 4y agoJust switch to neovim :P
- synergy20 4y agodoing embedded and server work and neovim was not installed there by default while vim is always ready to use :(
- mattpallissard 4y agoI find remote editing to work in most simple circumstances. nvim scp://host//foo.bar