feat(provider): add GitHub Enterprise support for Copilot (#2522)

Co-authored-by: Jon-Mikkel Korsvik <48263282+jkorsvik@users.noreply.github.com>
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
This commit is contained in:
Ola 2025-11-04 22:36:12 +01:00 committed by GitHub
commit fe94bb8e50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 312 additions and 159 deletions

View file

@ -405,6 +405,10 @@ export type Config = {
options?: {
apiKey?: string
baseURL?: string
/**
* GitHub Enterprise URL for copilot authentication
*/
enterpriseUrl?: string
/**
* Timeout in milliseconds for requests to this provider. Default is 300000 (5 minutes). Set to false to disable timeout.
*/
@ -1135,6 +1139,7 @@ export type OAuth = {
refresh: string
access: string
expires: number
enterpriseUrl?: string
}
export type ApiAuth = {