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
136 changes: 75 additions & 61 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
python:
version: 1.2.8
version: 1.2.9
additionalDependencies:
dev: {}
main: {}
Expand Down
375 changes: 312 additions & 63 deletions .speakeasy/out.openapi.yaml

Large diffs are not rendered by default.

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.787.0
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:afa706f4e8224e896a845cf5ab0b73d8e7f98460c6cd9644071c183083268eda
sourceBlobDigest: sha256:52077f88403046264219927d45e06d3e45a47bcfcc5aceaeb5c494ec1144ae9a
sourceRevisionDigest: sha256:2fcbda5454aa05a488ea1f73dcda2afb05c66b64b11951bbde80083779ff3d34
sourceBlobDigest: sha256:4ba1433df1ac27ba9bb38a386be7ce40974196905546fc0469e37d47409fba65
tags:
- latest
- 1.0.0
targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:afa706f4e8224e896a845cf5ab0b73d8e7f98460c6cd9644071c183083268eda
sourceBlobDigest: sha256:52077f88403046264219927d45e06d3e45a47bcfcc5aceaeb5c494ec1144ae9a
sourceRevisionDigest: sha256:2fcbda5454aa05a488ea1f73dcda2afb05c66b64b11951bbde80083779ff3d34
sourceBlobDigest: sha256:4ba1433df1ac27ba9bb38a386be7ce40974196905546fc0469e37d47409fba65
codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:b2cd8196b0557606a3c03dd8dfed3be0e421e0c278c63058cb0f8b947b49f6f6
codeSamplesRevisionDigest: sha256:23877904ef6eab8294181987f8799443237e442a74316dbd55728cc3c11f7849
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.787.0
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2489,4 +2489,14 @@ Based on:
### Generated
- [python v1.2.8] .
### Releases
- [PyPI v1.2.8] https://pypi.org/project/openrouter/1.2.8 - .
- [PyPI v1.2.8] https://pypi.org/project/openrouter/1.2.8 - .

## 2026-09-21 01:07:37
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.2.9] .
### Releases
- [PyPI v1.2.9] https://pypi.org/project/openrouter/1.2.9 - .
2 changes: 1 addition & 1 deletion docs/components/internchatcompletionchunk.mdx

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/components/internchaterror.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ The OpenAI-compatible error object. `metadata` is present on refusals from the c
| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| `code` | *int* | :heavy_check_mark: | The HTTP status of the response. | |
| `message` | *str* | :heavy_check_mark: | N/A | |
| `metadata` | [Optional[components.InternChatErrorMetadata]](../components/internchaterrormetadata.mdx) | :heavy_minus_sign: | Machine-readable detail for the failure. | \{<br/>"reason": "interaction_not_pending"<br/>} |
| `metadata` | [Optional[components.InternChatErrorMetadata]](../components/internchaterrormetadata.mdx) | :heavy_minus_sign: | Machine-readable detail for the failure. | \{<br/>"reason": "interaction_not_pending",<br/>"retryable": false<br/>} |
7 changes: 4 additions & 3 deletions docs/components/internchaterrormetadata.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Machine-readable detail for the failure.

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
| `reason` | [components.InternChatErrorMetadataReason](../components/internchaterrormetadatareason.mdx) | :heavy_check_mark: | A stable reason a client can branch on. |
| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `reason` | [components.InternChatErrorMetadataReason](../components/internchaterrormetadatareason.mdx) | :heavy_check_mark: | A stable reason a client can branch on. |
| `retryable` | *bool* | :heavy_check_mark: | Whether the same request may be sent again unchanged. Always `true` for the transient refusals β€” `busy`, `intern_not_ready`, `intern_unreachable`, `rate_limited`, `stream_severed` and `timeout` β€” and always `false` for the ones a retry cannot fix. For `turn_failed` it varies by failure and is the intern's own classification of what went wrong: `true` for an upstream overload, rate limit, timeout or transport fault, `false` for an authentication or bad-request failure that would be rejected the same way again. Branch on this field rather than on `reason` when deciding whether to retry. A `429`, and a `409` or `503` with reason `busy`, also carry a `Retry-After` header saying how long to wait. |
2 changes: 1 addition & 1 deletion docs/components/internchatstreamerror.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ A failure after the response headers were sent. The chunk that carries it has `f
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
| `code` | *int* | :heavy_check_mark: | The HTTP status this failure would have had before the stream opened. | |
| `message` | *str* | :heavy_check_mark: | N/A | |
| `metadata` | [components.InternChatErrorMetadata](../components/internchaterrormetadata.mdx) | :heavy_check_mark: | Machine-readable detail for the failure. | \{<br/>"reason": "interaction_not_pending"<br/>} |
| `metadata` | [components.InternChatErrorMetadata](../components/internchaterrormetadata.mdx) | :heavy_check_mark: | Machine-readable detail for the failure. | \{<br/>"reason": "interaction_not_pending",<br/>"retryable": false<br/>} |
Loading
Loading