- Introduced CLI_INSTALLER_VERIFY_PROVIDER_MODELS IPC channel for on-demand model verification. - Implemented handler for verifying provider models in the CliInstallerService. - Enhanced CLI installation status management with model verification state and availability. - Updated related components to support model verification feedback in the UI.
26 lines
651 B
TypeScript
26 lines
651 B
TypeScript
import { describe, expect, it } from 'vitest';
|
|
|
|
import { getVisibleTeamProviderModels } from '@renderer/utils/teamModelCatalog';
|
|
|
|
describe('teamModelCatalog', () => {
|
|
it('filters UI-disabled Codex models from provider badge lists', () => {
|
|
expect(
|
|
getVisibleTeamProviderModels('codex', [
|
|
'gpt-5.4',
|
|
'gpt-5.4-mini',
|
|
'gpt-5.3-codex',
|
|
'gpt-5.3-codex-spark',
|
|
'gpt-5.2',
|
|
'gpt-5.2-codex',
|
|
'gpt-5.1-codex-mini',
|
|
'gpt-5.1-codex-max',
|
|
])
|
|
).toEqual([
|
|
'gpt-5.4',
|
|
'gpt-5.4-mini',
|
|
'gpt-5.3-codex',
|
|
'gpt-5.2',
|
|
'gpt-5.1-codex-max',
|
|
]);
|
|
});
|
|
});
|