mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 02:11:28 +00:00
fix(cliproxy): address review feedback on kimi catalog
- Sync kimi-k2.5 description between backend and UI catalogs to 'Latest multimodal model (262K context)' per official naming - Add kimi-k2 pricing entry to avoid fallback to unknown model rate - Add supportsModelConfig and getProviderCatalog tests for kimi
This commit is contained in:
@@ -205,7 +205,7 @@ export const MODEL_CATALOG: Partial<Record<CLIProxyProvider, ProviderCatalog>> =
|
||||
{
|
||||
id: 'kimi-k2.5',
|
||||
name: 'Kimi K2.5',
|
||||
description: 'Latest Moonshot coding model',
|
||||
description: 'Latest multimodal model (262K context)',
|
||||
thinking: {
|
||||
type: 'budget',
|
||||
min: 1024,
|
||||
|
||||
@@ -153,6 +153,11 @@ describe('Model Catalog', () => {
|
||||
assert.strictEqual(supportsModelConfig('codex'), true);
|
||||
});
|
||||
|
||||
it('returns true for kimi', () => {
|
||||
const { supportsModelConfig } = modelCatalog;
|
||||
assert.strictEqual(supportsModelConfig('kimi'), true);
|
||||
});
|
||||
|
||||
it('returns false for qwen', () => {
|
||||
const { supportsModelConfig } = modelCatalog;
|
||||
assert.strictEqual(supportsModelConfig('qwen'), false);
|
||||
@@ -182,6 +187,14 @@ describe('Model Catalog', () => {
|
||||
assert.strictEqual(catalog.provider, 'codex');
|
||||
assert(Array.isArray(catalog.models));
|
||||
});
|
||||
|
||||
it('returns catalog for kimi', () => {
|
||||
const { getProviderCatalog } = modelCatalog;
|
||||
const catalog = getProviderCatalog('kimi');
|
||||
assert(catalog, 'Should return catalog');
|
||||
assert.strictEqual(catalog.provider, 'kimi');
|
||||
assert(Array.isArray(catalog.models));
|
||||
});
|
||||
});
|
||||
|
||||
describe('findModel', () => {
|
||||
|
||||
Reference in New Issue
Block a user