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 | |
|---|---|---|---|
|
|
ca36f2362c |
+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: 964d64d091f299f9571920aef96087db
|
docChecksum: 689a77f858a227cc6e0b4d2c37da51db
|
||||||
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.9
|
releaseVersion: 0.7.4
|
||||||
configChecksum: 5ccea59f057d7c14ca469fae260f6c47
|
configChecksum: 07fbaa86b50389002ac4cff07efa9029
|
||||||
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.9
|
version: 0.7.4
|
||||||
additionalDependencies:
|
additionalDependencies:
|
||||||
dev: {}
|
dev: {}
|
||||||
main: {}
|
main: {}
|
||||||
|
|||||||
@@ -313,11 +313,6 @@ 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
|
||||||
@@ -3287,11 +3282,6 @@ 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
|
||||||
|
|||||||
@@ -314,11 +314,6 @@ 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
|
||||||
@@ -3303,11 +3298,6 @@ 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
|
||||||
|
|||||||
@@ -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:a3034772624fc11a890e6f565c3b098739adb96956c73135e3657329c2849f94
|
sourceRevisionDigest: sha256:736a0bb7db1ac8af43a17b38a66deef11b3354eb44f1dc1ffc9e997fc3c26542
|
||||||
sourceBlobDigest: sha256:ab42c91f594ab94318c39aeb198f94752b11c18690aaf5e664f133c911d0f16e
|
sourceBlobDigest: sha256:e0136c6854d55043ebd9e6af584c90b17d9f9c878bb01cb84723db77cf29aa30
|
||||||
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:a3034772624fc11a890e6f565c3b098739adb96956c73135e3657329c2849f94
|
sourceRevisionDigest: sha256:736a0bb7db1ac8af43a17b38a66deef11b3354eb44f1dc1ffc9e997fc3c26542
|
||||||
sourceBlobDigest: sha256:ab42c91f594ab94318c39aeb198f94752b11c18690aaf5e664f133c911d0f16e
|
sourceBlobDigest: sha256:e0136c6854d55043ebd9e6af584c90b17d9f9c878bb01cb84723db77cf29aa30
|
||||||
codeSamplesNamespace: open-router-python-code-samples
|
codeSamplesNamespace: open-router-python-code-samples
|
||||||
codeSamplesRevisionDigest: sha256:653bbd091c56bce37f09a8e2d61c4ee5addde427957a630217d7afc3c05946bb
|
codeSamplesRevisionDigest: sha256:121cac27782bdcad21b444fd829fab81d150fab2e1440be816b1eab920e375fa
|
||||||
workflow:
|
workflow:
|
||||||
workflowVersion: 1.0.0
|
workflowVersion: 1.0.0
|
||||||
speakeasyVersion: 1.666.0
|
speakeasyVersion: 1.666.0
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "openrouter"
|
name = "openrouter"
|
||||||
version = "0.7.9"
|
version = "0.7.4"
|
||||||
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.9"
|
__version__: str = "0.7.4"
|
||||||
__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.9 2.768.0 1.0.0 openrouter"
|
__user_agent__: str = "speakeasy-sdk/python 0.7.4 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[Nullable[List[ReasoningTextContentTypedDict]]]
|
content: NotRequired[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: OptionalNullable[List[ReasoningTextContent]] = UNSET
|
content: Optional[List[ReasoningTextContent]] = None
|
||||||
|
|
||||||
encrypted_content: OptionalNullable[str] = UNSET
|
encrypted_content: OptionalNullable[str] = UNSET
|
||||||
|
|
||||||
@@ -111,7 +111,7 @@ class OpenResponsesReasoning(BaseModel):
|
|||||||
"signature",
|
"signature",
|
||||||
"format",
|
"format",
|
||||||
]
|
]
|
||||||
nullable_fields = ["content", "encrypted_content", "signature", "format"]
|
nullable_fields = ["encrypted_content", "signature", "format"]
|
||||||
null_default_fields = []
|
null_default_fields = []
|
||||||
|
|
||||||
serialized = handler(self)
|
serialized = handler(self)
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ class ResponsesOutputItemReasoningTypedDict(TypedDict):
|
|||||||
type: ResponsesOutputItemReasoningType
|
type: ResponsesOutputItemReasoningType
|
||||||
id: str
|
id: str
|
||||||
summary: List[ReasoningSummaryTextTypedDict]
|
summary: List[ReasoningSummaryTextTypedDict]
|
||||||
content: NotRequired[Nullable[List[ReasoningTextContentTypedDict]]]
|
content: NotRequired[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: OptionalNullable[List[ReasoningTextContent]] = UNSET
|
content: Optional[List[ReasoningTextContent]] = None
|
||||||
|
|
||||||
encrypted_content: OptionalNullable[str] = UNSET
|
encrypted_content: OptionalNullable[str] = UNSET
|
||||||
|
|
||||||
@@ -116,7 +116,7 @@ class ResponsesOutputItemReasoning(BaseModel):
|
|||||||
"signature",
|
"signature",
|
||||||
"format",
|
"format",
|
||||||
]
|
]
|
||||||
nullable_fields = ["content", "encrypted_content", "signature", "format"]
|
nullable_fields = ["encrypted_content", "signature", "format"]
|
||||||
null_default_fields = []
|
null_default_fields = []
|
||||||
|
|
||||||
serialized = handler(self)
|
serialized = handler(self)
|
||||||
|
|||||||
@@ -211,7 +211,7 @@ wheels = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "openrouter"
|
name = "openrouter"
|
||||||
version = "0.7.9"
|
version = "0.7.4"
|
||||||
source = { editable = "." }
|
source = { editable = "." }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "httpcore" },
|
{ name = "httpcore" },
|
||||||
|
|||||||
Reference in New Issue
Block a user