Compare commits

..
1 Commits
Author SHA1 Message Date
OpenRouter Team 82bbe75d87 Commits included in this export:
- 68922847c2969b773887310eb7aa9a814e199c5a
  - 729ee2338c39df22461526153e7f4ba868fd498e
  - e1074ff86fccf5e48406b7595298873106d3cc5a
  - 123bbdaf841d299162a82ee2573adfbb70a45b8f
  - ac457b8a8dad98fdf5ddcae8dd4711361cea3084
  - ea825199f4c59dd68fec01cf8d18a582963c9f25
  - 4d48e4f6bb936e785787314a965298da6b78fea0
  - 718729a573ee98893a4408d5a52ab4686661fe54
  - b867adcde6b64f3f2a11c4626254b39098e4b0b4
  - 21912c097b4066d109766c6b4492826595cd57c5
  - bc1ed85adc976a4634ca8a41b82e4fc2c39a864f
  - d145c89c941937a312ed1357590d2bfda9a3603d
  - 12f05b5dee397ead47cfcd545a7a2e3c7ff57524
  - dd28f75a19a015809797c7abf3f8758f7c37262e
  - c96e569781e07ab44172d9c69940ec17bafd81f4
  - c9d5a90e3c2b5077a2bdd49773f1a46d1a5a79c7
  - 58b08f87116ceab9076de2fdc0a4c74c919b44c4

GitOrigin-RevId: 68922847c2969b773887310eb7aa9a814e199c5a
2026-01-29 18:16:59 +00:00
9 changed files with 18 additions and 58 deletions
+3 -3
View File
@@ -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: 52c044061097671980a3ac37a4839b7f docChecksum: 8e4409198e29bd1054772727ad1cd368
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.5.0 releaseVersion: 0.4.0
configChecksum: 4bcc2dd9900ba2408612f6fa04918561 configChecksum: 3a0d4d70223d25bf75028237ebd7e079
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
View File
@@ -31,7 +31,7 @@ generation:
skipResponseBodyAssertions: false skipResponseBodyAssertions: false
preApplyUnionDiscriminators: true preApplyUnionDiscriminators: true
python: python:
version: 0.5.0 version: 0.4.0
additionalDependencies: additionalDependencies:
dev: {} dev: {}
main: {} main: {}
+2 -19
View File
@@ -4403,6 +4403,7 @@ components:
- tool_use - tool_use
- pause_turn - pause_turn
- refusal - refusal
- model_context_window_exceeded
stop_sequence: stop_sequence:
type: string type: string
nullable: true nullable: true
@@ -4858,6 +4859,7 @@ components:
- tool_use - tool_use
- pause_turn - pause_turn
- refusal - refusal
- model_context_window_exceeded
stop_sequence: stop_sequence:
type: string type: string
nullable: true nullable: true
@@ -6522,21 +6524,6 @@ components:
- role - role
- content - content
description: Anthropic message with OpenRouter extensions 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: AnthropicMessagesRequest:
type: object type: object
properties: properties:
@@ -7177,8 +7164,6 @@ components:
type: array type: array
items: items:
type: string type: string
output_config:
$ref: '#/components/schemas/AnthropicOutputConfig'
required: required:
- model - model
- max_tokens - max_tokens
@@ -9249,8 +9234,6 @@ components:
anyOf: anyOf:
- type: string - type: string
- type: number - type: number
- type: array
items: {}
modalities: modalities:
type: array type: array
items: items:
+2 -19
View File
@@ -4407,6 +4407,7 @@ components:
- tool_use - tool_use
- pause_turn - pause_turn
- refusal - refusal
- model_context_window_exceeded
x-speakeasy-unknown-values: allow x-speakeasy-unknown-values: allow
stop_sequence: stop_sequence:
type: string type: string
@@ -4866,6 +4867,7 @@ components:
- tool_use - tool_use
- pause_turn - pause_turn
- refusal - refusal
- model_context_window_exceeded
x-speakeasy-unknown-values: allow x-speakeasy-unknown-values: allow
stop_sequence: stop_sequence:
type: string type: string
@@ -6550,21 +6552,6 @@ components:
- role - role
- content - content
description: Anthropic message with OpenRouter extensions 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: AnthropicMessagesRequest:
type: object type: object
properties: properties:
@@ -7195,8 +7182,6 @@ components:
type: array type: array
items: items:
type: string type: string
output_config:
$ref: '#/components/schemas/AnthropicOutputConfig'
required: required:
- model - model
- max_tokens - max_tokens
@@ -9257,8 +9242,6 @@ components:
anyOf: anyOf:
- type: string - type: string
- type: number - type: number
- type: array
items: {}
modalities: modalities:
type: array type: array
items: items:
+5 -5
View File
@@ -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:9726bd1a602e2f5f3665445896ccad693820754350ead01d7aef39e0dedeb3dc sourceRevisionDigest: sha256:5a70452e80a4866581d37c656017d24be6d65f95748f11f4f1dc0e7e141d2bdb
sourceBlobDigest: sha256:f8e66605c401e126a5f39b6e0272dd792182257c5162fdfbf7c5a815c516c581 sourceBlobDigest: sha256:51b950d5a574b3b01e723aaa5bf02223c33b8ed92f749728653a4a4312d8f7c0
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:9726bd1a602e2f5f3665445896ccad693820754350ead01d7aef39e0dedeb3dc sourceRevisionDigest: sha256:5a70452e80a4866581d37c656017d24be6d65f95748f11f4f1dc0e7e141d2bdb
sourceBlobDigest: sha256:f8e66605c401e126a5f39b6e0272dd792182257c5162fdfbf7c5a815c516c581 sourceBlobDigest: sha256:51b950d5a574b3b01e723aaa5bf02223c33b8ed92f749728653a4a4312d8f7c0
codeSamplesNamespace: open-router-python-code-samples codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:6719e0045ac51c8ab2461cbd23189a7b289fad9032460c92183e5845f9e43f61 codeSamplesRevisionDigest: sha256:bc0c0939ef451d21d3e6a1d4be4cd452012f2bb1547b25a2eb9f0b89445bf408
workflow: workflow:
workflowVersion: 1.0.0 workflowVersion: 1.0.0
speakeasyVersion: 1.666.0 speakeasyVersion: 1.666.0
@@ -15,9 +15,3 @@ value: str = /* values here */
value: float = /* values here */ value: float = /* values here */
``` ```
### `List[Any]`
```python
value: List[Any] = /* values here */
```
+1 -1
View File
@@ -1,6 +1,6 @@
[project] [project]
name = "openrouter" name = "openrouter"
version = "0.5.0" version = "0.4.0"
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"
+2 -2
View File
@@ -3,10 +3,10 @@
import importlib.metadata import importlib.metadata
__title__: str = "openrouter" __title__: str = "openrouter"
__version__: str = "0.5.0" __version__: str = "0.4.0"
__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.5.0 2.768.0 1.0.0 openrouter" __user_agent__: str = "speakeasy-sdk/python 0.4.0 2.768.0 1.0.0 openrouter"
try: try:
if __package__ is not None: if __package__ is not None:
@@ -360,12 +360,12 @@ class Debug(BaseModel):
ChatGenerationParamsImageConfigTypedDict = TypeAliasType( ChatGenerationParamsImageConfigTypedDict = TypeAliasType(
"ChatGenerationParamsImageConfigTypedDict", Union[str, float, List[Any]] "ChatGenerationParamsImageConfigTypedDict", Union[str, float]
) )
ChatGenerationParamsImageConfig = TypeAliasType( ChatGenerationParamsImageConfig = TypeAliasType(
"ChatGenerationParamsImageConfig", Union[str, float, List[Any]] "ChatGenerationParamsImageConfig", Union[str, float]
) )