syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.69k stars 4.89k forks source link

Introduction of AI APIs into spacemacs #15971

Closed rommeswi closed 1 year ago

rommeswi commented 1 year ago

I think with the current boom in artificial intelligence, it is important for spacemacs to keep up and provide easy access to AI APIs. Integrating an AI into spacemacs should be as easy as adding "openai" to the layers list and configuring the login data

In pull request #15969 I proposed a first draft of a layer for access to openai and their popular chatgpt engine. It still had some flaws such as poor evilification and too long keybindings and was rightfully rejected.

I open this feature request in case an experienced spacemacs contributor finds it worth it to create an openai layer that meets the standards of spacemacs.

smile13241324 commented 1 year ago

Jup adding an AI layer would definitiv be useful.

Just some design principles for a possible impl.

Anyway thats all pretty vague, so feel free to make a draft and discuss it later.

rommeswi commented 1 year ago
smile13241324 commented 1 year ago

I have merged the open ai layer and moved the AI bindings to "spc $" if we add more providers we can think of introducing feature wise bindings and leave the source bindings for shorter key combinations but lets keep it simple for now and see how the new bindings work.

Feedback welcome, and contributions of free alternatives too of course :)