mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-22 08:38:08 +02:00
feat: add codex llm backend
This commit is contained in:
parent
21744fc520
commit
64b8a416fe
28 changed files with 1462 additions and 14 deletions
17
packages/cli/test/context/llm/codex-models.test.ts
Normal file
17
packages/cli/test/context/llm/codex-models.test.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import { describe, expect, it } from 'vitest';
|
||||
import { resolveCodexModel } from '../../../src/context/llm/codex-models.js';
|
||||
|
||||
describe('resolveCodexModel', () => {
|
||||
it.each([
|
||||
['codex', 'gpt-5.3-codex'],
|
||||
['default', 'gpt-5.3-codex'],
|
||||
['gpt-5.3-codex', 'gpt-5.3-codex'],
|
||||
['gpt-5.4', 'gpt-5.4'],
|
||||
])('maps %s to %s', (input, expected) => {
|
||||
expect(resolveCodexModel(input)).toBe(expected);
|
||||
});
|
||||
|
||||
it.each(['', ' ', 'sonnet', 'claude-sonnet-4-6'])('rejects %s', (input) => {
|
||||
expect(() => resolveCodexModel(input)).toThrow('Unsupported Codex model');
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue