#Github Copilot as LLM Endpoint?
1 messages ยท Page 1 of 1 (latest)
I was thinking about this the other day. I can use opencode (https://github.com/sst/opencode) in the terminal with any of the models I have access to. So, I'm assuming this is possible now?
Oh interesting, looks like that suport was added fairly recently. The api is at https://api.githubcopilot.com
In opencode at least it uses an oauth flow instead of api key
I'll dig a bit and put my findings in an issue so we can try to get this supported in dagger ๐
Yeah, I don't remember if the token (key) actually worked. The auth flow did though. I think it's just generating a token and saving it in plaintext in ~/.config/github-copilot.
yeah that sounds like whats described here https://github.com/sst/opencode/issues/144#issuecomment-2982855177
i havent looked at how they actually implemented the provider after this yet
Setting up as Open AI work, but Antrophic models doesn't shows up. https://aider.chat/docs/llms/github.html
I could maybe take a stab at this over the weekend. No promises ๐
From looking at the sourcecode for Zed (and with a little help from COPILOT (!) because I don't write rust code usually) I found out that they are most likely using the Copilot Language Server for their integration -> https://github.com/github/copilot-language-server-release - I don't know how that'd work with Dagger though since it would require signing in and so on, I'm guessing it'd be much easier if it was just an API key...
I updated this issue with my findings on how opencode uses it - https://github.com/dagger/dagger/issues/10792#issuecomment-3123403435
Thanks! This does not surprise me ๐ I thought I saw something similar for other providers