Integration with github copilot models #2060
|
Hello, Is there a way to use GitHub copilot models instead of openai models in pr-agent? |
Replies: 2 comments
|
Hi @ismail-bertalfilali , thank you so much for adding those questions. |
|
There is no native Copilot support in PR-Agent today, and no docs or registry entry for it. The pinned litellm 1.100.0 does expose a Tracked in #3188. |
There is no native Copilot support in PR-Agent today, and no docs or registry entry for it. The pinned litellm 1.100.0 does expose a
github_copilotprovider, so in principle you can drive it through the custom-model route by settingmodel = "github_copilot/<model-id>"together withcustom_model_max_tokens. The obstacle is authentication: litellm's Copilot authenticator uses an interactive GitHub device-code flow with an on-disk token cache, which does not fit an unattended CI runner without pre-seeding that cache. Nobody has verified this end to end, and whether Copilot's terms permit programmatic use this way is a question for GitHub, not for this project. Converting to a feature issue s…