Merge pull request #1573 from tiennm99/fix/update-provider-model-templates

fix(config): update provider default models
This commit is contained in:
Kai (Tam Nhu) Tran authored and GitHub committed 2026-06-19 10:00:20 -04:00
commit 6e64a3ac6e
8 files changed
+82 -26

No files matched your search

+13 -1
View File
@@ -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);
}
});