Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/config/runtime-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,7 @@ const DEFAULT_CODEX_MODEL_LIST = [
'openai-codex/gpt-5-codex',
'openai-codex/gpt-5.3-codex',
'openai-codex/gpt-5.4',
'openai-codex/gpt-5.5',
'openai-codex/gpt-5.3-codex-spark',
'openai-codex/gpt-5.2-codex',
'openai-codex/gpt-5.1-codex-max',
Expand Down
8 changes: 8 additions & 0 deletions src/providers/codex-discovery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ const CODEX_FORWARD_COMPAT_MODELS = [
'openai-codex/gpt-5.2-codex',
],
},
{
model: 'openai-codex/gpt-5.5',
templateModels: [
'openai-codex/gpt-5.4',
'openai-codex/gpt-5.3-codex',
'openai-codex/gpt-5.2-codex',
],
},
] as const;

function normalizeCodexModelName(modelId: string): string {
Expand Down
5 changes: 5 additions & 0 deletions src/providers/hybridai-models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ const STATIC_VISION_CAPABLE_MODELS = new Set<string>([
'gpt-5.4-mini',
'gpt-5.3-codex',
'gpt-5.4',
'gpt-5.5',
'gpt-5.5-pro',

'claude-opus-4-6',
'claude-opus-4.6',
Expand Down Expand Up @@ -73,6 +75,9 @@ const STATIC_MODEL_CONTEXT_WINDOWS: Record<string, number> = {
'gpt-5.4': 400_000,
'gpt-5.3-codex': 400_000,
'gpt-5.3-codex-spark': 128_000,
'gpt-5.5': 1_000_000,
'gpt-5.5-chat-latest': 128_000,
'gpt-5.5-pro': 1_000_000,
};

function collectModelLookupCandidates(modelName: string): string[] {
Expand Down
4 changes: 2 additions & 2 deletions tests/gateway-status.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ test('getGatewayStatus includes Codex auth state', async () => {
expect(status.providerHealth?.codex).toMatchObject({
kind: 'remote',
reachable: true,
modelCount: 8,
modelCount: 9,
});
const codexRequest = fetchMock.mock.calls
.map(([input, init]) => ({
Expand Down Expand Up @@ -308,7 +308,7 @@ test('getGatewayAdminModels discovers Codex models from the models endpoint', as
const result = await getGatewayAdminModels();

expect(result.providerStatus?.codex).toMatchObject({
modelCount: 8,
modelCount: 9,
});
const codexRequest = fetchMock.mock.calls
.map(([input, init]) => ({
Expand Down
4 changes: 4 additions & 0 deletions tests/hybridai-models.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ test('resolveModelContextWindowFallback resolves known defaults', () => {
expect(resolveModelContextWindowFallback('openai-codex/gpt-5.4')).toBe(
400_000,
);
expect(resolveModelContextWindowFallback('gpt-5.5')).toBe(1_000_000);
expect(resolveModelContextWindowFallback('gpt-5.5-pro')).toBe(1_000_000);
expect(resolveModelContextWindowFallback('anthropic/claude-opus-4-6')).toBe(
200_000,
);
Expand All @@ -63,6 +65,8 @@ test('isStaticModelVisionCapable returns true for known vision models', () => {
expect(isStaticModelVisionCapable('gpt-4.1-mini')).toBe(true);
expect(isStaticModelVisionCapable('gpt-5.4-mini')).toBe(true);
expect(isStaticModelVisionCapable('gpt-5.3-codex')).toBe(true);
expect(isStaticModelVisionCapable('gpt-5.5')).toBe(true);
expect(isStaticModelVisionCapable('gpt-5.5-pro')).toBe(true);
expect(isStaticModelVisionCapable('claude-opus-4-6')).toBe(true);
expect(isStaticModelVisionCapable('gemini-3-pro')).toBe(true);
});
Expand Down
2 changes: 2 additions & 0 deletions tests/model-catalog.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ test('available model catalog discovers Codex models from the models endpoint',
'openai-codex/gpt-5.3-codex-spark',
'openai-codex/gpt-5.4',
'openai-codex/gpt-5.4-mini',
'openai-codex/gpt-5.5',
]);
const codexRequest = fetchMock.mock.calls
.map(([input, init]) => ({
Expand Down Expand Up @@ -738,6 +739,7 @@ test('available model catalog discovers Codex models from the current models pay
'openai-codex/gpt-5.3-codex-spark',
'openai-codex/gpt-5.4',
'openai-codex/gpt-5.4-mini',
'openai-codex/gpt-5.5',
]);
expect(catalog.getAvailableModelList('codex')).not.toContain(
'openai-codex/GPT-5.2 Codex (Preview)',
Expand Down
Loading