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 | |
|---|---|---|---|
|
|
2ad2a4508e |
+3
-3
@@ -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: ba9a1c22e9c7d5926d71b1e78e16b482
|
docChecksum: 964d64d091f299f9571920aef96087db
|
||||||
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.11
|
releaseVersion: 0.7.8
|
||||||
configChecksum: c2013e97e44ae07d6749ebe461b47299
|
configChecksum: ddd392d444b72c5940ea8ca74b79534d
|
||||||
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
@@ -31,7 +31,7 @@ generation:
|
|||||||
skipResponseBodyAssertions: false
|
skipResponseBodyAssertions: false
|
||||||
preApplyUnionDiscriminators: true
|
preApplyUnionDiscriminators: true
|
||||||
python:
|
python:
|
||||||
version: 0.7.11
|
version: 0.7.8
|
||||||
additionalDependencies:
|
additionalDependencies:
|
||||||
dev: {}
|
dev: {}
|
||||||
main: {}
|
main: {}
|
||||||
|
|||||||
@@ -3582,7 +3582,6 @@ components:
|
|||||||
- Inception
|
- Inception
|
||||||
- Inceptron
|
- Inceptron
|
||||||
- InferenceNet
|
- InferenceNet
|
||||||
- Ionstream
|
|
||||||
- Infermatic
|
- Infermatic
|
||||||
- Io Net
|
- Io Net
|
||||||
- Inflection
|
- Inflection
|
||||||
@@ -9868,10 +9867,6 @@ 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
|
||||||
@@ -11069,7 +11064,6 @@ paths:
|
|||||||
- Inception
|
- Inception
|
||||||
- Inceptron
|
- Inceptron
|
||||||
- InferenceNet
|
- InferenceNet
|
||||||
- Ionstream
|
|
||||||
- Infermatic
|
- Infermatic
|
||||||
- Io Net
|
- Io Net
|
||||||
- Inflection
|
- Inflection
|
||||||
@@ -14237,16 +14231,6 @@ 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:
|
||||||
|
|||||||
@@ -3601,7 +3601,6 @@ components:
|
|||||||
- Inception
|
- Inception
|
||||||
- Inceptron
|
- Inceptron
|
||||||
- InferenceNet
|
- InferenceNet
|
||||||
- Ionstream
|
|
||||||
- Infermatic
|
- Infermatic
|
||||||
- Io Net
|
- Io Net
|
||||||
- Inflection
|
- Inflection
|
||||||
@@ -9867,10 +9866,6 @@ 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
|
||||||
@@ -11090,7 +11085,6 @@ paths:
|
|||||||
- Inception
|
- Inception
|
||||||
- Inceptron
|
- Inceptron
|
||||||
- InferenceNet
|
- InferenceNet
|
||||||
- Ionstream
|
|
||||||
- Infermatic
|
- Infermatic
|
||||||
- Io Net
|
- Io Net
|
||||||
- Inflection
|
- Inflection
|
||||||
@@ -14295,16 +14289,6 @@ 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:
|
||||||
|
|||||||
@@ -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:8a64fb1c1030c87db14bca3af4883e06b9d5853c153a5fd0f2e4c15166e034dd
|
sourceRevisionDigest: sha256:a3034772624fc11a890e6f565c3b098739adb96956c73135e3657329c2849f94
|
||||||
sourceBlobDigest: sha256:7f6d7d20424f27ec13e6ae45a1599dab23f2573a69d634b1bb1c346f8a328ae9
|
sourceBlobDigest: sha256:ab42c91f594ab94318c39aeb198f94752b11c18690aaf5e664f133c911d0f16e
|
||||||
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:8a64fb1c1030c87db14bca3af4883e06b9d5853c153a5fd0f2e4c15166e034dd
|
sourceRevisionDigest: sha256:a3034772624fc11a890e6f565c3b098739adb96956c73135e3657329c2849f94
|
||||||
sourceBlobDigest: sha256:7f6d7d20424f27ec13e6ae45a1599dab23f2573a69d634b1bb1c346f8a328ae9
|
sourceBlobDigest: sha256:ab42c91f594ab94318c39aeb198f94752b11c18690aaf5e664f133c911d0f16e
|
||||||
codeSamplesNamespace: open-router-python-code-samples
|
codeSamplesNamespace: open-router-python-code-samples
|
||||||
codeSamplesRevisionDigest: sha256:349390cb3f04fb4fdd6292a33ff1ee0659846fe1e3f03bede5bf13f3e70c447f
|
codeSamplesRevisionDigest: sha256:c84394bb86c10b0ae9abc3a94035ba58aa1f3b52be5b84df50c15d2fe631e8f1
|
||||||
workflow:
|
workflow:
|
||||||
workflowVersion: 1.0.0
|
workflowVersion: 1.0.0
|
||||||
speakeasyVersion: 1.666.0
|
speakeasyVersion: 1.666.0
|
||||||
|
|||||||
@@ -39,7 +39,6 @@
|
|||||||
| `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 |
|
||||||
|
|||||||
@@ -67,7 +67,6 @@
|
|||||||
| `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
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "openrouter"
|
name = "openrouter"
|
||||||
version = "0.7.11"
|
version = "0.7.8"
|
||||||
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"
|
||||||
|
|||||||
@@ -3,10 +3,10 @@
|
|||||||
import importlib.metadata
|
import importlib.metadata
|
||||||
|
|
||||||
__title__: str = "openrouter"
|
__title__: str = "openrouter"
|
||||||
__version__: str = "0.7.11"
|
__version__: str = "0.7.8"
|
||||||
__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.11 2.768.0 1.0.0 openrouter"
|
__user_agent__: str = "speakeasy-sdk/python 0.7.8 2.768.0 1.0.0 openrouter"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if __package__ is not None:
|
if __package__ is not None:
|
||||||
|
|||||||
@@ -41,7 +41,6 @@ ProviderName = Union[
|
|||||||
"Inception",
|
"Inception",
|
||||||
"Inceptron",
|
"Inceptron",
|
||||||
"InferenceNet",
|
"InferenceNet",
|
||||||
"Ionstream",
|
|
||||||
"Infermatic",
|
"Infermatic",
|
||||||
"Io Net",
|
"Io Net",
|
||||||
"Inflection",
|
"Inflection",
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ class Security(BaseModel):
|
|||||||
FieldMetadata(
|
FieldMetadata(
|
||||||
security=SecurityMetadata(
|
security=SecurityMetadata(
|
||||||
scheme=True,
|
scheme=True,
|
||||||
scheme_type="http",
|
scheme_type="apiKey",
|
||||||
sub_type="bearer",
|
sub_type="header",
|
||||||
field_name="Authorization",
|
field_name="Authorization",
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -160,7 +160,6 @@ ProviderName = Union[
|
|||||||
"Inception",
|
"Inception",
|
||||||
"Inceptron",
|
"Inceptron",
|
||||||
"InferenceNet",
|
"InferenceNet",
|
||||||
"Ionstream",
|
|
||||||
"Infermatic",
|
"Infermatic",
|
||||||
"Io Net",
|
"Io Net",
|
||||||
"Inflection",
|
"Inflection",
|
||||||
|
|||||||
@@ -211,7 +211,7 @@ wheels = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "openrouter"
|
name = "openrouter"
|
||||||
version = "0.7.11"
|
version = "0.7.8"
|
||||||
source = { editable = "." }
|
source = { editable = "." }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "httpcore" },
|
{ name = "httpcore" },
|
||||||
|
|||||||
Reference in New Issue
Block a user