mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-08-01 12:40:23 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e72a84e82d | ||
|
|
c734c52d9c |
+3
-3
@@ -1,12 +1,12 @@
|
||||
lockVersion: 2.0.0
|
||||
id: cfd52247-6a25-4c6d-bbce-fe6fce0cd69d
|
||||
management:
|
||||
docChecksum: 689a77f858a227cc6e0b4d2c37da51db
|
||||
docChecksum: ba9a1c22e9c7d5926d71b1e78e16b482
|
||||
docVersion: 1.0.0
|
||||
speakeasyVersion: 1.666.0
|
||||
generationVersion: 2.768.0
|
||||
releaseVersion: 0.7.6
|
||||
configChecksum: 40ae054dd7cb961193ff5a1ab7e1d8d7
|
||||
releaseVersion: 0.7.11
|
||||
configChecksum: c2013e97e44ae07d6749ebe461b47299
|
||||
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
|
||||
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
|
||||
published: true
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ generation:
|
||||
skipResponseBodyAssertions: false
|
||||
preApplyUnionDiscriminators: true
|
||||
python:
|
||||
version: 0.7.6
|
||||
version: 0.7.11
|
||||
additionalDependencies:
|
||||
dev: {}
|
||||
main: {}
|
||||
|
||||
@@ -313,6 +313,11 @@ components:
|
||||
- $ref: '#/components/schemas/OutputItemReasoning'
|
||||
- type: object
|
||||
properties:
|
||||
content:
|
||||
type: array
|
||||
nullable: true
|
||||
items:
|
||||
$ref: '#/components/schemas/ReasoningTextContent'
|
||||
signature:
|
||||
type: string
|
||||
nullable: true
|
||||
@@ -3282,6 +3287,11 @@ components:
|
||||
- $ref: '#/components/schemas/OutputItemReasoning'
|
||||
- type: object
|
||||
properties:
|
||||
content:
|
||||
type: array
|
||||
nullable: true
|
||||
items:
|
||||
$ref: '#/components/schemas/ReasoningTextContent'
|
||||
signature:
|
||||
type: string
|
||||
nullable: true
|
||||
@@ -3572,6 +3582,7 @@ components:
|
||||
- Inception
|
||||
- Inceptron
|
||||
- InferenceNet
|
||||
- Ionstream
|
||||
- Infermatic
|
||||
- Io Net
|
||||
- Inflection
|
||||
@@ -9857,6 +9868,10 @@ components:
|
||||
p99: 15.1
|
||||
parameters: {}
|
||||
securitySchemes:
|
||||
apiKey:
|
||||
type: http
|
||||
scheme: bearer
|
||||
description: API key as bearer token in Authorization header
|
||||
bearer:
|
||||
type: http
|
||||
scheme: bearer
|
||||
@@ -11054,6 +11069,7 @@ paths:
|
||||
- Inception
|
||||
- Inceptron
|
||||
- InferenceNet
|
||||
- Ionstream
|
||||
- Infermatic
|
||||
- Io Net
|
||||
- Inflection
|
||||
@@ -14221,6 +14237,16 @@ paths:
|
||||
- monthly
|
||||
description: Optional credit limit reset interval. When set, the credit limit resets on this interval.
|
||||
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:
|
||||
- callback_url
|
||||
example:
|
||||
|
||||
@@ -314,6 +314,11 @@ components:
|
||||
- $ref: '#/components/schemas/OutputItemReasoning'
|
||||
- type: object
|
||||
properties:
|
||||
content:
|
||||
type: array
|
||||
nullable: true
|
||||
items:
|
||||
$ref: '#/components/schemas/ReasoningTextContent'
|
||||
signature:
|
||||
type: string
|
||||
nullable: true
|
||||
@@ -3298,6 +3303,11 @@ components:
|
||||
- $ref: '#/components/schemas/OutputItemReasoning'
|
||||
- type: object
|
||||
properties:
|
||||
content:
|
||||
type: array
|
||||
nullable: true
|
||||
items:
|
||||
$ref: '#/components/schemas/ReasoningTextContent'
|
||||
signature:
|
||||
type: string
|
||||
nullable: true
|
||||
@@ -3591,6 +3601,7 @@ components:
|
||||
- Inception
|
||||
- Inceptron
|
||||
- InferenceNet
|
||||
- Ionstream
|
||||
- Infermatic
|
||||
- Io Net
|
||||
- Inflection
|
||||
@@ -9856,6 +9867,10 @@ components:
|
||||
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"}}
|
||||
securitySchemes:
|
||||
apiKey:
|
||||
type: http
|
||||
scheme: bearer
|
||||
description: API key as bearer token in Authorization header
|
||||
bearer:
|
||||
type: http
|
||||
scheme: bearer
|
||||
@@ -11075,6 +11090,7 @@ paths:
|
||||
- Inception
|
||||
- Inceptron
|
||||
- InferenceNet
|
||||
- Ionstream
|
||||
- Infermatic
|
||||
- Io Net
|
||||
- Inflection
|
||||
@@ -14279,6 +14295,16 @@ paths:
|
||||
description: Optional credit limit reset interval. When set, the credit limit resets on this interval.
|
||||
example: monthly
|
||||
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:
|
||||
- callback_url
|
||||
example:
|
||||
|
||||
@@ -8,8 +8,8 @@ sources:
|
||||
- latest
|
||||
OpenRouter API:
|
||||
sourceNamespace: open-router-chat-completions-api
|
||||
sourceRevisionDigest: sha256:736a0bb7db1ac8af43a17b38a66deef11b3354eb44f1dc1ffc9e997fc3c26542
|
||||
sourceBlobDigest: sha256:e0136c6854d55043ebd9e6af584c90b17d9f9c878bb01cb84723db77cf29aa30
|
||||
sourceRevisionDigest: sha256:8a64fb1c1030c87db14bca3af4883e06b9d5853c153a5fd0f2e4c15166e034dd
|
||||
sourceBlobDigest: sha256:7f6d7d20424f27ec13e6ae45a1599dab23f2573a69d634b1bb1c346f8a328ae9
|
||||
tags:
|
||||
- latest
|
||||
- main
|
||||
@@ -18,10 +18,10 @@ targets:
|
||||
open-router:
|
||||
source: OpenRouter API
|
||||
sourceNamespace: open-router-chat-completions-api
|
||||
sourceRevisionDigest: sha256:736a0bb7db1ac8af43a17b38a66deef11b3354eb44f1dc1ffc9e997fc3c26542
|
||||
sourceBlobDigest: sha256:e0136c6854d55043ebd9e6af584c90b17d9f9c878bb01cb84723db77cf29aa30
|
||||
sourceRevisionDigest: sha256:8a64fb1c1030c87db14bca3af4883e06b9d5853c153a5fd0f2e4c15166e034dd
|
||||
sourceBlobDigest: sha256:7f6d7d20424f27ec13e6ae45a1599dab23f2573a69d634b1bb1c346f8a328ae9
|
||||
codeSamplesNamespace: open-router-python-code-samples
|
||||
codeSamplesRevisionDigest: sha256:ace4f06923d40cf967c75d69bd18a86996f29cb69642216d2beb19de6addea3b
|
||||
codeSamplesRevisionDigest: sha256:349390cb3f04fb4fdd6292a33ff1ee0659846fe1e3f03bede5bf13f3e70c447f
|
||||
workflow:
|
||||
workflowVersion: 1.0.0
|
||||
speakeasyVersion: 1.666.0
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
| `INCEPTION` | Inception |
|
||||
| `INCEPTRON` | Inceptron |
|
||||
| `INFERENCE_NET` | InferenceNet |
|
||||
| `IONSTREAM` | Ionstream |
|
||||
| `INFERMATIC` | Infermatic |
|
||||
| `IO_NET` | Io Net |
|
||||
| `INFLECTION` | Inflection |
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
| `INCEPTION` | Inception |
|
||||
| `INCEPTRON` | Inceptron |
|
||||
| `INFERENCE_NET` | InferenceNet |
|
||||
| `IONSTREAM` | Ionstream |
|
||||
| `INFERMATIC` | Infermatic |
|
||||
| `IO_NET` | Io Net |
|
||||
| `INFLECTION` | Inflection |
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "openrouter"
|
||||
version = "0.7.6"
|
||||
version = "0.7.11"
|
||||
description = "Official Python Client SDK for OpenRouter."
|
||||
authors = [{ name = "OpenRouter" },]
|
||||
readme = "README-PYPI.md"
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
import importlib.metadata
|
||||
|
||||
__title__: str = "openrouter"
|
||||
__version__: str = "0.7.6"
|
||||
__version__: str = "0.7.11"
|
||||
__openapi_doc_version__: str = "1.0.0"
|
||||
__gen_version__: str = "2.768.0"
|
||||
__user_agent__: str = "speakeasy-sdk/python 0.7.6 2.768.0 1.0.0 openrouter"
|
||||
__user_agent__: str = "speakeasy-sdk/python 0.7.11 2.768.0 1.0.0 openrouter"
|
||||
|
||||
try:
|
||||
if __package__ is not None:
|
||||
|
||||
@@ -70,7 +70,7 @@ class OpenResponsesReasoningTypedDict(TypedDict):
|
||||
type: OpenResponsesReasoningType
|
||||
id: str
|
||||
summary: List[ReasoningSummaryTextTypedDict]
|
||||
content: NotRequired[List[ReasoningTextContentTypedDict]]
|
||||
content: NotRequired[Nullable[List[ReasoningTextContentTypedDict]]]
|
||||
encrypted_content: NotRequired[Nullable[str]]
|
||||
status: NotRequired[OpenResponsesReasoningStatusUnionTypedDict]
|
||||
signature: NotRequired[Nullable[str]]
|
||||
@@ -86,7 +86,7 @@ class OpenResponsesReasoning(BaseModel):
|
||||
|
||||
summary: List[ReasoningSummaryText]
|
||||
|
||||
content: Optional[List[ReasoningTextContent]] = None
|
||||
content: OptionalNullable[List[ReasoningTextContent]] = UNSET
|
||||
|
||||
encrypted_content: OptionalNullable[str] = UNSET
|
||||
|
||||
@@ -111,7 +111,7 @@ class OpenResponsesReasoning(BaseModel):
|
||||
"signature",
|
||||
"format",
|
||||
]
|
||||
nullable_fields = ["encrypted_content", "signature", "format"]
|
||||
nullable_fields = ["content", "encrypted_content", "signature", "format"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
@@ -41,6 +41,7 @@ ProviderName = Union[
|
||||
"Inception",
|
||||
"Inceptron",
|
||||
"InferenceNet",
|
||||
"Ionstream",
|
||||
"Infermatic",
|
||||
"Io Net",
|
||||
"Inflection",
|
||||
|
||||
@@ -71,7 +71,7 @@ class ResponsesOutputItemReasoningTypedDict(TypedDict):
|
||||
type: ResponsesOutputItemReasoningType
|
||||
id: str
|
||||
summary: List[ReasoningSummaryTextTypedDict]
|
||||
content: NotRequired[List[ReasoningTextContentTypedDict]]
|
||||
content: NotRequired[Nullable[List[ReasoningTextContentTypedDict]]]
|
||||
encrypted_content: NotRequired[Nullable[str]]
|
||||
status: NotRequired[ResponsesOutputItemReasoningStatusUnionTypedDict]
|
||||
signature: NotRequired[Nullable[str]]
|
||||
@@ -89,7 +89,7 @@ class ResponsesOutputItemReasoning(BaseModel):
|
||||
|
||||
summary: List[ReasoningSummaryText]
|
||||
|
||||
content: Optional[List[ReasoningTextContent]] = None
|
||||
content: OptionalNullable[List[ReasoningTextContent]] = UNSET
|
||||
|
||||
encrypted_content: OptionalNullable[str] = UNSET
|
||||
|
||||
@@ -116,7 +116,7 @@ class ResponsesOutputItemReasoning(BaseModel):
|
||||
"signature",
|
||||
"format",
|
||||
]
|
||||
nullable_fields = ["encrypted_content", "signature", "format"]
|
||||
nullable_fields = ["content", "encrypted_content", "signature", "format"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
@@ -17,8 +17,8 @@ class Security(BaseModel):
|
||||
FieldMetadata(
|
||||
security=SecurityMetadata(
|
||||
scheme=True,
|
||||
scheme_type="apiKey",
|
||||
sub_type="header",
|
||||
scheme_type="http",
|
||||
sub_type="bearer",
|
||||
field_name="Authorization",
|
||||
)
|
||||
),
|
||||
|
||||
@@ -160,6 +160,7 @@ ProviderName = Union[
|
||||
"Inception",
|
||||
"Inceptron",
|
||||
"InferenceNet",
|
||||
"Ionstream",
|
||||
"Infermatic",
|
||||
"Io Net",
|
||||
"Inflection",
|
||||
|
||||
Reference in New Issue
Block a user