|
|
@@ -35,12 +35,12 @@ describe('providers', () => {
|
|
|
const agents = (config.presets as any).openai;
|
|
|
expect(agents).toBeDefined();
|
|
|
expect(agents.orchestrator.model).toBe('openai/gpt-5.6-terra');
|
|
|
- expect(agents.orchestrator.variant).toBe('medium');
|
|
|
+ expect(agents.orchestrator.variant).toBe('xhigh');
|
|
|
expect(agents.fixer.model).toBe('openai/gpt-5.6-luna');
|
|
|
- expect(agents.fixer.variant).toBe('medium');
|
|
|
+ expect(agents.fixer.variant).toBe('xhigh');
|
|
|
});
|
|
|
|
|
|
- test('generateLiteConfig uses correct OpenAI models', () => {
|
|
|
+ test('preserves exact OpenAI model and variant mappings', () => {
|
|
|
const config = generateLiteConfig({
|
|
|
hasTmux: false,
|
|
|
installCustomSkills: false,
|
|
|
@@ -49,17 +49,17 @@ describe('providers', () => {
|
|
|
});
|
|
|
|
|
|
const agents = (config.presets as any).openai;
|
|
|
- expect(agents.orchestrator.model).toBe(
|
|
|
- MODEL_MAPPINGS.openai.orchestrator.model,
|
|
|
- );
|
|
|
- expect(agents.oracle.model).toBe('openai/gpt-5.6-sol');
|
|
|
- expect(agents.oracle.variant).toBe('high');
|
|
|
- expect(agents.librarian.model).toBe('openai/gpt-5.6-luna');
|
|
|
- expect(agents.librarian.variant).toBe('low');
|
|
|
- expect(agents.explorer.model).toBe('openai/gpt-5.6-luna');
|
|
|
- expect(agents.explorer.variant).toBe('low');
|
|
|
- expect(agents.designer.model).toBe('openai/gpt-5.6-luna');
|
|
|
- expect(agents.designer.variant).toBe('medium');
|
|
|
+ const expected = {
|
|
|
+ orchestrator: { model: 'openai/gpt-5.6-terra', variant: 'xhigh' },
|
|
|
+ oracle: { model: 'openai/gpt-5.6-sol', variant: 'xhigh' },
|
|
|
+ librarian: { model: 'openai/gpt-5.6-luna', variant: 'low' },
|
|
|
+ explorer: { model: 'openai/gpt-5.6-luna', variant: 'low' },
|
|
|
+ designer: { model: 'openai/gpt-5.6-luna', variant: 'medium' },
|
|
|
+ fixer: { model: 'openai/gpt-5.6-luna', variant: 'xhigh' },
|
|
|
+ } as const;
|
|
|
+
|
|
|
+ expect(MODEL_MAPPINGS.openai).toEqual(expected);
|
|
|
+ expect(agents).toMatchObject(expected);
|
|
|
});
|
|
|
|
|
|
test('generateLiteConfig can set opencode-go as active preset', () => {
|