mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-08-03 13:00:54 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
faa7751056 |
+3
-3
@@ -1,12 +1,12 @@
|
||||
lockVersion: 2.0.0
|
||||
id: cfd52247-6a25-4c6d-bbce-fe6fce0cd69d
|
||||
management:
|
||||
docChecksum: 4cc0fd0666832ffd4990d56ea4d60d8a
|
||||
docChecksum: 52c044061097671980a3ac37a4839b7f
|
||||
docVersion: 1.0.0
|
||||
speakeasyVersion: 1.666.0
|
||||
generationVersion: 2.768.0
|
||||
releaseVersion: 0.4.1
|
||||
configChecksum: 25abf1229cf681cc15488099121619e5
|
||||
releaseVersion: 0.5.0
|
||||
configChecksum: 4bcc2dd9900ba2408612f6fa04918561
|
||||
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.4.1
|
||||
version: 0.5.0
|
||||
additionalDependencies:
|
||||
dev: {}
|
||||
main: {}
|
||||
|
||||
@@ -4403,7 +4403,6 @@ components:
|
||||
- tool_use
|
||||
- pause_turn
|
||||
- refusal
|
||||
- model_context_window_exceeded
|
||||
stop_sequence:
|
||||
type: string
|
||||
nullable: true
|
||||
@@ -4859,7 +4858,6 @@ components:
|
||||
- tool_use
|
||||
- pause_turn
|
||||
- refusal
|
||||
- model_context_window_exceeded
|
||||
stop_sequence:
|
||||
type: string
|
||||
nullable: true
|
||||
@@ -6524,6 +6522,21 @@ components:
|
||||
- role
|
||||
- content
|
||||
description: Anthropic message with OpenRouter extensions
|
||||
AnthropicOutputConfig:
|
||||
type: object
|
||||
properties:
|
||||
effort:
|
||||
type: string
|
||||
nullable: true
|
||||
enum:
|
||||
- low
|
||||
- medium
|
||||
- high
|
||||
description: >-
|
||||
How much effort the model should put into its response. Higher effort levels may result in more thorough
|
||||
analysis but take longer. Valid values are `low`, `medium`, or `high`.
|
||||
example: medium
|
||||
description: Configuration for controlling output behavior. Currently supports the effort parameter for Claude Opus 4.5.
|
||||
AnthropicMessagesRequest:
|
||||
type: object
|
||||
properties:
|
||||
@@ -7164,6 +7177,8 @@ components:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
output_config:
|
||||
$ref: '#/components/schemas/AnthropicOutputConfig'
|
||||
required:
|
||||
- model
|
||||
- max_tokens
|
||||
|
||||
@@ -4407,7 +4407,6 @@ components:
|
||||
- tool_use
|
||||
- pause_turn
|
||||
- refusal
|
||||
- model_context_window_exceeded
|
||||
x-speakeasy-unknown-values: allow
|
||||
stop_sequence:
|
||||
type: string
|
||||
@@ -4867,7 +4866,6 @@ components:
|
||||
- tool_use
|
||||
- pause_turn
|
||||
- refusal
|
||||
- model_context_window_exceeded
|
||||
x-speakeasy-unknown-values: allow
|
||||
stop_sequence:
|
||||
type: string
|
||||
@@ -6552,6 +6550,21 @@ components:
|
||||
- role
|
||||
- content
|
||||
description: Anthropic message with OpenRouter extensions
|
||||
AnthropicOutputConfig:
|
||||
type: object
|
||||
properties:
|
||||
effort:
|
||||
type: string
|
||||
nullable: true
|
||||
enum:
|
||||
- low
|
||||
- medium
|
||||
- high
|
||||
description: >-
|
||||
How much effort the model should put into its response. Higher effort levels may result in more thorough analysis but take longer. Valid values are `low`, `medium`, or `high`.
|
||||
example: medium
|
||||
x-speakeasy-unknown-values: allow
|
||||
description: Configuration for controlling output behavior. Currently supports the effort parameter for Claude Opus 4.5.
|
||||
AnthropicMessagesRequest:
|
||||
type: object
|
||||
properties:
|
||||
@@ -7182,6 +7195,8 @@ components:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
output_config:
|
||||
$ref: '#/components/schemas/AnthropicOutputConfig'
|
||||
required:
|
||||
- model
|
||||
- max_tokens
|
||||
|
||||
@@ -8,8 +8,8 @@ sources:
|
||||
- latest
|
||||
OpenRouter API:
|
||||
sourceNamespace: open-router-chat-completions-api
|
||||
sourceRevisionDigest: sha256:081a51121f970e44311f1415c10c22b1838d1d1b6057280a3e6cba78acab1dca
|
||||
sourceBlobDigest: sha256:fc6bdfffd4edd78b043363b817794d80faaa927b5b4b7e8f149fda68084dac13
|
||||
sourceRevisionDigest: sha256:9726bd1a602e2f5f3665445896ccad693820754350ead01d7aef39e0dedeb3dc
|
||||
sourceBlobDigest: sha256:f8e66605c401e126a5f39b6e0272dd792182257c5162fdfbf7c5a815c516c581
|
||||
tags:
|
||||
- latest
|
||||
- main
|
||||
@@ -18,10 +18,10 @@ targets:
|
||||
open-router:
|
||||
source: OpenRouter API
|
||||
sourceNamespace: open-router-chat-completions-api
|
||||
sourceRevisionDigest: sha256:081a51121f970e44311f1415c10c22b1838d1d1b6057280a3e6cba78acab1dca
|
||||
sourceBlobDigest: sha256:fc6bdfffd4edd78b043363b817794d80faaa927b5b4b7e8f149fda68084dac13
|
||||
sourceRevisionDigest: sha256:9726bd1a602e2f5f3665445896ccad693820754350ead01d7aef39e0dedeb3dc
|
||||
sourceBlobDigest: sha256:f8e66605c401e126a5f39b6e0272dd792182257c5162fdfbf7c5a815c516c581
|
||||
codeSamplesNamespace: open-router-python-code-samples
|
||||
codeSamplesRevisionDigest: sha256:c48795939148c825d881d736e1b7a8d884b6b7e3f66114a5e11d4ed532b75baa
|
||||
codeSamplesRevisionDigest: sha256:6719e0045ac51c8ab2461cbd23189a7b289fad9032460c92183e5845f9e43f61
|
||||
workflow:
|
||||
workflowVersion: 1.0.0
|
||||
speakeasyVersion: 1.666.0
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "openrouter"
|
||||
version = "0.4.1"
|
||||
version = "0.5.0"
|
||||
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.4.1"
|
||||
__version__: str = "0.5.0"
|
||||
__openapi_doc_version__: str = "1.0.0"
|
||||
__gen_version__: str = "2.768.0"
|
||||
__user_agent__: str = "speakeasy-sdk/python 0.4.1 2.768.0 1.0.0 openrouter"
|
||||
__user_agent__: str = "speakeasy-sdk/python 0.5.0 2.768.0 1.0.0 openrouter"
|
||||
|
||||
try:
|
||||
if __package__ is not None:
|
||||
|
||||
Reference in New Issue
Block a user