zed icon indicating copy to clipboard operation
zed copied to clipboard

CoPilot should be decoupled from zed

Open assapir opened this issue 1 year ago • 3 comments

Check for existing issues

  • [X] Completed

Describe the feature

As of now, GitHub CoPilot is coupled into Zed. This makes Zed very opinionated about what AI tool for code to use instead of using some extension mechanism (I know this is WIP) to allow other alternatives such as Tabnine. This also aligns with your public roadmap about AI support in the editor - it will not require an OpenAI key but expose the requirement component.

I can help with integrating Tabnine if you need me.

This is related to https://github.com/zed-industries/zed/issues/4504 https://github.com/zed-industries/zed/issues/4726 and others

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

No response

assapir avatar Jan 25 '24 14:01 assapir

I think it would also be nice to have the option to use a locally run LLM, they're getting pretty good and do not rely on the internet.

raystriker avatar Jan 25 '24 17:01 raystriker

https://github.com/ollama/ollama Could be a great candidate/target that provides common api to run local LLMs.

YurySolovyov avatar Jan 25 '24 17:01 YurySolovyov

Also being discussed in #4424

TwistingTwists avatar Mar 01 '24 08:03 TwistingTwists

Does Zed have a roadmap I can check for this FR?

patgd avatar Mar 24 '24 01:03 patgd

There's now an InlineCompletionProvider trait that can be implemented in a PR to add more providers, like has been done for Supermaven.

rgbkrk avatar Jun 12 '24 03:06 rgbkrk

I think this issue has been resolved. We now support multiple providers. Discussion (and 👍 voting) should be done in issues for each provider:

  • https://github.com/zed-industries/zed/issues/4504
  • https://github.com/zed-industries/zed/issues/4726
  • https://github.com/zed-industries/zed/issues/11728
  • https://github.com/zed-industries/zed/issues/8914
  • https://github.com/zed-industries/zed/issues/4424 etc

notpeter avatar Jun 18 '24 13:06 notpeter