8000 Feature request: Github Copilot? · Issue #1189 · block/goose · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Feature request: Github Copilot? #1189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
anderssv opened this issue Feb 11, 2025 · 15 comments · Fixed by #1926
Closed

Feature request: Github Copilot? #1189

anderssv opened this issue Feb 11, 2025 · 15 comments · Fixed by #1926
Labels
enhancement New feature or request help wanted Great issue for non-Block contributors

Comments

@anderssv
Copy link

Is it possible? I am not familiar with their APIs etc.

Due to corporate policies it is the only LLM (service) that we can use on our codebases.

@michaelneale
Copy link
Collaborator

@anderssv yeah would love this - as far as I know copilot models are not available yet via api (would need to ask microsoft for this). Would be good to put in a feature request with them as I agree would be great.

@anderssv
Copy link
Author

Seems they just released a Language Server SDK, is that a viable route? https://github.blog/changelog/2025-02-10-copilot-language-server-sdk-is-now-available/

@lily-de lily-de added the enhancement New feature or request label Feb 12, 2025
@lily-de lily-de added the help wanted Great issue for non-Block contributors label Feb 22, 2025
@anderssv
Copy link
Author

Would be really nice as Copilot now have support for both Gemini and Claude too. 😄

@rockwotj
Copy link
Contributor
rockwotj commented Mar 9, 2025

FYI Copilot uses an OpenAI compatible API, but has special auth. If someone were to build this provider there is a reference python implementation in LiteLLM that was just merged:

BerriAI/litellm#8577

I expect one could copy the existing OpenAI provider with the custom auth mechanism from that PR and things should work!

I am in the same boat that for legal reasons we can also only use GitHub copilot and I would love to use this

@dinhphieu
Copy link

Some guys at aider made some workarounds exposing the internal Copilot API in VSCode as a proxy

Not sure in the long run if it's worth it (it could break anytime), and on the legal side if it's even ok but worth taking a look if you're interested

Aider-AI/aider#2227 (comment)
Aider-AI/aider#2227 (comment)
Aider-AI/aider#3273

@anderssv
Copy link
Author

While we wait (totally understand, wish I had the time to help), I recommend checking out VSCode Copilot Agent mode. It is similar in certain aspects, and getting ok results with it pointing it at a folder of Java/Kotlin projects: https://code.visualstudio.com/blogs/2025/02/24/introducing-copilot-agent-mode

@rockwotj
Copy link
Contributor

I added support for this in #1926 if anyone wants to help test

@BenceBakos
Copy link

@rockwotj Can I help testing it?

I'm not set up for rust development, but I suppose it's not that hard to build it.

  • clone
  • checkout the branch
  • execute some building command that, after burning down my decade old I3, gives me a binary?

Or just simpler to wait for someone with dev env?

@rockwotj
Copy link
Contributor

Yeah @BenceBakos some being cargo build --release. You'll need a working rust toolchain setup, which is pretty painless with https://rustup.rs/

@BenceBakos
Copy link

@rockwotj

cargo build --release:

...
  = note: /usr/bin/ld: cannot find -lxcb: No such file or directory
          collect2: error: ld returned 1 exit status
          

error: could not compile `goose-server` (bin "goosed") due to 1 previous error

@rockwotj
Copy link
Contributor

I am not sure how your system is setup. github.com/copilot might be good at resolving. Assuming you're on linux you are missing libxcb

sudo apt-get install libx11-dev

Might do the trick or you need another system dependency.

You could also just build the goose cli and not build the server which I guess needs X11 support for something...

@BenceBakos
Copy link
BenceBakos commented Apr 16, 2025

@rockwotj

I did:

sudo apt-get install libx11-dev

then I got error:

error: rustc 1.79.0 is not supported by the following packages:
  aws-sdk-bedrockruntime@1.76.0 requires rustc 1.81.0
  aws-sdk-sso@1.61.0 requires rustc 1.81.0
  aws-sdk-ssooidc@1.62.0 requires rustc 1.81.0
  aws-sdk-sts@1.62.0 requires rustc 1.81.0
  home@0.5.11 requires rustc 1.81
  image-webp@0.2.1 requires rustc 1.80.1
  litemap@0.7.5 requires rustc 1.81
  litemap@0.7.5 requires rustc 1.81
  zerofrom@0.1.6 requires rustc 1.81
  zerofrom@0.1.6 requires rustc 1.81
Either upgrade rustc or select compatible dependency versions with
`cargo update <name>@<current-ver> --precise <compatible-ver>`
where `<compatible-ver>` is the latest version supporting rustc 1.79.0

did this:

rustup update stable

And now I'm getting error:

error[E0463]: can't find crate for `git_version_macro`
  --> /home/user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/git-version-0.3.9/src/lib.rs:26:9
   |
26 | pub use git_version_macro::{git_submodule_versions, git_version};
 

@SoAG
Copy link
SoAG commented Apr 22, 2025

I got the same error:

  = note: some arguments are omitted. use `--verbose` to show all linker arguments                                                                                               
  = note: /usr/bin/ld: cannot find -lxcb: No such file or directory                                                                                                              
          collect2: error: ld returned 1 exit status                                                                                                                             
                                                                                                                                                                                 
                                                                                                                                                                                 
error: could not compile `goose-cli` (bin "goose") due to 1 previous error                                                                                                       

The fix was to install libxcb1-dev

sudo apt install libxcb1-dev

@BenceBakos
Copy link

@SoAG did you test it? I am still unable to build it.

@deemkeen
Copy link
deemkeen commented May 6, 2025

i would love to have this feature in goose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Great issue for non-Block contributors
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants
0