Skip to content

feat: allow use of GitHub enterprise account type endpoint#41

Merged
ericc-ch merged 1 commit intoericc-ch:masterfrom
Luminger:support-enterprise-endpoint
Jun 10, 2025
Merged

feat: allow use of GitHub enterprise account type endpoint#41
ericc-ch merged 1 commit intoericc-ch:masterfrom
Luminger:support-enterprise-endpoint

Conversation

@Luminger
Copy link
Copy Markdown
Contributor

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 --business or --enterprise on the cli to allow to specify the endpoint URL to use. Alternatively, a --type business|enterprise parameter might be a better approach.

Background:
The documentation lists *.enterprise.githubcopilot.com as the endpoints for the enterprise plan as API calls using enterprise and business accounts must be directed towards the correct endpoint.

@ericc-ch
Copy link
Copy Markdown
Owner

looks good! I never knew there is a different enterprise endpoint
Yeah I might need to refactor the code sometime in the future

@ericc-ch ericc-ch merged commit 85d889e into ericc-ch:master Jun 10, 2025
@Luminger Luminger deleted the support-enterprise-endpoint branch June 10, 2025 10:26
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
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.

2 participants