mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-18 12:13:58 +00:00
fix(usage): price updated provider defaults
This commit is contained in:
1 parent
20e315ba3f
commit
34123a62a6
3 files changed
+59
-3
No files matched your search
@@ -29,6 +29,14 @@ describe('provider-presets', () => {
|
||||
expect(preset?.id).toBe('km');
|
||||
});
|
||||
|
||||
it('tracks current provider default model updates', () => {
|
||||
expect(getPresetById('glm')?.defaultModel).toBe('glm-5.2');
|
||||
expect(getPresetById('glmt')?.defaultModel).toBe('glm-5.2');
|
||||
expect(getPresetById('km')?.defaultModel).toBe('kimi-for-coding');
|
||||
expect(getPresetById('kimi')?.defaultModel).toBe('kimi-for-coding');
|
||||
expect(getPresetById('mm')?.defaultModel).toBe('MiniMax-M3');
|
||||
});
|
||||
|
||||
it('resolves llama.cpp preset with local-provider sentinel token', () => {
|
||||
const preset = getPresetById('llamacpp');
|
||||
expect(preset?.id).toBe('llamacpp');
|
||||
@@ -110,7 +118,11 @@ describe('provider-presets', () => {
|
||||
for (const preset of PROVIDER_PRESETS) {
|
||||
if (!preset.icon) continue;
|
||||
|
||||
const iconPath = resolve(import.meta.dir, '../../../ui/public', preset.icon.replace(/^\/+/, ''));
|
||||
const iconPath = resolve(
|
||||
import.meta.dir,
|
||||
'../../../ui/public',
|
||||
preset.icon.replace(/^\/+/, '')
|
||||
);
|
||||
expect(existsSync(iconPath)).toBe(true);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user