feat: add sonnet and haiku to supported providers

- make supported providers list more dynamic for cli models
This commit is contained in:
Ralph Khreish
2025-10-16 17:39:17 +02:00
parent 6bc75c0ac6
commit 9923b4f486
9 changed files with 80 additions and 12 deletions

View File

@@ -20,6 +20,7 @@ jest.unstable_mockModule('ai-sdk-provider-codex-cli', () => ({
// Mock config getters
jest.unstable_mockModule('../../../scripts/modules/config-manager.js', () => ({
getCodexCliSettingsForCommand: jest.fn(() => ({ allowNpx: true })),
getSupportedModelsForProvider: jest.fn(() => ['gpt-5', 'gpt-5-codex']),
// Provide commonly imported getters to satisfy other module imports if any
getDebugFlag: jest.fn(() => false),
getLogLevel: jest.fn(() => 'info')