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
7 changes: 3 additions & 4 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: ""
id: ""
management:
docChecksum: 78cda80193a326d2864d2cc849dd3ca6
docChecksum: e70e2accb15789ed1d8188205e9e99f4
docVersion: 1.0.0
speakeasyVersion: 1.808.1
generationVersion: 2.960.8
releaseVersion: 1.5.175
configChecksum: 6d4acdd3418ee4723460d590d2a14555
releaseVersion: 1.5.176
configChecksum: 0f8dc3176c4649e784bfde212a52b8a9
repoURL: https://github.com/OpenRouterTeam/typescript-sdk.git
installationURL: https://github.com/OpenRouterTeam/typescript-sdk
published: true
Expand Down Expand Up @@ -24218,4 +24218,3 @@ examples:
"500":
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
examplesVersion: 1.0.2
releaseNotes: "## Typescript SDK Changes:\n* `openrouter.images.generate()`: \n * `request.imageGenerationRequest.prompt` **Changed**\n"
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.175
version: 1.5.176
acceptHeaderEnum: false
additionalDependencies:
dependencies:
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37050,7 +37050,7 @@ components:
$ref: '#/components/schemas/SpeechInputReference'
type: 'array'
instructions:
description: 'Delivery instructions for the whole request, such as tone, pacing, or emotion. Supported by OpenAI gpt-4o-mini-tts, Gemini TTS, and Fish Audio models. Ignored by other providers.'
description: 'Delivery instructions for the whole request, such as tone, pacing, or emotion. For the selected endpoint in the [Speech Models API](https://openrouter.ai/docs/guides/overview/multimodal/tts#via-the-speech-models-api), look for `supported_parameters.instructions` in the `output_modalities` entry with `type: speech`.'
example: 'Speak in a warm and friendly tone.'
type: 'string'
model:
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:84dcf6baea33334dd13051ff7655fd2f137ab31c7ccc655572b9663de77906a8
sourceBlobDigest: sha256:3ae4d15f8e5299884e9a223dd05616d30c8430a6d3a956197523f434069cf02f
sourceRevisionDigest: sha256:81dde53ef43888d932ce5a8d8c1f2ddf91d0f7af7ff3b12be265a89f1904c9b5
sourceBlobDigest: sha256:3e80adc614afa2806ab0681a6d90d031ed137170f6cd05d7c7dc1c2822796ce3
tags:
- latest
- 1.0.0
targets:
openrouter:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:84dcf6baea33334dd13051ff7655fd2f137ab31c7ccc655572b9663de77906a8
sourceBlobDigest: sha256:3ae4d15f8e5299884e9a223dd05616d30c8430a6d3a956197523f434069cf02f
sourceRevisionDigest: sha256:81dde53ef43888d932ce5a8d8c1f2ddf91d0f7af7ff3b12be265a89f1904c9b5
sourceBlobDigest: sha256:3e80adc614afa2806ab0681a6d90d031ed137170f6cd05d7c7dc1c2822796ce3
codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
codeSamplesRevisionDigest: sha256:fe4bf962f41f788d840048c4d364d723675e163f8e5c5635a545832de938d5b3
codeSamplesRevisionDigest: sha256:979de4275f0bc27c7bf635a7231ac1d791668a2b743eb35132c492f6740e56ff
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 @@ -6126,4 +6126,14 @@ Based on:
### Generated
- [typescript v1.5.175] .
### Releases
- [NPM v1.5.175] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.175 - .
- [NPM v1.5.175] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.175 - .

## 2026-12-04 09:35:10
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.808.1 (2.960.8) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v1.5.176] .
### Releases
- [NPM v1.5.176] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.176 - .
2 changes: 1 addition & 1 deletion docs/models/speechrequest.mdx

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "@openrouter/sdk",
"version": "1.5.175",
"version": "1.5.176",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openrouter/sdk",
"version": "1.5.175",
"version": "1.5.176",
"author": "OpenRouter",
"description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 400+ language models through a unified API.",
"keywords": [
Expand Down Expand Up @@ -73,15 +73,15 @@
"lint": "eslint --cache --max-warnings=0 src",
"build": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
"prepublishOnly": "npm run build",
"postinstall": "node scripts/check-types.js || true",
"prepare": "npm run build",
"test": "vitest --run --project unit",
"compile": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
"test:e2e": "vitest --run --project e2e",
"test:transit": "exit 0",
"test:watch": "vitest --watch --project unit",
"typecheck": "tsc --noEmit",
"typecheck:transit": "exit 0",
"postinstall": "node scripts/check-types.js || true"
"compile": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
"test": "vitest --run --project unit",
"typecheck:transit": "exit 0"
},
"peerDependencies": {

Expand Down
4 changes: 2 additions & 2 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "1.0.0",
sdkVersion: "1.5.175",
sdkVersion: "1.5.176",
genVersion: "2.960.8",
userAgent: "speakeasy-sdk/typescript 1.5.175 2.960.8 1.0.0 @openrouter/sdk",
userAgent: "speakeasy-sdk/typescript 1.5.176 2.960.8 1.0.0 @openrouter/sdk",
} as const;
2 changes: 1 addition & 1 deletion src/models/speechrequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export type SpeechRequest = {
*/
inputReferences?: Array<SpeechInputReference> | undefined;
/**
* Delivery instructions for the whole request, such as tone, pacing, or emotion. Supported by OpenAI gpt-4o-mini-tts, Gemini TTS, and Fish Audio models. Ignored by other providers.
* Delivery instructions for the whole request, such as tone, pacing, or emotion. For the selected endpoint in the [Speech Models API](https://openrouter.ai/docs/guides/overview/multimodal/tts#via-the-speech-models-api), look for `supported_parameters.instructions` in the `output_modalities` entry with `type: speech`.
*/
instructions?: string | undefined;
/**
Expand Down