mirror of
https://github.com/tiennm99/ccs.git
synced 2026-08-11 00:24:08 +00:00
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:
@@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -56,7 +56,7 @@ const PROVIDER_DISPLAY_NAMES: Record<CLIProxyProvider, string> = {
|
|||||||
qwen: 'Qwen Code',
|
qwen: 'Qwen Code',
|
||||||
iflow: 'iFlow',
|
iflow: 'iFlow',
|
||||||
kiro: 'Kiro (AWS)',
|
kiro: 'Kiro (AWS)',
|
||||||
copilot: 'GitHub Copilot',
|
ghcp: 'GitHub Copilot (OAuth)',
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ export function saveVariantUnified(
|
|||||||
if (!config.cliproxy) {
|
if (!config.cliproxy) {
|
||||||
config.cliproxy = {
|
config.cliproxy = {
|
||||||
oauth_accounts: {},
|
oauth_accounts: {},
|
||||||
providers: ['gemini', 'codex', 'agy', 'qwen', 'iflow', 'kiro', 'copilot'],
|
providers: ['gemini', 'codex', 'agy', 'qwen', 'iflow', 'kiro', 'ghcp'],
|
||||||
variants: {},
|
variants: {},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user