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: 5 additions & 7 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: ""
id: ""
management:
docChecksum: 5221786825510ab2ed2fb6753a3f7938
docChecksum: 93dc429cea259bac51d2deba56b57427
docVersion: 1.0.0
speakeasyVersion: 1.808.1
generationVersion: 2.960.8
releaseVersion: 1.5.177
configChecksum: 77a2df0fea0b66aa9241821d55f3b0cf
releaseVersion: 1.5.178
configChecksum: 3832af9ac11724251b9ec645a5d768de
repoURL: https://github.com/OpenRouterTeam/typescript-sdk.git
installationURL: https://github.com/OpenRouterTeam/typescript-sdk
published: true
Expand Down Expand Up @@ -19773,7 +19773,7 @@ examples:
createAudioSpeech:
speakeasy-default-create-audio-speech:
requestBody:
application/json: {"input": "Hello world", "model": "mistralai/voxtral-mini-tts-2603", "response_format": "pcm"}
application/json: {"input": "Hello world", "model": "mistralai/voxtral-mini-tts-2603"}
responses:
"200":
audio/*: "<binary audio data>"
Expand Down Expand Up @@ -24219,6 +24219,4 @@ examples:
"500":
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
examplesVersion: 1.0.2
releaseNotes: |
## Typescript SDK Changes:
* `openrouter.images.listModelEndpoints()`: `response.endpoints[].inputImageRole` **Added**
releaseNotes: "## Typescript SDK Changes:\n* `openrouter.tts.createSpeech()`: \n * `request.speechRequest.responseFormat` **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.177
version: 1.5.178
acceptHeaderEnum: false
additionalDependencies:
dependencies:
Expand Down
1 change: 0 additions & 1 deletion .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37139,7 +37139,6 @@ components:
- 'null'
type: 'object'
response_format:
default: 'pcm'
description: 'Audio output format. Defaults to `pcm`, or to `mp3` when `timestamp_granularities` is nonempty.'
enum:
- 'mp3'
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:3bdeec0066fa727df2f03c145586e02660fb6a88ff4e44d22e7e71b7e5e49fc7
sourceBlobDigest: sha256:60f2509c58618167397bc0aee540545494d7a7b6402bbf56e72192befedc5d86
sourceRevisionDigest: sha256:b7a1d4a19b2b9ef84a7b299486f1c011d67d74bee59ec7547c8c81b98629aff4
sourceBlobDigest: sha256:a74a543b711cbfb66a3c769a31b57bbb23b3332baf16e43fe250a42073fd59a1
tags:
- latest
- 1.0.0
targets:
openrouter:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:3bdeec0066fa727df2f03c145586e02660fb6a88ff4e44d22e7e71b7e5e49fc7
sourceBlobDigest: sha256:60f2509c58618167397bc0aee540545494d7a7b6402bbf56e72192befedc5d86
sourceRevisionDigest: sha256:b7a1d4a19b2b9ef84a7b299486f1c011d67d74bee59ec7547c8c81b98629aff4
sourceBlobDigest: sha256:a74a543b711cbfb66a3c769a31b57bbb23b3332baf16e43fe250a42073fd59a1
codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
codeSamplesRevisionDigest: sha256:07777671b704fadc2799d9ba1c94c492a9df115cae2b9b4149e1e7a6089dac02
codeSamplesRevisionDigest: sha256:776e617aeb06d731f4e6a55a4df3ab44da6735b275ef238fadb98c3abb1669f8
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 @@ -6146,4 +6146,14 @@ Based on:
### Generated
- [typescript v1.5.177] .
### Releases
- [NPM v1.5.177] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.177 - .
- [NPM v1.5.177] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.177 - .

## 2026-12-04 17:22:37
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.808.1 (2.960.8) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v1.5.178] .
### Releases
- [NPM v1.5.178] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.178 - .
2 changes: 2 additions & 0 deletions docs/sdks/tts/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ async function run() {
speechRequest: {
input: "Hello world",
model: "mistralai/voxtral-mini-tts-2603",
responseFormat: "pcm",
speed: 1,
voice: "en_paul_neutral",
},
Expand Down Expand Up @@ -67,6 +68,7 @@ async function run() {
speechRequest: {
input: "Hello world",
model: "mistralai/voxtral-mini-tts-2603",
responseFormat: "pcm",
speed: 1,
voice: "en_paul_neutral",
},
Expand Down
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.177",
"version": "1.5.178",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openrouter/sdk",
"version": "1.5.177",
"version": "1.5.178",
"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",
"test": "vitest --run --project unit",
"test:e2e": "vitest --run --project e2e",
"compile": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
"test:transit": "exit 0",
"test:watch": "vitest --watch --project unit",
"typecheck": "tsc --noEmit",
"typecheck:transit": "exit 0",
"compile": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
"postinstall": "node scripts/check-types.js || true",
"prepare": "npm run build",
"test:transit": "exit 0",
"postinstall": "node scripts/check-types.js || true"
"test": "vitest --run --project unit",
"test:e2e": "vitest --run --project e2e"
},
"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.177",
sdkVersion: "1.5.178",
genVersion: "2.960.8",
userAgent: "speakeasy-sdk/typescript 1.5.177 2.960.8 1.0.0 @openrouter/sdk",
userAgent: "speakeasy-sdk/typescript 1.5.178 2.960.8 1.0.0 @openrouter/sdk",
} as const;
4 changes: 2 additions & 2 deletions src/models/speechrequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export type SpeechRequest$Outbound = {
model: string;
output_delivery?: string | undefined;
provider?: SpeechRequestProvider$Outbound | undefined;
response_format: string;
response_format?: string | undefined;
session_id?: string | undefined;
speed?: number | undefined;
timestamp_granularities?: Array<string> | undefined;
Expand All @@ -336,7 +336,7 @@ export const SpeechRequest$outboundSchema: z.ZodType<
model: z.string(),
outputDelivery: OutputDelivery$outboundSchema.optional(),
provider: z.lazy(() => SpeechRequestProvider$outboundSchema).optional(),
responseFormat: SpeechRequestResponseFormat$outboundSchema.default("pcm"),
responseFormat: SpeechRequestResponseFormat$outboundSchema.optional(),
sessionId: z.string().optional(),
speed: z.number().optional(),
timestampGranularities: z.array(TimestampGranularity$outboundSchema)
Expand Down