mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
docs: move copilot provider config from clients to setup (#24382)
This commit is contained in:
@@ -12,32 +12,7 @@ For general information about GitHub Copilot, see the [GitHub Copilot documentat
|
||||
For general client configuration requirements, see [AI Gateway Proxy Client Configuration](../ai-gateway-proxy/setup.md#client-configuration).
|
||||
The sections below cover Copilot-specific setup for each client.
|
||||
|
||||
## Provider configuration
|
||||
|
||||
Configure a `copilot` provider using the
|
||||
[indexed provider format](../setup.md#multiple-instances-of-the-same-provider).
|
||||
Copilot providers use OAuth app installations for authentication rather than
|
||||
static API keys.
|
||||
|
||||
```sh
|
||||
# GitHub Copilot (Individual)
|
||||
export CODER_AIBRIDGE_PROVIDER_0_TYPE=copilot
|
||||
export CODER_AIBRIDGE_PROVIDER_0_NAME=copilot
|
||||
|
||||
# GitHub Copilot Business
|
||||
export CODER_AIBRIDGE_PROVIDER_1_TYPE=copilot
|
||||
export CODER_AIBRIDGE_PROVIDER_1_NAME=copilot-business
|
||||
export CODER_AIBRIDGE_PROVIDER_1_BASE_URL=https://api.business.githubcopilot.com
|
||||
|
||||
# GitHub Copilot Enterprise
|
||||
export CODER_AIBRIDGE_PROVIDER_2_TYPE=copilot
|
||||
export CODER_AIBRIDGE_PROVIDER_2_NAME=copilot-enterprise
|
||||
export CODER_AIBRIDGE_PROVIDER_2_BASE_URL=https://api.enterprise.githubcopilot.com
|
||||
```
|
||||
|
||||
The default base URL targets the individual Copilot API
|
||||
(`api.individual.githubcopilot.com`). Override `BASE_URL` for Business or
|
||||
Enterprise tiers as shown above.
|
||||
For provider configuration (admin), see [GitHub Copilot provider setup](../setup.md#github-copilot).
|
||||
|
||||
## Copilot CLI
|
||||
|
||||
|
||||
@@ -95,11 +95,32 @@ proxy between AI Gateway and AWS Bedrock.
|
||||
### GitHub Copilot
|
||||
|
||||
Configure a `copilot` provider using the
|
||||
[indexed provider format](#multiple-instances-of-the-same-provider) with
|
||||
separate instances for Individual, Business, and Enterprise tiers.
|
||||
[indexed provider format](#multiple-instances-of-the-same-provider).
|
||||
Copilot providers use OAuth app installations for authentication rather than
|
||||
static API keys.
|
||||
|
||||
See [GitHub Copilot — Provider configuration](./clients/copilot.md#provider-configuration)
|
||||
for full setup instructions.
|
||||
```sh
|
||||
# GitHub Copilot (Individual)
|
||||
export CODER_AIBRIDGE_PROVIDER_0_TYPE=copilot
|
||||
export CODER_AIBRIDGE_PROVIDER_0_NAME=copilot
|
||||
|
||||
# GitHub Copilot Business
|
||||
export CODER_AIBRIDGE_PROVIDER_1_TYPE=copilot
|
||||
export CODER_AIBRIDGE_PROVIDER_1_NAME=copilot-business
|
||||
export CODER_AIBRIDGE_PROVIDER_1_BASE_URL=https://api.business.githubcopilot.com
|
||||
|
||||
# GitHub Copilot Enterprise
|
||||
export CODER_AIBRIDGE_PROVIDER_2_TYPE=copilot
|
||||
export CODER_AIBRIDGE_PROVIDER_2_NAME=copilot-enterprise
|
||||
export CODER_AIBRIDGE_PROVIDER_2_BASE_URL=https://api.enterprise.githubcopilot.com
|
||||
```
|
||||
|
||||
The default base URL targets the individual Copilot API
|
||||
(`api.individual.githubcopilot.com`). Override `CODER_AIBRIDGE_PROVIDER_<N>_BASE_URL`
|
||||
for Business or Enterprise tiers as shown above.
|
||||
|
||||
For client-side setup (proxy, certificates, IDE configuration), see
|
||||
[GitHub Copilot client configuration](./clients/copilot.md).
|
||||
|
||||
### ChatGPT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user