Skip to content
Draft
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
612 changes: 302 additions & 310 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ typescript:
typecheck: tsc --noEmit
typecheck:transit: exit 0
alwaysIncludeInboundAndOutbound: false
apiPromiseHelpers: false
author: OpenRouter
baseErrorName: OpenRouterError
clientServerStatusCodesAsErrors: true
Expand All @@ -92,6 +93,7 @@ typescript:
enableReactQuery: false
enumFormat: union
envVarPrefix: OPENROUTER
eventStreamClassName: EventStream
exportZodModelNamespace: false
fixEnumNameSanitization: false
flatAdditionalProperties: false
Expand Down Expand Up @@ -124,6 +126,8 @@ typescript:
packageName: '@openrouter/sdk'
preApplyUnionDiscriminators: true
preserveModelFieldNames: false
privateIdentifierPrefix: '#'
requestExtras: false
responseFormat: flat
sseFlatResponse: true
templateVersion: v2
Expand Down
6 changes: 3 additions & 3 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
speakeasyVersion: 1.763.2
speakeasyVersion: 1.787.0
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
Expand All @@ -14,10 +14,10 @@ targets:
sourceRevisionDigest: sha256:2a97bd1d886843c21e000a368335e0d5f642aaabe0b14b07271db995f5466b9c
sourceBlobDigest: sha256:ee5019f271268796557f1a25853a2440a0d7eaa9a91b28dd30b11f18ed9d2812
codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
codeSamplesRevisionDigest: sha256:65bdf328542cfb839b0aec4ceeabe244c454e086d7dbc91c92a133efedcc9183
codeSamplesRevisionDigest: sha256:dbc1167a812325240baa873e1006f3a3be267f89df8049d9c1f96fdd9b99c85c
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.763.2
speakeasyVersion: 1.787.0
sources:
OpenRouter API:
inputs:
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
workflowVersion: 1.0.0
speakeasyVersion: 1.763.2
speakeasyVersion: 1.787.0
sources:
OpenRouter API:
inputs:
Expand Down
4 changes: 2 additions & 2 deletions docs/models/advisornestedtool.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ let value: AdvisorNestedTool = {

| Field | Type | Required | Description | Example |
| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- |
| `parameters` | Record<string, *any*> | :heavy_minus_sign: | N/A | |
| `parameters` | Record\<string, *any*> | :heavy_minus_sign: | N/A | |
| `type` | *string* | :heavy_check_mark: | N/A | |
| `additionalProperties` | Record<string, *any*> | :heavy_minus_sign: | N/A | \{<br/>"type": "openrouter:web_search"<br/>} |
| `additionalProperties` | Record\<string, *any*> | :heavy_minus_sign: | N/A | \{<br/>"type": "openrouter:web_search"<br/>} |
2 changes: 1 addition & 1 deletion docs/models/badgatewayresponseerrordata.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ let value: BadGatewayResponseErrorData = {
| --------------------- | --------------------- | --------------------- | --------------------- |
| `code` | *number* | :heavy_check_mark: | N/A |
| `message` | *string* | :heavy_check_mark: | N/A |
| `metadata` | Record<string, *any*> | :heavy_minus_sign: | N/A |
| `metadata` | Record\<string, *any*> | :heavy_minus_sign: | N/A |
2 changes: 1 addition & 1 deletion docs/models/badrequestresponseerrordata.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ let value: BadRequestResponseErrorData = {
| --------------------- | --------------------- | --------------------- | --------------------- |
| `code` | *number* | :heavy_check_mark: | N/A |
| `message` | *string* | :heavy_check_mark: | N/A |
| `metadata` | Record<string, *any*> | :heavy_minus_sign: | N/A |
| `metadata` | Record\<string, *any*> | :heavy_minus_sign: | N/A |
4 changes: 2 additions & 2 deletions docs/models/byokkey.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ let value: BYOKKey = {
| Field | Type | Required | Description | Example |
| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| `allowedApiKeyHashes` | *string*[] | :heavy_check_mark: | Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) that may use this credential. `null` means no restriction. | [<br/>"f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943"<br/>] |
| `allowedModels` | *string*[] | :heavy_check_mark: | Optional allowlist of model slugs this credential may be used for. `null` means no restriction. | <nil> |
| `allowedUserIds` | *string*[] | :heavy_check_mark: | Optional allowlist of user IDs that may use this credential. `null` means no restriction. | <nil> |
| `allowedModels` | *string*[] | :heavy_check_mark: | Optional allowlist of model slugs this credential may be used for. `null` means no restriction. | null |
| `allowedUserIds` | *string*[] | :heavy_check_mark: | Optional allowlist of user IDs that may use this credential. `null` means no restriction. | null |
| `createdAt` | *string* | :heavy_check_mark: | ISO timestamp of when the credential was created. | 2025-08-24T10:30:00Z |
| `disabled` | *boolean* | :heavy_check_mark: | Whether this credential is currently disabled. | false |
| `id` | *string* | :heavy_check_mark: | Stable public identifier for this BYOK credential. | 11111111-2222-3333-4444-555555555555 |
Expand Down
2 changes: 1 addition & 1 deletion docs/models/chatfunctiontoolfunctionfunction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ let value: ChatFunctionToolFunctionFunction = {
| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| `description` | *string* | :heavy_minus_sign: | Function description for the model | Get the current weather for a location |
| `name` | *string* | :heavy_check_mark: | Function name (a-z, A-Z, 0-9, underscores, dashes, max 64 chars) | get_weather |
| `parameters` | Record<string, *any*> | :heavy_minus_sign: | Function parameters as JSON Schema object | \{<br/>"properties": \{<br/>"location": \{<br/>"description": "City name",<br/>"type": "string"<br/>}<br/>},<br/>"required": [<br/>"location"<br/>],<br/>"type": "object"<br/>} |
| `parameters` | Record\<string, *any*> | :heavy_minus_sign: | Function parameters as JSON Schema object | \{<br/>"properties": \{<br/>"location": \{<br/>"description": "City name",<br/>"type": "string"<br/>}<br/>},<br/>"required": [<br/>"location"<br/>],<br/>"type": "object"<br/>} |
| `strict` | *boolean* | :heavy_minus_sign: | Enable strict schema adherence | false |
2 changes: 1 addition & 1 deletion docs/models/chatjsonschemaconfig.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ let value: ChatJsonSchemaConfig = {
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
| `description` | *string* | :heavy_minus_sign: | Schema description for the model | A mathematical response |
| `name` | *string* | :heavy_check_mark: | Schema name (a-z, A-Z, 0-9, underscores, dashes, max 64 chars) | math_response |
| `schema` | Record<string, *any*> | :heavy_minus_sign: | JSON Schema object | \{<br/>"properties": \{<br/>"answer": \{<br/>"type": "number"<br/>}<br/>},<br/>"required": [<br/>"answer"<br/>],<br/>"type": "object"<br/>} |
| `schema` | Record\<string, *any*> | :heavy_minus_sign: | JSON Schema object | \{<br/>"properties": \{<br/>"answer": \{<br/>"type": "number"<br/>}<br/>},<br/>"required": [<br/>"answer"<br/>],<br/>"type": "object"<br/>} |
| `strict` | *boolean* | :heavy_minus_sign: | Enable strict schema adherence | false |
Loading
Loading