mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-12 16:15:13 +00:00
feat(cliproxy): wire composite variant into main execution flow
- Detect composite variants in ProfileDetector with tier metadata - Pass isComposite/compositeTiers/compositeDefaultTier through ccs.ts - Handle composite in loadConfigSafe() legacy adapter - Add validateCompositeVariants() for provider string validation - Display 'composite' label in API profile listing Refs #506
This commit is contained in:
1 parent
4926c200f2
commit
07bef9f50e
5 files changed
+101
-14
No files matched your search
@@ -72,9 +72,13 @@ export function listApiProfiles(): ApiListResult {
|
||||
}
|
||||
// CLIProxy variants
|
||||
for (const [name, variant] of Object.entries(unifiedConfig.cliproxy?.variants || {})) {
|
||||
const provider =
|
||||
variant && 'type' in variant && variant.type === 'composite'
|
||||
? 'composite'
|
||||
: (variant as { provider?: string })?.provider || 'unknown';
|
||||
variants.push({
|
||||
name,
|
||||
provider: variant?.provider || 'unknown',
|
||||
provider,
|
||||
settings: variant?.settings || '-',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user