Skip to content
Merged
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
12 changes: 9 additions & 3 deletions containers/api-proxy/model-api-mapping.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"title": "Model-to-API Endpoint Mapping",
"description": "Maps AI model families to their supported API endpoints. Used to determine which endpoint (chat/completions vs responses vs messages) a model requires.",
"lastUpdated": "2026-08-12T05:43:00Z",
"lastUpdated": "2026-09-02T07:03:56Z",
"sources": {
"openai": "https://platform.openai.com/docs/models",
"openai": "https://developers.openai.com/api/docs/models",
"anthropic": "https://docs.anthropic.com/en/docs/about-claude/models"
},
"providers": {
Expand Down Expand Up @@ -37,11 +37,17 @@
"endpoints": ["chat_completions", "responses"],
"notes": "Supports both endpoints. Includes gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna per OpenAI SDK ChatModel. gpt-5.6-cyber is responses-only (see separate entry above)."
},
{
"family": "gpt-5.5-pro",
"patterns": ["gpt-5.5-pro", "gpt-5.5-pro-*"],
"endpoints": ["responses"],
"notes": "Responses API only (ResponsesOnlyModel per OpenAI OpenAPI spec). More specific than gpt-5.5* pattern below. Includes dated variants like gpt-5.5-pro-2026-04-23."
},
{
"family": "gpt-5.5",
"patterns": ["gpt-5.5*"],
"endpoints": ["chat_completions", "responses"],
"notes": "Supports both endpoints. Listed on the official GPT-5.5 model page."
"notes": "Supports both endpoints. Listed on the official GPT-5.5 model page. gpt-5.5-pro is responses-only (see separate entry above)."
},
{
"family": "gpt-5.4",
Expand Down
9 changes: 8 additions & 1 deletion containers/api-proxy/model-api-mapping.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ describe('model-api-mapping', () => {
expect(result.endpoints).toContain('responses');
});

it('finds GPT-5.5-pro as responses-only', () => {
const result = lookupModelEndpoints('gpt-5.5-pro', 'openai');
expect(result).not.toBeNull();
expect(result.family).toBe('gpt-5.5-pro');
expect(result.endpoints).toEqual(['responses']);
});

it('finds GPT-5.1 as supporting both endpoints', () => {
const result = lookupModelEndpoints('gpt-5.1-codex', 'openai');
expect(result).not.toBeNull();
Expand Down Expand Up @@ -136,7 +143,7 @@ describe('model-api-mapping', () => {
expect(reflect.available).toBe(true);
expect(reflect.providers).toContain('openai');
expect(reflect.providers).toContain('anthropic');
expect(reflect.last_updated).toBe('2026-08-12T05:43:00Z');
expect(reflect.last_updated).toBe('2026-09-02T07:03:56Z');
expect(reflect.models.anthropic.models[0].family).toBe('claude-opus-5');
expect(reflect.error).toBeNull();
});
Expand Down
4 changes: 2 additions & 2 deletions docs/model-api-mapping.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"title": "Model-to-API Endpoint Mapping",
"description": "Maps AI model families to their supported API endpoints. Used to determine which endpoint (chat/completions vs responses vs messages) a model requires.",
"lastUpdated": "2026-08-14T05:41:00Z",
"lastUpdated": "2026-09-02T07:03:56Z",
"sources": {
"openai": "https://platform.openai.com/docs/models",
"openai": "https://developers.openai.com/api/docs/models",
Comment on lines +4 to +6
"anthropic": "https://docs.anthropic.com/en/docs/about-claude/models"
},
"providers": {
Expand Down
Loading