zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
46.88k stars 2.68k forks source link

Allow add custom AI assistant provider #15732

Open Loner1024 opened 1 month ago

Loner1024 commented 1 month ago

Check for existing issues

Describe the feature

zed currently offers support for a limited number of AI assistants, but many model providers offer OpenAI-compatible interfaces, e.g., DeepSeek, and there are a number of projects that offer OpenAI-compatible interfaces for a wider range of models. There are also projects that provide compatibility layers for more models, e.g. simple-one-api. Users in some regions may need to use the OpenAI interface through a proxy service provider, e.g. users in China cannot pay for the OpenAI interface. Therefore, it is necessary to provide a configurable generic OpenAI interface access, which will bring more powerful AI assistant capabilities to zed. In this feature, users can customize the endpoint and API key of the OpenAI API, and users can configure multiple custom model providers. I'd love to be involved in zed's development of this feature!

If applicable, add mockups / screenshots to help present your vision of the feature

CleanShot 2024-08-03 at 19 43 00@2x

dalpatsingh-jabsainfotech commented 1 month ago

I was trying to add Groq but could not, guess still this feature is not available.