mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-08-01 12:40:23 +08:00
Commits included in this export:
- 5dbab2094bc744db4a90b3097520d897e5d0d634 - 4c47d1af1735db18a1c1a7f463e801c7f71ad4e5 GitOrigin-RevId: 5dbab2094bc744db4a90b3097520d897e5d0d634
This commit is contained in:
+11
-7
@@ -1,12 +1,12 @@
|
||||
lockVersion: 2.0.0
|
||||
id: cfd52247-6a25-4c6d-bbce-fe6fce0cd69d
|
||||
management:
|
||||
docChecksum: 56062ba1997e25ff8be6529c550e5de9
|
||||
docChecksum: a8fed71df7458c6d948fc393e17aa9bc
|
||||
docVersion: 1.0.0
|
||||
speakeasyVersion: 1.666.0
|
||||
generationVersion: 2.768.0
|
||||
releaseVersion: 0.6.0
|
||||
configChecksum: 690b77f47b975e28d7e11a6b96fa1c2f
|
||||
releaseVersion: 0.7.0
|
||||
configChecksum: fb83a92d2ee84da7390a12353d622d23
|
||||
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
|
||||
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
|
||||
published: true
|
||||
@@ -14,6 +14,7 @@ features:
|
||||
python:
|
||||
acceptHeaders: 3.0.0
|
||||
additionalDependencies: 1.0.0
|
||||
additionalProperties: 1.0.1
|
||||
constsAndDefaults: 1.0.5
|
||||
core: 5.23.13
|
||||
defaultEnabledRetries: 0.2.0
|
||||
@@ -424,10 +425,11 @@ generatedFiles:
|
||||
- docs/components/schema17responsehealing.md
|
||||
- docs/components/schema17web.md
|
||||
- docs/components/schema19.md
|
||||
- docs/components/schema19reasoningencrypted.md
|
||||
- docs/components/schema19reasoningsummary.md
|
||||
- docs/components/schema19reasoningtext.md
|
||||
- docs/components/schema21.md
|
||||
- docs/components/schema20.md
|
||||
- docs/components/schema20reasoningencrypted.md
|
||||
- docs/components/schema20reasoningsummary.md
|
||||
- docs/components/schema20reasoningtext.md
|
||||
- docs/components/schema22.md
|
||||
- docs/components/schema3.md
|
||||
- docs/components/schema5.md
|
||||
- docs/components/schema5enum.md
|
||||
@@ -447,6 +449,7 @@ generatedFiles:
|
||||
- docs/components/toolresponsemessagecontent.md
|
||||
- docs/components/toomanyrequestsresponseerrordata.md
|
||||
- docs/components/topproviderinfo.md
|
||||
- docs/components/trace.md
|
||||
- docs/components/truncation.md
|
||||
- docs/components/ttl.md
|
||||
- docs/components/type.md
|
||||
@@ -695,6 +698,7 @@ generatedFiles:
|
||||
- src/openrouter/components/_schema14.py
|
||||
- src/openrouter/components/_schema17.py
|
||||
- src/openrouter/components/_schema19.py
|
||||
- src/openrouter/components/_schema20.py
|
||||
- src/openrouter/components/_schema5.py
|
||||
- src/openrouter/components/activityitem.py
|
||||
- src/openrouter/components/assistantmessage.py
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ generation:
|
||||
skipResponseBodyAssertions: false
|
||||
preApplyUnionDiscriminators: true
|
||||
python:
|
||||
version: 0.6.0
|
||||
version: 0.7.0
|
||||
additionalDependencies:
|
||||
dev: {}
|
||||
main: {}
|
||||
|
||||
+71
-13
@@ -4094,6 +4094,25 @@ components:
|
||||
A unique identifier for grouping related requests (e.g., a conversation or agent workflow) for
|
||||
observability. If provided in both the request body and the x-session-id header, the body value takes
|
||||
precedence. Maximum of 128 characters.
|
||||
trace:
|
||||
type: object
|
||||
properties:
|
||||
trace_id:
|
||||
type: string
|
||||
trace_name:
|
||||
type: string
|
||||
span_name:
|
||||
type: string
|
||||
generation_name:
|
||||
type: string
|
||||
parent_span_id:
|
||||
type: string
|
||||
additionalProperties:
|
||||
nullable: true
|
||||
description: >-
|
||||
Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name,
|
||||
parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured
|
||||
broadcast destinations.
|
||||
description: Request schema for Responses endpoint
|
||||
example:
|
||||
model: anthropic/claude-4.5-sonnet-20250929
|
||||
@@ -7191,6 +7210,25 @@ components:
|
||||
A unique identifier for grouping related requests (e.g., a conversation or agent workflow) for
|
||||
observability. If provided in both the request body and the x-session-id header, the body value takes
|
||||
precedence. Maximum of 128 characters.
|
||||
trace:
|
||||
type: object
|
||||
properties:
|
||||
trace_id:
|
||||
type: string
|
||||
trace_name:
|
||||
type: string
|
||||
span_name:
|
||||
type: string
|
||||
generation_name:
|
||||
type: string
|
||||
parent_span_id:
|
||||
type: string
|
||||
additionalProperties:
|
||||
nullable: true
|
||||
description: >-
|
||||
Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name,
|
||||
parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured
|
||||
broadcast destinations.
|
||||
models:
|
||||
type: array
|
||||
items:
|
||||
@@ -8532,6 +8570,20 @@ components:
|
||||
type: string
|
||||
maxLength: 128
|
||||
__schema19:
|
||||
type: object
|
||||
properties:
|
||||
trace_id:
|
||||
type: string
|
||||
trace_name:
|
||||
type: string
|
||||
span_name:
|
||||
type: string
|
||||
generation_name:
|
||||
type: string
|
||||
parent_span_id:
|
||||
type: string
|
||||
additionalProperties: {}
|
||||
__schema20:
|
||||
oneOf:
|
||||
- type: object
|
||||
properties:
|
||||
@@ -8541,9 +8593,9 @@ components:
|
||||
summary:
|
||||
type: string
|
||||
id:
|
||||
$ref: '#/components/schemas/__schema20'
|
||||
format:
|
||||
$ref: '#/components/schemas/__schema21'
|
||||
format:
|
||||
$ref: '#/components/schemas/__schema22'
|
||||
index:
|
||||
$ref: '#/components/schemas/__schema11'
|
||||
required:
|
||||
@@ -8557,9 +8609,9 @@ components:
|
||||
data:
|
||||
type: string
|
||||
id:
|
||||
$ref: '#/components/schemas/__schema20'
|
||||
format:
|
||||
$ref: '#/components/schemas/__schema21'
|
||||
format:
|
||||
$ref: '#/components/schemas/__schema22'
|
||||
index:
|
||||
$ref: '#/components/schemas/__schema11'
|
||||
required:
|
||||
@@ -8579,19 +8631,19 @@ components:
|
||||
- type: string
|
||||
- type: 'null'
|
||||
id:
|
||||
$ref: '#/components/schemas/__schema20'
|
||||
format:
|
||||
$ref: '#/components/schemas/__schema21'
|
||||
format:
|
||||
$ref: '#/components/schemas/__schema22'
|
||||
index:
|
||||
$ref: '#/components/schemas/__schema11'
|
||||
required:
|
||||
- type
|
||||
type: object
|
||||
__schema20:
|
||||
__schema21:
|
||||
anyOf:
|
||||
- type: string
|
||||
- type: 'null'
|
||||
__schema21:
|
||||
__schema22:
|
||||
anyOf:
|
||||
- type: string
|
||||
enum:
|
||||
@@ -8602,7 +8654,7 @@ components:
|
||||
- anthropic-claude-v1
|
||||
- google-gemini-v1
|
||||
- type: 'null'
|
||||
__schema25:
|
||||
__schema26:
|
||||
anyOf:
|
||||
- $ref: '#/components/schemas/ChatCompletionFinishReason'
|
||||
- type: 'null'
|
||||
@@ -8978,7 +9030,7 @@ components:
|
||||
reasoning_details:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/__schema19'
|
||||
$ref: '#/components/schemas/__schema20'
|
||||
images:
|
||||
type: array
|
||||
items:
|
||||
@@ -9111,6 +9163,12 @@ components:
|
||||
observability. If provided in both the request body and the x-session-id header, the body value takes
|
||||
precedence. Maximum of 128 characters.
|
||||
$ref: '#/components/schemas/__schema18'
|
||||
trace:
|
||||
description: >-
|
||||
Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name,
|
||||
parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured
|
||||
broadcast destinations.
|
||||
$ref: '#/components/schemas/__schema19'
|
||||
messages:
|
||||
minItems: 1
|
||||
type: array
|
||||
@@ -9286,7 +9344,7 @@ components:
|
||||
type: object
|
||||
properties:
|
||||
finish_reason:
|
||||
$ref: '#/components/schemas/__schema25'
|
||||
$ref: '#/components/schemas/__schema26'
|
||||
index:
|
||||
type: number
|
||||
message:
|
||||
@@ -9344,14 +9402,14 @@ components:
|
||||
reasoning_details:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/__schema19'
|
||||
$ref: '#/components/schemas/__schema20'
|
||||
ChatStreamingChoice:
|
||||
type: object
|
||||
properties:
|
||||
delta:
|
||||
$ref: '#/components/schemas/ChatStreamingMessageChunk'
|
||||
finish_reason:
|
||||
$ref: '#/components/schemas/__schema25'
|
||||
$ref: '#/components/schemas/__schema26'
|
||||
index:
|
||||
type: number
|
||||
logprobs:
|
||||
|
||||
+65
-13
@@ -4097,6 +4097,23 @@ components:
|
||||
maxLength: 128
|
||||
description: >-
|
||||
A unique identifier for grouping related requests (e.g., a conversation or agent workflow) for observability. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 128 characters.
|
||||
trace:
|
||||
type: object
|
||||
properties:
|
||||
trace_id:
|
||||
type: string
|
||||
trace_name:
|
||||
type: string
|
||||
span_name:
|
||||
type: string
|
||||
generation_name:
|
||||
type: string
|
||||
parent_span_id:
|
||||
type: string
|
||||
additionalProperties:
|
||||
nullable: true
|
||||
description: >-
|
||||
Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations.
|
||||
description: Request schema for Responses endpoint
|
||||
example:
|
||||
model: anthropic/claude-4.5-sonnet-20250929
|
||||
@@ -7209,6 +7226,23 @@ components:
|
||||
maxLength: 128
|
||||
description: >-
|
||||
A unique identifier for grouping related requests (e.g., a conversation or agent workflow) for observability. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 128 characters.
|
||||
trace:
|
||||
type: object
|
||||
properties:
|
||||
trace_id:
|
||||
type: string
|
||||
trace_name:
|
||||
type: string
|
||||
span_name:
|
||||
type: string
|
||||
generation_name:
|
||||
type: string
|
||||
parent_span_id:
|
||||
type: string
|
||||
additionalProperties:
|
||||
nullable: true
|
||||
description: >-
|
||||
Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations.
|
||||
models:
|
||||
type: array
|
||||
items:
|
||||
@@ -8536,6 +8570,20 @@ components:
|
||||
type: string
|
||||
maxLength: 128
|
||||
__schema19:
|
||||
type: object
|
||||
properties:
|
||||
trace_id:
|
||||
type: string
|
||||
trace_name:
|
||||
type: string
|
||||
span_name:
|
||||
type: string
|
||||
generation_name:
|
||||
type: string
|
||||
parent_span_id:
|
||||
type: string
|
||||
additionalProperties: {}
|
||||
__schema20:
|
||||
oneOf:
|
||||
- type: object
|
||||
properties:
|
||||
@@ -8545,9 +8593,9 @@ components:
|
||||
summary:
|
||||
type: string
|
||||
id:
|
||||
$ref: '#/components/schemas/__schema20'
|
||||
format:
|
||||
$ref: '#/components/schemas/__schema21'
|
||||
format:
|
||||
$ref: '#/components/schemas/__schema22'
|
||||
index:
|
||||
$ref: '#/components/schemas/__schema11'
|
||||
required:
|
||||
@@ -8561,9 +8609,9 @@ components:
|
||||
data:
|
||||
type: string
|
||||
id:
|
||||
$ref: '#/components/schemas/__schema20'
|
||||
format:
|
||||
$ref: '#/components/schemas/__schema21'
|
||||
format:
|
||||
$ref: '#/components/schemas/__schema22'
|
||||
index:
|
||||
$ref: '#/components/schemas/__schema11'
|
||||
required:
|
||||
@@ -8583,19 +8631,19 @@ components:
|
||||
- type: string
|
||||
- type: 'null'
|
||||
id:
|
||||
$ref: '#/components/schemas/__schema20'
|
||||
format:
|
||||
$ref: '#/components/schemas/__schema21'
|
||||
format:
|
||||
$ref: '#/components/schemas/__schema22'
|
||||
index:
|
||||
$ref: '#/components/schemas/__schema11'
|
||||
required:
|
||||
- type
|
||||
type: object
|
||||
__schema20:
|
||||
__schema21:
|
||||
anyOf:
|
||||
- type: string
|
||||
- type: 'null'
|
||||
__schema21:
|
||||
__schema22:
|
||||
anyOf:
|
||||
- type: string
|
||||
enum:
|
||||
@@ -8607,7 +8655,7 @@ components:
|
||||
- google-gemini-v1
|
||||
x-speakeasy-unknown-values: allow
|
||||
- type: 'null'
|
||||
__schema25:
|
||||
__schema26:
|
||||
anyOf:
|
||||
- $ref: '#/components/schemas/ChatCompletionFinishReason'
|
||||
- type: 'null'
|
||||
@@ -8986,7 +9034,7 @@ components:
|
||||
reasoning_details:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/__schema19'
|
||||
$ref: '#/components/schemas/__schema20'
|
||||
images:
|
||||
type: array
|
||||
items:
|
||||
@@ -9118,6 +9166,10 @@ components:
|
||||
description: >-
|
||||
A unique identifier for grouping related requests (e.g., a conversation or agent workflow) for observability. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 128 characters.
|
||||
$ref: '#/components/schemas/__schema18'
|
||||
trace:
|
||||
description: >-
|
||||
Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations.
|
||||
$ref: '#/components/schemas/__schema19'
|
||||
messages:
|
||||
minItems: 1
|
||||
type: array
|
||||
@@ -9295,7 +9347,7 @@ components:
|
||||
type: object
|
||||
properties:
|
||||
finish_reason:
|
||||
$ref: '#/components/schemas/__schema25'
|
||||
$ref: '#/components/schemas/__schema26'
|
||||
index:
|
||||
type: number
|
||||
message:
|
||||
@@ -9353,14 +9405,14 @@ components:
|
||||
reasoning_details:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/__schema19'
|
||||
$ref: '#/components/schemas/__schema20'
|
||||
ChatStreamingChoice:
|
||||
type: object
|
||||
properties:
|
||||
delta:
|
||||
$ref: '#/components/schemas/ChatStreamingMessageChunk'
|
||||
finish_reason:
|
||||
$ref: '#/components/schemas/__schema25'
|
||||
$ref: '#/components/schemas/__schema26'
|
||||
index:
|
||||
type: number
|
||||
logprobs:
|
||||
|
||||
@@ -8,8 +8,8 @@ sources:
|
||||
- latest
|
||||
OpenRouter API:
|
||||
sourceNamespace: open-router-chat-completions-api
|
||||
sourceRevisionDigest: sha256:2dbe784978f60cb53a0d081e1b5f4cbb42ca86b1ff8f4361869fa78c42e042ee
|
||||
sourceBlobDigest: sha256:851aadf3180735f9dbfdb2904011de231d3805d187499c24a450a224cacf1ed2
|
||||
sourceRevisionDigest: sha256:79b8d064e91a2614d9853eb640f9e7255a8b1e9614882641ab5c75ac071814d6
|
||||
sourceBlobDigest: sha256:b74fe6d34af037172e5b80f6d03b85df45eb5360577027682ea7d3fd308e8293
|
||||
tags:
|
||||
- latest
|
||||
- main
|
||||
@@ -18,10 +18,10 @@ targets:
|
||||
open-router:
|
||||
source: OpenRouter API
|
||||
sourceNamespace: open-router-chat-completions-api
|
||||
sourceRevisionDigest: sha256:2dbe784978f60cb53a0d081e1b5f4cbb42ca86b1ff8f4361869fa78c42e042ee
|
||||
sourceBlobDigest: sha256:851aadf3180735f9dbfdb2904011de231d3805d187499c24a450a224cacf1ed2
|
||||
sourceRevisionDigest: sha256:79b8d064e91a2614d9853eb640f9e7255a8b1e9614882641ab5c75ac071814d6
|
||||
sourceBlobDigest: sha256:b74fe6d34af037172e5b80f6d03b85df45eb5360577027682ea7d3fd308e8293
|
||||
codeSamplesNamespace: open-router-python-code-samples
|
||||
codeSamplesRevisionDigest: sha256:cf9f3fd9983864e3c5dd5bc3fa9198efc9493f4fbc671130e8f07e87722c43dd
|
||||
codeSamplesRevisionDigest: sha256:ff5b83e50996943aaf26b9089fd02488fc49b8c5f742dc432135c8eeb69c7042
|
||||
workflow:
|
||||
workflowVersion: 1.0.0
|
||||
speakeasyVersion: 1.666.0
|
||||
|
||||
Reference in New Issue
Block a user