add customised github copilot configuration (#8251)

This commit is contained in:
Lifei Zhou
2026-04-03 00:51:50 +11:00
committed by GitHub
parent 1aa07bb63a
commit 03afcf1ffc
4 changed files with 261 additions and 95 deletions
+12
View File
@@ -57,6 +57,17 @@ export const configLabels: Record<string, string> = {
// snowflake
SNOWFLAKE_HOST: 'Snowflake Host',
SNOWFLAKE_TOKEN: 'Snowflake Token',
// github copilot
GITHUB_COPILOT_HOST: 'Custom GitHub Host',
GITHUB_COPILOT_CLIENT_ID: 'Custom GitHub OAuth Client ID',
GITHUB_COPILOT_TOKEN_URL: 'Custom GitHub Copilot Token URL',
};
export const configPlaceholders: Record<string, string> = {
GITHUB_COPILOT_HOST: 'my-enterprise.ghe.com',
GITHUB_COPILOT_CLIENT_ID: 'Iv1.xxxxxxxxxxxxxxxx',
GITHUB_COPILOT_TOKEN_URL: 'https://my-enterprise.ghe.com/api/copilot_internal/v2/token',
};
export const providerPrefixes: Record<string, string[]> = {
@@ -70,6 +81,7 @@ export const providerPrefixes: Record<string, string[]> = {
azure_openai: ['AZURE_'],
gcp_vertex_ai: ['GCP_'],
snowflake: ['SNOWFLAKE_'],
github_copilot: ['GITHUB_COPILOT_'],
};
export const getUiNames = (key: string): string => {