This pull request introduces a new assistant panel to Zed that lets users interact with OpenAI using their API key:  After setting the key up, it will be saved to the keychain and automatically loaded the next time the assistant panel is opened. The key can be reset using `assistant: reset key`.  From there, users can type messages in a multi-buffer and hit `cmd-enter` (`assistant: assist`) to stream assistant responses using the OpenAI API. Responses can be canceled by hitting `escape`.  Users can quote a selection from the active editor by hitting `cmd->` (`assistant: quote selection`), which will embed the selected piece of text in a Markdown fenced code block. Conversations with the assistant are ephemeral at the moment, but can be easily copy/pasted:  Release Notes: - Added a new assistant panel feature that enables interacting with OpenAI using an API key. This replaces the previous experimental `ai: assist` command that would work on any buffer. The experience is similar to the one offered by ChatGPT with the added ability to edit, delete or enhance previous messages. When hitting `cmd-enter`, the assistant will start streaming responses from OpenAI. A response stream can be canceled using `escape`. Moreover, the active editor's selection can be quoted in the assistant panel using `cmd->`, which will automatically embed the selected piece of text in a Markdown fenced code block.
26 files changedLine totals unavailable