Compare commits

..
2 Commits
Author SHA1 Message Date
robert-j-yandGitHub e72a84e82d chore: sync from monorepo (#61) 2026-02-23 17:02:29 -06:00
OpenRouter Team c734c52d9c Commits included in this export:
- 56d382078cfce7fa597d1da2bce531af2d060b47
  - 9ef6db7e04c9401536763a321b05d00311cef31a
  - bf855082e30820d466f0f86a6d6e87de2ecfb06f
  - 335b1cbe361214e48b945b987b4e164457aa817b
  - 648485fdc7f9d8ae86fd857eccedcc5e41fb2e69
  - 80c49474a15a2bd549a5f26efad3858aa45b7c7b
  - 70e8ac317f9c4472db3decd024d1819650df4182
  - 9f2a6659ab6dbf111a0c29e4366328c3d2048826
  - a3a28b1fc6ec7d2941232a4ebde8c5f470497876
  - 4b5dc9193480b7c5c9ddb882ccf3ee2128ca0d51
  - bb413e979a46ef67c2f266743f7ebd798af42afb
  - b60e92d5dcec83f31986164f51c010d1728b2b17
  - 45687f423707f5838461585c568a024a19eb2f06
  - 3103d3ca68b6e42ccdb6136588ec2b6edc8dcab0
  - fd9f991606027cd86116317c71f8eb7b4e2aa3eb
  - 0f312019161edd76c1e5923d142c788d22f096d5
  - 5dbab2094bc744db4a90b3097520d897e5d0d634
  - 4c47d1af1735db18a1c1a7f463e801c7f71ad4e5

GitOrigin-RevId: 56d382078cfce7fa597d1da2bce531af2d060b47
2026-02-23 21:34:42 +00:00
15 changed files with 77 additions and 21 deletions
+3 -3
View File
@@ -1,12 +1,12 @@
lockVersion: 2.0.0 lockVersion: 2.0.0
id: cfd52247-6a25-4c6d-bbce-fe6fce0cd69d id: cfd52247-6a25-4c6d-bbce-fe6fce0cd69d
management: management:
docChecksum: 689a77f858a227cc6e0b4d2c37da51db docChecksum: ba9a1c22e9c7d5926d71b1e78e16b482
docVersion: 1.0.0 docVersion: 1.0.0
speakeasyVersion: 1.666.0 speakeasyVersion: 1.666.0
generationVersion: 2.768.0 generationVersion: 2.768.0
releaseVersion: 0.7.5 releaseVersion: 0.7.11
configChecksum: e8623db174daafd79be20c98b32ed4aa configChecksum: c2013e97e44ae07d6749ebe461b47299
repoURL: https://github.com/OpenRouterTeam/python-sdk.git repoURL: https://github.com/OpenRouterTeam/python-sdk.git
installationURL: https://github.com/OpenRouterTeam/python-sdk.git installationURL: https://github.com/OpenRouterTeam/python-sdk.git
published: true published: true
+1 -1
View File
@@ -31,7 +31,7 @@ generation:
skipResponseBodyAssertions: false skipResponseBodyAssertions: false
preApplyUnionDiscriminators: true preApplyUnionDiscriminators: true
python: python:
version: 0.7.5 version: 0.7.11
additionalDependencies: additionalDependencies:
dev: {} dev: {}
main: {} main: {}
+26
View File
@@ -313,6 +313,11 @@ components:
- $ref: '#/components/schemas/OutputItemReasoning' - $ref: '#/components/schemas/OutputItemReasoning'
- type: object - type: object
properties: properties:
content:
type: array
nullable: true
items:
$ref: '#/components/schemas/ReasoningTextContent'
signature: signature:
type: string type: string
nullable: true nullable: true
@@ -3282,6 +3287,11 @@ components:
- $ref: '#/components/schemas/OutputItemReasoning' - $ref: '#/components/schemas/OutputItemReasoning'
- type: object - type: object
properties: properties:
content:
type: array
nullable: true
items:
$ref: '#/components/schemas/ReasoningTextContent'
signature: signature:
type: string type: string
nullable: true nullable: true
@@ -3572,6 +3582,7 @@ components:
- Inception - Inception
- Inceptron - Inceptron
- InferenceNet - InferenceNet
- Ionstream
- Infermatic - Infermatic
- Io Net - Io Net
- Inflection - Inflection
@@ -9857,6 +9868,10 @@ components:
p99: 15.1 p99: 15.1
parameters: {} parameters: {}
securitySchemes: securitySchemes:
apiKey:
type: http
scheme: bearer
description: API key as bearer token in Authorization header
bearer: bearer:
type: http type: http
scheme: bearer scheme: bearer
@@ -11054,6 +11069,7 @@ paths:
- Inception - Inception
- Inceptron - Inceptron
- InferenceNet - InferenceNet
- Ionstream
- Infermatic - Infermatic
- Io Net - Io Net
- Inflection - Inflection
@@ -14221,6 +14237,16 @@ paths:
- monthly - monthly
description: Optional credit limit reset interval. When set, the credit limit resets on this interval. description: Optional credit limit reset interval. When set, the credit limit resets on this interval.
example: monthly example: monthly
spawn_agent:
type: string
description: Agent identifier for spawn telemetry
x-speakeasy-ignore: true
x-fern-ignore: true
spawn_cloud:
type: string
description: Cloud identifier for spawn telemetry
x-speakeasy-ignore: true
x-fern-ignore: true
required: required:
- callback_url - callback_url
example: example:
+26
View File
@@ -314,6 +314,11 @@ components:
- $ref: '#/components/schemas/OutputItemReasoning' - $ref: '#/components/schemas/OutputItemReasoning'
- type: object - type: object
properties: properties:
content:
type: array
nullable: true
items:
$ref: '#/components/schemas/ReasoningTextContent'
signature: signature:
type: string type: string
nullable: true nullable: true
@@ -3298,6 +3303,11 @@ components:
- $ref: '#/components/schemas/OutputItemReasoning' - $ref: '#/components/schemas/OutputItemReasoning'
- type: object - type: object
properties: properties:
content:
type: array
nullable: true
items:
$ref: '#/components/schemas/ReasoningTextContent'
signature: signature:
type: string type: string
nullable: true nullable: true
@@ -3591,6 +3601,7 @@ components:
- Inception - Inception
- Inceptron - Inceptron
- InferenceNet - InferenceNet
- Ionstream
- Infermatic - Infermatic
- Io Net - Io Net
- Inflection - Inflection
@@ -9856,6 +9867,10 @@ components:
p99: 15.1 p99: 15.1
parameters: {AppIdentifier: {name: HTTP-Referer, in: header, schema: {type: string}, description: "The app identifier should be your app's URL and is used as the primary identifier for rankings.\nThis is used to track API usage per application.\n"}, AppDisplayName: {name: X-Title, in: header, schema: {type: string}, description: "The app display name allows you to customize how your app appears in OpenRouter's dashboard.\n"}} parameters: {AppIdentifier: {name: HTTP-Referer, in: header, schema: {type: string}, description: "The app identifier should be your app's URL and is used as the primary identifier for rankings.\nThis is used to track API usage per application.\n"}, AppDisplayName: {name: X-Title, in: header, schema: {type: string}, description: "The app display name allows you to customize how your app appears in OpenRouter's dashboard.\n"}}
securitySchemes: securitySchemes:
apiKey:
type: http
scheme: bearer
description: API key as bearer token in Authorization header
bearer: bearer:
type: http type: http
scheme: bearer scheme: bearer
@@ -11075,6 +11090,7 @@ paths:
- Inception - Inception
- Inceptron - Inceptron
- InferenceNet - InferenceNet
- Ionstream
- Infermatic - Infermatic
- Io Net - Io Net
- Inflection - Inflection
@@ -14279,6 +14295,16 @@ paths:
description: Optional credit limit reset interval. When set, the credit limit resets on this interval. description: Optional credit limit reset interval. When set, the credit limit resets on this interval.
example: monthly example: monthly
x-speakeasy-unknown-values: allow x-speakeasy-unknown-values: allow
spawn_agent:
type: string
description: Agent identifier for spawn telemetry
x-speakeasy-ignore: true
x-fern-ignore: true
spawn_cloud:
type: string
description: Cloud identifier for spawn telemetry
x-speakeasy-ignore: true
x-fern-ignore: true
required: required:
- callback_url - callback_url
example: example:
+5 -5
View File
@@ -8,8 +8,8 @@ sources:
- latest - latest
OpenRouter API: OpenRouter API:
sourceNamespace: open-router-chat-completions-api sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:736a0bb7db1ac8af43a17b38a66deef11b3354eb44f1dc1ffc9e997fc3c26542 sourceRevisionDigest: sha256:8a64fb1c1030c87db14bca3af4883e06b9d5853c153a5fd0f2e4c15166e034dd
sourceBlobDigest: sha256:e0136c6854d55043ebd9e6af584c90b17d9f9c878bb01cb84723db77cf29aa30 sourceBlobDigest: sha256:7f6d7d20424f27ec13e6ae45a1599dab23f2573a69d634b1bb1c346f8a328ae9
tags: tags:
- latest - latest
- main - main
@@ -18,10 +18,10 @@ targets:
open-router: open-router:
source: OpenRouter API source: OpenRouter API
sourceNamespace: open-router-chat-completions-api sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:736a0bb7db1ac8af43a17b38a66deef11b3354eb44f1dc1ffc9e997fc3c26542 sourceRevisionDigest: sha256:8a64fb1c1030c87db14bca3af4883e06b9d5853c153a5fd0f2e4c15166e034dd
sourceBlobDigest: sha256:e0136c6854d55043ebd9e6af584c90b17d9f9c878bb01cb84723db77cf29aa30 sourceBlobDigest: sha256:7f6d7d20424f27ec13e6ae45a1599dab23f2573a69d634b1bb1c346f8a328ae9
codeSamplesNamespace: open-router-python-code-samples codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:7dd3666cd4deb63cf7ac6861619eb493f97c3a62b5a1575ccd13f97167762425 codeSamplesRevisionDigest: sha256:349390cb3f04fb4fdd6292a33ff1ee0659846fe1e3f03bede5bf13f3e70c447f
workflow: workflow:
workflowVersion: 1.0.0 workflowVersion: 1.0.0
speakeasyVersion: 1.666.0 speakeasyVersion: 1.666.0
+1
View File
@@ -39,6 +39,7 @@
| `INCEPTION` | Inception | | `INCEPTION` | Inception |
| `INCEPTRON` | Inceptron | | `INCEPTRON` | Inceptron |
| `INFERENCE_NET` | InferenceNet | | `INFERENCE_NET` | InferenceNet |
| `IONSTREAM` | Ionstream |
| `INFERMATIC` | Infermatic | | `INFERMATIC` | Infermatic |
| `IO_NET` | Io Net | | `IO_NET` | Io Net |
| `INFLECTION` | Inflection | | `INFLECTION` | Inflection |
+1
View File
@@ -67,6 +67,7 @@
| `INCEPTION` | Inception | | `INCEPTION` | Inception |
| `INCEPTRON` | Inceptron | | `INCEPTRON` | Inceptron |
| `INFERENCE_NET` | InferenceNet | | `INFERENCE_NET` | InferenceNet |
| `IONSTREAM` | Ionstream |
| `INFERMATIC` | Infermatic | | `INFERMATIC` | Infermatic |
| `IO_NET` | Io Net | | `IO_NET` | Io Net |
| `INFLECTION` | Inflection | | `INFLECTION` | Inflection |
+1 -1
View File
@@ -1,6 +1,6 @@
[project] [project]
name = "openrouter" name = "openrouter"
version = "0.7.5" version = "0.7.11"
description = "Official Python Client SDK for OpenRouter." description = "Official Python Client SDK for OpenRouter."
authors = [{ name = "OpenRouter" },] authors = [{ name = "OpenRouter" },]
readme = "README-PYPI.md" readme = "README-PYPI.md"
+2 -2
View File
@@ -3,10 +3,10 @@
import importlib.metadata import importlib.metadata
__title__: str = "openrouter" __title__: str = "openrouter"
__version__: str = "0.7.5" __version__: str = "0.7.11"
__openapi_doc_version__: str = "1.0.0" __openapi_doc_version__: str = "1.0.0"
__gen_version__: str = "2.768.0" __gen_version__: str = "2.768.0"
__user_agent__: str = "speakeasy-sdk/python 0.7.5 2.768.0 1.0.0 openrouter" __user_agent__: str = "speakeasy-sdk/python 0.7.11 2.768.0 1.0.0 openrouter"
try: try:
if __package__ is not None: if __package__ is not None:
@@ -70,7 +70,7 @@ class OpenResponsesReasoningTypedDict(TypedDict):
type: OpenResponsesReasoningType type: OpenResponsesReasoningType
id: str id: str
summary: List[ReasoningSummaryTextTypedDict] summary: List[ReasoningSummaryTextTypedDict]
content: NotRequired[List[ReasoningTextContentTypedDict]] content: NotRequired[Nullable[List[ReasoningTextContentTypedDict]]]
encrypted_content: NotRequired[Nullable[str]] encrypted_content: NotRequired[Nullable[str]]
status: NotRequired[OpenResponsesReasoningStatusUnionTypedDict] status: NotRequired[OpenResponsesReasoningStatusUnionTypedDict]
signature: NotRequired[Nullable[str]] signature: NotRequired[Nullable[str]]
@@ -86,7 +86,7 @@ class OpenResponsesReasoning(BaseModel):
summary: List[ReasoningSummaryText] summary: List[ReasoningSummaryText]
content: Optional[List[ReasoningTextContent]] = None content: OptionalNullable[List[ReasoningTextContent]] = UNSET
encrypted_content: OptionalNullable[str] = UNSET encrypted_content: OptionalNullable[str] = UNSET
@@ -111,7 +111,7 @@ class OpenResponsesReasoning(BaseModel):
"signature", "signature",
"format", "format",
] ]
nullable_fields = ["encrypted_content", "signature", "format"] nullable_fields = ["content", "encrypted_content", "signature", "format"]
null_default_fields = [] null_default_fields = []
serialized = handler(self) serialized = handler(self)
@@ -41,6 +41,7 @@ ProviderName = Union[
"Inception", "Inception",
"Inceptron", "Inceptron",
"InferenceNet", "InferenceNet",
"Ionstream",
"Infermatic", "Infermatic",
"Io Net", "Io Net",
"Inflection", "Inflection",
@@ -71,7 +71,7 @@ class ResponsesOutputItemReasoningTypedDict(TypedDict):
type: ResponsesOutputItemReasoningType type: ResponsesOutputItemReasoningType
id: str id: str
summary: List[ReasoningSummaryTextTypedDict] summary: List[ReasoningSummaryTextTypedDict]
content: NotRequired[List[ReasoningTextContentTypedDict]] content: NotRequired[Nullable[List[ReasoningTextContentTypedDict]]]
encrypted_content: NotRequired[Nullable[str]] encrypted_content: NotRequired[Nullable[str]]
status: NotRequired[ResponsesOutputItemReasoningStatusUnionTypedDict] status: NotRequired[ResponsesOutputItemReasoningStatusUnionTypedDict]
signature: NotRequired[Nullable[str]] signature: NotRequired[Nullable[str]]
@@ -89,7 +89,7 @@ class ResponsesOutputItemReasoning(BaseModel):
summary: List[ReasoningSummaryText] summary: List[ReasoningSummaryText]
content: Optional[List[ReasoningTextContent]] = None content: OptionalNullable[List[ReasoningTextContent]] = UNSET
encrypted_content: OptionalNullable[str] = UNSET encrypted_content: OptionalNullable[str] = UNSET
@@ -116,7 +116,7 @@ class ResponsesOutputItemReasoning(BaseModel):
"signature", "signature",
"format", "format",
] ]
nullable_fields = ["encrypted_content", "signature", "format"] nullable_fields = ["content", "encrypted_content", "signature", "format"]
null_default_fields = [] null_default_fields = []
serialized = handler(self) serialized = handler(self)
+2 -2
View File
@@ -17,8 +17,8 @@ class Security(BaseModel):
FieldMetadata( FieldMetadata(
security=SecurityMetadata( security=SecurityMetadata(
scheme=True, scheme=True,
scheme_type="apiKey", scheme_type="http",
sub_type="header", sub_type="bearer",
field_name="Authorization", field_name="Authorization",
) )
), ),
@@ -160,6 +160,7 @@ ProviderName = Union[
"Inception", "Inception",
"Inceptron", "Inceptron",
"InferenceNet", "InferenceNet",
"Ionstream",
"Infermatic", "Infermatic",
"Io Net", "Io Net",
"Inflection", "Inflection",
Generated
+1 -1
View File
@@ -211,7 +211,7 @@ wheels = [
[[package]] [[package]]
name = "openrouter" name = "openrouter"
version = "0.7.5" version = "0.7.11"
source = { editable = "." } source = { editable = "." }
dependencies = [ dependencies = [
{ name = "httpcore" }, { name = "httpcore" },