feat(cliproxy): add ghcp settings and update variant adapter

- rename base-copilot.settings.json to base-ghcp.settings.json

- add kiro and ghcp to variant adapter providers list

- update provider display names in config generator
This commit is contained in:
kaitranntt
2025-12-22 00:44:52 -05:00
parent a01abe181b
commit fae1ee2b31
3 changed files with 12 additions and 2 deletions
+10
View File
@@ -0,0 +1,10 @@
{
"env": {
"ANTHROPIC_BASE_URL": "http://127.0.0.1:8317/api/provider/copilot",
"ANTHROPIC_AUTH_TOKEN": "ccs-internal-managed",
"ANTHROPIC_MODEL": "gpt-4o",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "gpt-4o",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "gpt-4o",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "gpt-4o-mini"
}
}
+1 -1
View File
@@ -56,7 +56,7 @@ const PROVIDER_DISPLAY_NAMES: Record<CLIProxyProvider, string> = {
qwen: 'Qwen Code',
iflow: 'iFlow',
kiro: 'Kiro (AWS)',
copilot: 'GitHub Copilot',
ghcp: 'GitHub Copilot (OAuth)',
};
/**
@@ -80,7 +80,7 @@ export function saveVariantUnified(
if (!config.cliproxy) {
config.cliproxy = {
oauth_accounts: {},
providers: ['gemini', 'codex', 'agy', 'qwen', 'iflow', 'kiro', 'copilot'],
providers: ['gemini', 'codex', 'agy', 'qwen', 'iflow', 'kiro', 'ghcp'],
variants: {},
};
}