Skip to content

Add GitHub Copilot as a provider alias#2189

Open
dgageot wants to merge 1 commit intodocker:mainfrom
dgageot:implement-docker-agent-issue-2148-849958fe
Open

Add GitHub Copilot as a provider alias#2189
dgageot wants to merge 1 commit intodocker:mainfrom
dgageot:implement-docker-agent-issue-2148-849958fe

Conversation

@dgageot
Copy link
Member

@dgageot dgageot commented Mar 19, 2026

Register github-copilot as an OpenAI-compatible provider alias pointing to
https://api.githubcopilot.com with GITHUB_TOKEN for authentication.

Changes

  • Add alias entry in the Aliases map (pkg/model/provider)
  • Update agent-schema.json with the new provider example
  • Add examples/github-copilot.yaml
  • Simplify provider tests to be data-driven from the Aliases map, removing the need to update tests when adding new providers

Usage

model: github-copilot/gpt-4o

Closes #2148

Register github-copilot as an OpenAI-compatible provider alias pointing to
https://api.githubcopilot.com with GITHUB_TOKEN for authentication.

- Add alias entry in the Aliases map (pkg/model/provider)
- Update agent-schema.json with the new provider example
- Add examples/github-copilot.yaml
- Simplify provider tests to be data-driven from Aliases map,
  removing the need to update tests when adding new providers

Closes docker#2148

Assisted-By: docker-agent
@dgageot dgageot requested a review from a team as a code owner March 19, 2026 22:15
Copy link

@docker-agent docker-agent bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: 🟢 APPROVE

This PR correctly adds GitHub Copilot as a provider alias. The changes are well-structured:

✅ Provider alias properly configured with OpenAI-compatible API type
✅ Schema updated to include the new provider in the enum
✅ Example file demonstrates correct usage
✅ Tests refactored to be data-driven (excellent improvement!)

No bugs found in the changed code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GitHub Copilot provider

1 participant