Skip to content

Commit 9ba5419

Browse files
openrouter-docs-sync[bot]OpenRouter SDK Bot
andauthored
chore: update OpenAPI spec from monorepo (#1187)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
1 parent 54aa67f commit 9ba5419

1 file changed

Lines changed: 35 additions & 2 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19320,6 +19320,16 @@ components:
1932019320
description: 'Description of the model'
1932119321
example: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.'
1932219322
type: 'string'
19323+
endpoints:
19324+
description: 'Request API paths that serve this model, derived from the same modality and adapter rules the routers use. A model served only through an alpha surface lists only that path.'
19325+
example:
19326+
- '/api/v1/chat/completions'
19327+
- '/api/v1/completions'
19328+
- '/api/v1/messages'
19329+
- '/api/v1/responses'
19330+
items:
19331+
type: 'string'
19332+
type: 'array'
1932319333
expiration_date:
1932419334
description: 'The date after which the model may be removed. ISO 8601 date string (YYYY-MM-DD) or null if no expiration.'
1932519335
example: '2025-06-01'
@@ -19383,6 +19393,7 @@ components:
1938319393
- 'default_parameters'
1938419394
- 'supported_voices'
1938519395
- 'links'
19396+
- 'endpoints'
1938619397
type: 'object'
1938719398
ModelAliasTarget:
1938819399
description: 'Concrete model targeted by this tilde-latest alias, when applicable'
@@ -19559,6 +19570,11 @@ components:
1955919570
created: 1692901234
1956019571
default_parameters: null
1956119572
description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.'
19573+
endpoints:
19574+
- '/api/v1/chat/completions'
19575+
- '/api/v1/completions'
19576+
- '/api/v1/messages'
19577+
- '/api/v1/responses'
1956219578
expiration_date: null
1956319579
id: 'openai/gpt-4'
1956419580
knowledge_cutoff: null
@@ -40559,6 +40575,8 @@ paths:
4055940575
created: 1692901234
4056040576
default_parameters: null
4056140577
description: 'OpenAI text embedding model optimized for performance.'
40578+
endpoints:
40579+
- '/api/v1/embeddings'
4056240580
expiration_date: null
4056340581
id: 'openai/text-embedding-3-small'
4056440582
knowledge_cutoff: null
@@ -45863,6 +45881,11 @@ paths:
4586345881
created: 1692901234
4586445882
default_parameters: null
4586545883
description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.'
45884+
endpoints:
45885+
- '/api/v1/chat/completions'
45886+
- '/api/v1/completions'
45887+
- '/api/v1/messages'
45888+
- '/api/v1/responses'
4586645889
expiration_date: null
4586745890
id: 'openai/gpt-4'
4586845891
knowledge_cutoff: null
@@ -46278,6 +46301,11 @@ paths:
4627846301
created: 1692901234
4627946302
default_parameters: null
4628046303
description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.'
46304+
endpoints:
46305+
- '/api/v1/chat/completions'
46306+
- '/api/v1/completions'
46307+
- '/api/v1/messages'
46308+
- '/api/v1/responses'
4628146309
expiration_date: null
4628246310
id: 'openai/gpt-4'
4628346311
knowledge_cutoff: null
@@ -46666,12 +46694,12 @@ paths:
4666646694
- 'design-arena-elo-high-to-low'
4666746695
example: 'newest'
4666846696
type: 'string'
46669-
- description: 'Filter models and presets by the named harness''s eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor''s own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). This filter doesn''t apply the harness''s ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.'
46697+
- description: 'Filter models and presets by the named harness''s eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor''s own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace''s Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn''t apply the harness''s ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.'
4667046698
in: 'query'
4667146699
name: 'client'
4667246700
required: false
4667346701
schema:
46674-
description: 'Filter models and presets by the named harness''s eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor''s own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). This filter doesn''t apply the harness''s ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.'
46702+
description: 'Filter models and presets by the named harness''s eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor''s own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace''s Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn''t apply the harness''s ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.'
4667546703
enum:
4667646704
- 'claude_code'
4667746705
- 'claude_desktop'
@@ -46697,6 +46725,11 @@ paths:
4669746725
created: 1692901234
4669846726
default_parameters: null
4669946727
description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.'
46728+
endpoints:
46729+
- '/api/v1/chat/completions'
46730+
- '/api/v1/completions'
46731+
- '/api/v1/messages'
46732+
- '/api/v1/responses'
4670046733
expiration_date: null
4670146734
id: 'openai/gpt-4'
4670246735
knowledge_cutoff: null

0 commit comments

Comments
 (0)