feat: allow use of GitHub enterprise account type endpoint#41
Merged
ericc-ch merged 1 commit intoericc-ch:masterfrom Jun 10, 2025
Merged
Conversation
Owner
|
looks good! I never knew there is a different enterprise endpoint |
hao1939
pushed a commit
to hao1939/copilot-api
that referenced
this pull request
Nov 22, 2025
feat: allow use of GitHub enterprise account type endpoint
cuipengfei
pushed a commit
to cuipengfei/copilot-api
that referenced
this pull request
Nov 28, 2025
…ns-reasoning Feature/chat completions reasoning
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.
There's support for business accounts via
--business, this PR adds support for enterprise accounts by adding--enterprise.This could potentially be a fix the persistent issues described in #19 and #39.
There are plenty of more elegant ways of implementing this but I didn't want to do a refactor of the existing code out of the blue. For a potential future refactor I'd suggest rather than accepting
--businessor--enterpriseon the cli to allow to specify the endpoint URL to use. Alternatively, a--type business|enterpriseparameter might be a better approach.Background:
The documentation lists
*.enterprise.githubcopilot.comas the endpoints for the enterprise plan as API calls using enterprise and business accounts must be directed towards the correct endpoint.