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
20 changes: 13 additions & 7 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: ""
id: ""
management:
docChecksum: a58fc69a5070955b9069a4a9a9a3272b
docChecksum: e082caf3723ab1e222f73325c2ef3e49
docVersion: 1.0.0
speakeasyVersion: 1.808.1
generationVersion: 2.960.8
releaseVersion: 1.5.169
configChecksum: 892c45ab56059588e786efb0c79ed16d
releaseVersion: 1.5.170
configChecksum: 42293044358dde5d13b2f633f5b58c5d
repoURL: https://github.com/OpenRouterTeam/typescript-sdk.git
installationURL: https://github.com/OpenRouterTeam/typescript-sdk
published: true
Expand Down Expand Up @@ -18972,7 +18972,7 @@ examples:
limit: 500
responses:
"200":
application/json: {"data": [{"architecture": {"input_modalities": ["text"], "modality": "text->text", "output_modalities": ["text"]}, "canonical_slug": "openai/gpt-4", "context_length": 8192, "created": 1692901234, "default_parameters": null, "endpoints": ["/api/v1/chat/completions", "/api/v1/completions", "/api/v1/messages", "/api/v1/responses"], "id": "openai/gpt-4", "links": {"details": "/api/v1/models/openai/gpt-4/endpoints"}, "name": "GPT-4", "per_request_limits": null, "pricing": {"completion": "0.00006", "prompt": "0.00003"}, "supported_parameters": ["temperature", "top_p", "max_tokens", "frequency_penalty", "presence_penalty"], "supported_voices": null, "top_provider": {"is_moderated": true}}], "links": {"next": "/api/v1/models?offset=500&limit=500"}, "total_count": 150}
application/json: {"data": [{"architecture": {"input_modalities": ["text"], "modality": "text->text", "output_modalities": ["text"]}, "canonical_slug": "openai/gpt-4", "context_length": 8192, "created": 1692901234, "default_parameters": null, "endpoints": ["/api/v1/chat/completions", "/api/v1/completions", "/api/v1/messages", "/api/v1/responses"], "id": "openai/gpt-4", "links": {"details": "/api/v1/models/openai/gpt-4/endpoints"}, "name": "GPT-4", "per_request_limits": null, "pricing": {"completion": "0.00006", "prompt": "0.00003"}, "supported_parameters": ["temperature", "top_p", "max_tokens"], "supported_voices": null, "top_provider": {"is_moderated": true}}], "links": {"next": "/api/v1/models?offset=500&limit=500"}, "total_count": 150}
"400":
application/json: {"error": {"code": 400, "message": "Invalid request parameters"}}
"500":
Expand All @@ -18999,7 +18999,7 @@ examples:
limit: 500
responses:
"200":
application/json: {"data": [{"architecture": {"input_modalities": ["text"], "modality": "text->text", "output_modalities": ["text"]}, "canonical_slug": "openai/gpt-4", "context_length": 8192, "created": 1692901234, "default_parameters": null, "endpoints": ["/api/v1/chat/completions", "/api/v1/completions", "/api/v1/messages", "/api/v1/responses"], "id": "openai/gpt-4", "links": {"details": "/api/v1/models/openai/gpt-4/endpoints"}, "name": "GPT-4", "per_request_limits": null, "pricing": {"completion": "0.00006", "prompt": "0.00003"}, "supported_parameters": ["temperature", "top_p", "max_tokens", "frequency_penalty", "presence_penalty"], "supported_voices": null, "top_provider": {"is_moderated": true}}], "links": {"next": "/api/v1/models?offset=500&limit=500"}, "total_count": 150}
application/json: {"data": [{"architecture": {"input_modalities": ["text"], "modality": "text->text", "output_modalities": ["text"]}, "canonical_slug": "openai/gpt-4", "context_length": 8192, "created": 1692901234, "default_parameters": null, "endpoints": ["/api/v1/chat/completions", "/api/v1/completions", "/api/v1/messages", "/api/v1/responses"], "id": "openai/gpt-4", "links": {"details": "/api/v1/models/openai/gpt-4/endpoints"}, "name": "GPT-4", "per_request_limits": null, "pricing": {"completion": "0.00006", "prompt": "0.00003"}, "supported_parameters": ["temperature", "top_p", "max_tokens"], "supported_voices": null, "top_provider": {"is_moderated": true}}], "links": {"next": "/api/v1/models?offset=500&limit=500"}, "total_count": 150}
"401":
application/json: {"error": {"code": 401, "message": "Missing Authentication header"}}
"404":
Expand Down Expand Up @@ -23935,7 +23935,7 @@ examples:
limit: 500
responses:
"200":
application/json: {"data": [{"architecture": {"input_modalities": ["text"], "modality": "text->text", "output_modalities": ["text"]}, "canonical_slug": "openai/gpt-4", "context_length": 8192, "created": 1692901234, "default_parameters": null, "endpoints": ["/api/v1/chat/completions", "/api/v1/completions", "/api/v1/messages", "/api/v1/responses"], "id": "openai/gpt-4", "links": {"details": "/api/v1/models/openai/gpt-4/endpoints"}, "name": "GPT-4", "per_request_limits": null, "pricing": {"completion": "0.00006", "prompt": "0.00003"}, "supported_parameters": ["temperature", "top_p", "max_tokens", "frequency_penalty", "presence_penalty"], "supported_voices": null, "top_provider": {"is_moderated": true}}], "links": {"next": "/api/v1/models?offset=500&limit=500"}, "total_count": 150}
application/json: {"data": [{"architecture": {"input_modalities": ["text"], "modality": "text->text", "output_modalities": ["text"]}, "canonical_slug": "openai/gpt-4", "context_length": 8192, "created": 1692901234, "default_parameters": null, "endpoints": ["/api/v1/chat/completions", "/api/v1/completions", "/api/v1/messages", "/api/v1/responses"], "id": "openai/gpt-4", "links": {"details": "/api/v1/models/openai/gpt-4/endpoints"}, "name": "GPT-4", "per_request_limits": null, "pricing": {"completion": "0.00006", "prompt": "0.00003"}, "supported_parameters": ["temperature", "top_p", "max_tokens"], "supported_voices": null, "top_provider": {"is_moderated": true}}], "links": {"next": "/api/v1/models?offset=500&limit=500"}, "total_count": 150}
"400":
application/json: {"error": {"code": 400, "message": "Invalid request parameters"}}
"500":
Expand Down Expand Up @@ -24208,4 +24208,10 @@ examples:
"500":
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
examplesVersion: 1.0.2
releaseNotes: "## Typescript SDK Changes:\n* `openrouter.batch.createBatches()`: `response.results[].response.body` **Changed** (Breaking ⚠️)\n* `openrouter.batch.getBatches()`: `response.results[].response.body` **Changed** (Breaking ⚠️)\n* `openrouter.batch.cancel()`: `response.results[].response.body` **Changed** (Breaking ⚠️)\n* `openrouter.batch.getResults()`: `response.data[].response.body` **Changed** (Breaking ⚠️)\n* `openrouter.chat.send()`: \n * `request.chatRequest.messages[].union(assistant).reasoningDetails[]` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n* `openrouter.presets.createPresetsChatCompletions()`: \n * `request.chatRequest.messages[].union(assistant).reasoningDetails[]` **Changed** (Breaking ⚠️)\n* `openrouter.presets.createPresetsResponses()`: \n * `request.responsesRequest.input.union(Array<>)[]` **Changed** (Breaking ⚠️)\n* `openrouter.responses.send()`: \n * `request.responsesRequest.input.union(Array<>)[]` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n* `openrouter.beta.responses.send()`: \n * `request.responsesRequest.input.union(Array<>)[]` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n* `openrouter.generations.getGeneration()`: `response.data.billedDurationMs` **Added**\n"
releaseNotes: |
## Typescript SDK Changes:
* `openrouter.embeddings.listModels()`: `response.data[].isOpenWeight` **Added**
* `openrouter.models.get()`: `response.data.isOpenWeight` **Added**
* `openrouter.models.list()`: `response.data[].isOpenWeight` **Added**
* `openrouter.models.listForUser()`: `response.data[].isOpenWeight` **Added**
* `openrouter.rerank.listModels()`: `response.data[].isOpenWeight` **Added**
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
typescript:
version: 1.5.169
version: 1.5.170
acceptHeaderEnum: false
additionalDependencies:
dependencies:
Expand Down
108 changes: 43 additions & 65 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13369,6 +13369,7 @@ components:
unit: 'token'
value: 8192
type: 'text'
is_open_weight: false
knowledge_cutoff: null
links:
details: '/api/v1/models/openai/text-embedding-3-small/endpoints'
Expand Down Expand Up @@ -13429,6 +13430,7 @@ components:
unit: 'token'
value: 8192
type: 'text'
is_open_weight: false
knowledge_cutoff: null
links:
details: '/api/v1/models/openai/text-embedding-3-small/endpoints'
Expand Down Expand Up @@ -22760,27 +22762,24 @@ components:
created: 1692901234
default_parameters: null
description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.'
endpoints:
- '/api/v1/chat/completions'
- '/api/v1/completions'
- '/api/v1/messages'
- '/api/v1/responses'
expiration_date: null
id: 'openai/gpt-4'
is_open_weight: false
knowledge_cutoff: null
links:
details: '/api/v1/models/openai/gpt-5.4/endpoints'
details: '/api/v1/models/openai/gpt-4/endpoints'
name: 'GPT-4'
per_request_limits: null
pricing:
completion: '0.00006'
image: '0'
prompt: '0.00003'
request: '0'
reasoning:
default_effort: 'medium'
default_enabled: true
mandatory: false
supported_efforts:
- 'high'
- 'medium'
- 'low'
- 'minimal'
supported_parameters:
- 'temperature'
- 'top_p'
Expand Down Expand Up @@ -22843,6 +22842,10 @@ components:
description: 'Unique identifier for the model'
example: 'openai/gpt-4'
type: 'string'
is_open_weight:
description: 'Whether the model has publicly released weights. A preset reports true only when every listed model is known to be open-weight; routing presets report false.'
example: false
type: 'boolean'
knowledge_cutoff:
description: 'The date up to which the model was trained on data. ISO 8601 date string (YYYY-MM-DD) or null if unknown.'
example: '2024-10-01'
Expand Down Expand Up @@ -24110,6 +24113,7 @@ components:
- '/api/v1/responses'
expiration_date: null
id: 'openai/gpt-4'
is_open_weight: false
knowledge_cutoff: null
links:
details: '/api/v1/models/openai/gpt-4/endpoints'
Expand Down Expand Up @@ -24173,8 +24177,14 @@ components:
created: 1692901234
default_parameters: null
description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.'
endpoints:
- '/api/v1/chat/completions'
- '/api/v1/completions'
- '/api/v1/messages'
- '/api/v1/responses'
expiration_date: null
id: 'openai/gpt-4'
is_open_weight: false
knowledge_cutoff: null
links:
details: '/api/v1/models/openai/gpt-4/endpoints'
Expand All @@ -24189,8 +24199,6 @@ components:
- 'temperature'
- 'top_p'
- 'max_tokens'
- 'frequency_penalty'
- 'presence_penalty'
supported_voices: null
top_provider:
context_length: 8192
Expand Down Expand Up @@ -24239,8 +24247,14 @@ components:
created: 1692901234
default_parameters: null
description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.'
endpoints:
- '/api/v1/chat/completions'
- '/api/v1/completions'
- '/api/v1/messages'
- '/api/v1/responses'
expiration_date: null
id: 'openai/gpt-4'
is_open_weight: false
knowledge_cutoff: null
links:
details: '/api/v1/models/openai/gpt-4/endpoints'
Expand Down Expand Up @@ -34600,27 +34614,24 @@ components:
created: 1692901234
default_parameters: null
description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.'
endpoints:
- '/api/v1/chat/completions'
- '/api/v1/completions'
- '/api/v1/messages'
- '/api/v1/responses'
expiration_date: null
id: 'openai/gpt-4'
is_open_weight: false
knowledge_cutoff: null
links:
details: '/api/v1/models/openai/gpt-5.4/endpoints'
details: '/api/v1/models/openai/gpt-4/endpoints'
name: 'GPT-4'
per_request_limits: null
pricing:
completion: '0.00006'
image: '0'
prompt: '0.00003'
request: '0'
reasoning:
default_effort: 'medium'
default_enabled: true
mandatory: false
supported_efforts:
- 'high'
- 'medium'
- 'low'
- 'minimal'
supported_parameters:
- 'temperature'
- 'top_p'
Expand Down Expand Up @@ -34656,8 +34667,14 @@ components:
created: 1692901234
default_parameters: null
description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.'
endpoints:
- '/api/v1/chat/completions'
- '/api/v1/completions'
- '/api/v1/messages'
- '/api/v1/responses'
expiration_date: null
id: 'openai/gpt-4'
is_open_weight: false
knowledge_cutoff: null
links:
details: '/api/v1/models/openai/gpt-4/endpoints'
Expand All @@ -34672,8 +34689,6 @@ components:
- 'temperature'
- 'top_p'
- 'max_tokens'
- 'frequency_penalty'
- 'presence_penalty'
supported_voices: null
top_provider:
context_length: 8192
Expand Down Expand Up @@ -48782,6 +48797,7 @@ paths:
unit: 'token'
value: 8192
type: 'text'
is_open_weight: false
knowledge_cutoff: null
links:
details: '/api/v1/models/openai/text-embedding-3-small/endpoints'
Expand Down Expand Up @@ -57360,47 +57376,6 @@ paths:
'200':
content:
application/json:
example:
data:
architecture:
input_modalities:
- 'text'
instruct_type: 'chatml'
modality: 'text->text'
output_modalities:
- 'text'
tokenizer: 'GPT'
canonical_slug: 'openai/gpt-4'
context_length: 8192
created: 1692901234
default_parameters: null
description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.'
endpoints:
- '/api/v1/chat/completions'
- '/api/v1/completions'
- '/api/v1/messages'
- '/api/v1/responses'
expiration_date: null
id: 'openai/gpt-4'
knowledge_cutoff: null
links:
details: '/api/v1/models/openai/gpt-4/endpoints'
name: 'GPT-4'
per_request_limits: null
pricing:
completion: '0.00006'
image: '0'
prompt: '0.00003'
request: '0'
supported_parameters:
- 'temperature'
- 'top_p'
- 'max_tokens'
supported_voices: null
top_provider:
context_length: 8192
is_moderated: true
max_completion_tokens: 4096
schema:
$ref: '#/components/schemas/ModelResponse'
description: 'Returns the model details'
Expand Down Expand Up @@ -58039,6 +58014,7 @@ paths:
- '/api/v1/responses'
expiration_date: null
id: 'openai/gpt-4'
is_open_weight: false
knowledge_cutoff: null
links:
details: '/api/v1/models/openai/gpt-4/endpoints'
Expand Down Expand Up @@ -58492,6 +58468,7 @@ paths:
- '/api/v1/responses'
expiration_date: null
id: 'openai/gpt-4'
is_open_weight: false
knowledge_cutoff: null
links:
details: '/api/v1/models/openai/gpt-4/endpoints'
Expand Down Expand Up @@ -63099,6 +63076,7 @@ paths:
unit: 'token'
value: 4096
type: 'text'
is_open_weight: false
knowledge_cutoff: null
links:
details: '/api/v1/models/cohere/rerank-v3.5/endpoints'
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ speakeasyVersion: 1.808.1
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:8bc784ff07443f5bed27fe645135e37e566d228b5bd0b9ab725a81e803e1c492
sourceBlobDigest: sha256:8daf3684fcb85e158bb64dc7b273143aacca9358c44742de19c3ffc6ee631ba3
sourceRevisionDigest: sha256:8d8dc2c91d068c4499b71b16c8c1260eb9282641f1af9613d09162d5b128f7d1
sourceBlobDigest: sha256:29576fe252c6bbfd1d5ca446e664bfcca4f8169c9ad32fee59b25e45cb1775de
tags:
- latest
- 1.0.0
targets:
openrouter:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:8bc784ff07443f5bed27fe645135e37e566d228b5bd0b9ab725a81e803e1c492
sourceBlobDigest: sha256:8daf3684fcb85e158bb64dc7b273143aacca9358c44742de19c3ffc6ee631ba3
sourceRevisionDigest: sha256:8d8dc2c91d068c4499b71b16c8c1260eb9282641f1af9613d09162d5b128f7d1
sourceBlobDigest: sha256:29576fe252c6bbfd1d5ca446e664bfcca4f8169c9ad32fee59b25e45cb1775de
codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
codeSamplesRevisionDigest: sha256:c503e747ed750f2c781c54e433e2e0e368e5fe9626c39bdc73e4cd68201753e4
codeSamplesRevisionDigest: sha256:1660272311a578fc58453e85a3470650274df8133559783956c1eee298bac5fb
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.808.1
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6066,4 +6066,14 @@ Based on:
### Generated
- [typescript v1.5.169] .
### Releases
- [NPM v1.5.169] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.169 - .
- [NPM v1.5.169] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.169 - .

## 2026-12-03 19:25:06
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.808.1 (2.960.8) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v1.5.170] .
### Releases
- [NPM v1.5.170] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.170 - .
Loading