Repository navigation
Add GitHub Copilot CLI as a chat model provider - #141
Open
Chris Trevino (darthtrevino) wants to merge 3 commits into
Open
Chris Trevino (darthtrevino) wants to merge 3 commits into
Chris Trevino (darthtrevino) wants to merge 3 commits into
Conversation
Adds a new llm_provider value (copilot.chat) that routes chat completions through the GitHub Copilot CLI via the github-copilot-sdk, so benchmarks can use any model available to a Copilot subscription without Azure OpenAI endpoints or API keys. Includes interactive init support, docs, and tests. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: e7fb1378-00d1-46a0-bf29-4ebadc9015c4
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: e7fb1378-00d1-46a0-bf29-4ebadc9015c4
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: e7fb1378-00d1-46a0-bf29-4ebadc9015c4
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Benchmark QED currently relies on direct model endpoints, while newer workflows use models through GitHub Copilot CLI. This adds
copilot.chatso users can select a Copilot model by name without configuring an Azure OpenAI endpoint or API key.Approach
github-copilot-sdkwith a shared CLI runtime and isolated, tool-free sessions for each completion.End-to-end smoke test
Ran
benchmark-qed autoe pairwise-scoreswith the newcopilot.chatsettings andgpt-6-lunaagainst a small synthetic dataset (3 questions, 2 criteria, 2 trials; 12 model calls). The command completed successfully in about 58 seconds; all structured responses parsed, and the stronger answers won every comparison. Usage metrics recorded 12 successful calls, with 0 failures and 0 retries.Limitations and review notes
Authenticate with the Copilot CLI or supply a GitHub token in
init_args. Copilot does not provide embeddings, so embedding configuration must use another provider. Sampling parameters such astemperatureandseedare ignored, and streaming is unsupported. Structured responses use schema instructions and validated JSON parsing rather than native strict-schema enforcement.The
uv.lockdiff includes a lockfile-format refresh from the current uv version in addition to the new SDK dependency.Validation
uv run poe checkpassed locally after fixing thepyright --verifytypesmodule logger annotation.