070959e133
landing-page-staging / Deploy landing page to staging (push) Has been skipped
landing-page-ci / Validate landing page (push) Failing after 4s
visual-baseline / Capture visual baselines (push) Has been cancelled
bake-plugin-previews / Bake plugin previews (push) Has been cancelled
29 lines
1004 B
TypeScript
29 lines
1004 B
TypeScript
import { describe, expect, it } from 'vitest';
|
|
import {
|
|
FAST_MODEL_BY_PROTOCOL,
|
|
SUGGESTED_MODELS_BY_PROTOCOL,
|
|
} from '../../src/state/apiProtocols';
|
|
import { KNOWN_PROVIDERS } from '../../src/state/config';
|
|
|
|
describe('apiProtocols table consistency', () => {
|
|
it('FAST_MODEL_BY_PROTOCOL.google is one of the live suggested models', () => {
|
|
expect(SUGGESTED_MODELS_BY_PROTOCOL.google).toContain(FAST_MODEL_BY_PROTOCOL.google);
|
|
});
|
|
|
|
it('keeps the Ollama Cloud picker current with recent cloud models', () => {
|
|
const recentCloudModels = [
|
|
'glm-5.2',
|
|
'kimi-k2.7-code',
|
|
];
|
|
const ollamaCloudProvider = KNOWN_PROVIDERS.find(
|
|
(provider) => provider.protocol === 'ollama' && provider.baseUrl === 'https://ollama.com',
|
|
);
|
|
|
|
expect(ollamaCloudProvider?.models).toBeDefined();
|
|
for (const model of recentCloudModels) {
|
|
expect(SUGGESTED_MODELS_BY_PROTOCOL.ollama).toContain(model);
|
|
expect(ollamaCloudProvider?.models).toContain(model);
|
|
}
|
|
});
|
|
});
|