Commits included in this export:

- 45687f423707f5838461585c568a024a19eb2f06
  - 3103d3ca68b6e42ccdb6136588ec2b6edc8dcab0
  - fd9f991606027cd86116317c71f8eb7b4e2aa3eb
  - 0f312019161edd76c1e5923d142c788d22f096d5
  - 5dbab2094bc744db4a90b3097520d897e5d0d634
  - 4c47d1af1735db18a1c1a7f463e801c7f71ad4e5

GitOrigin-RevId: 45687f423707f5838461585c568a024a19eb2f06
This commit is contained in:
OpenRouter Team
2026-02-20 19:10:44 +00:00
parent b2098ff28e
commit 9bd5d826d8
45 changed files with 755 additions and 332 deletions
+12 -7
View File
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: cfd52247-6a25-4c6d-bbce-fe6fce0cd69d
management:
docChecksum: 56062ba1997e25ff8be6529c550e5de9
docChecksum: 44cf69670d08f875912803fcbf819e62
docVersion: 1.0.0
speakeasyVersion: 1.666.0
generationVersion: 2.768.0
releaseVersion: 0.6.0
configChecksum: 690b77f47b975e28d7e11a6b96fa1c2f
releaseVersion: 0.7.3
configChecksum: b2d1a05e03508d9e74db24120e9e88e2
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
@@ -663,6 +666,7 @@ generatedFiles:
- docs/operations/updatekeysrequestbody.md
- docs/operations/updatekeysresponse.md
- docs/operations/usage.md
- docs/operations/usagelimittype.md
- docs/operations/web3data.md
- docs/sdks/analytics/README.md
- docs/sdks/apikeys/README.md
@@ -695,6 +699,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
View File
@@ -31,7 +31,7 @@ generation:
skipResponseBodyAssertions: false
preApplyUnionDiscriminators: true
python:
version: 0.6.0
version: 0.7.3
additionalDependencies:
dev: {}
main: {}
+93 -15
View File
@@ -3574,6 +3574,7 @@ components:
- Inceptron
- InferenceNet
- Infermatic
- Io Net
- Inflection
- Liquid
- Mara
@@ -4094,6 +4095,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 +7211,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:
@@ -7507,7 +7546,6 @@ components:
required:
- prompt
- completion
additionalProperties: false
description: Pricing information for the model
example:
prompt: '0.00003'
@@ -8015,7 +8053,6 @@ components:
required:
- prompt
- completion
additionalProperties: false
provider_name:
$ref: '#/components/schemas/ProviderName'
tag:
@@ -8350,6 +8387,7 @@ components:
- Inceptron
- InferenceNet
- Infermatic
- Io Net
- Inflection
- Liquid
- Mara
@@ -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:
@@ -9054,6 +9106,8 @@ components:
- type: 'null'
required:
- name
cache_control:
$ref: '#/components/schemas/ChatMessageContentItemCacheControl'
required:
- type
- function
@@ -9111,6 +9165,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
@@ -9241,6 +9301,10 @@ components:
minimum: 0
maximum: 2
- type: 'null'
parallel_tool_calls:
anyOf:
- type: boolean
- type: 'null'
tool_choice:
$ref: '#/components/schemas/ToolChoiceOption'
tools:
@@ -9286,7 +9350,7 @@ components:
type: object
properties:
finish_reason:
$ref: '#/components/schemas/__schema25'
$ref: '#/components/schemas/__schema26'
index:
type: number
message:
@@ -9344,14 +9408,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:
@@ -10558,6 +10622,7 @@ paths:
- Inceptron
- InferenceNet
- Infermatic
- Io Net
- Inflection
- Liquid
- Mara
@@ -13710,6 +13775,19 @@ paths:
nullable: true
format: date-time
description: Optional expiration time for the API key to be created
key_label:
type: string
maxLength: 100
description: Optional custom label for the API key. Defaults to the app name if not provided.
example: My Custom Key
usage_limit_type:
type: string
enum:
- daily
- weekly
- monthly
description: Optional credit limit reset interval. When set, the credit limit resets on this interval.
example: monthly
required:
- callback_url
example:
+88 -15
View File
@@ -3593,6 +3593,7 @@ components:
- Inceptron
- InferenceNet
- Infermatic
- Io Net
- Inflection
- Liquid
- Mara
@@ -4097,6 +4098,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 +7227,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:
@@ -7517,7 +7552,6 @@ components:
required:
- prompt
- completion
additionalProperties: false
description: Pricing information for the model
example:
prompt: '0.00003'
@@ -8031,7 +8065,6 @@ components:
required:
- prompt
- completion
additionalProperties: false
provider_name:
$ref: '#/components/schemas/ProviderName'
tag:
@@ -8350,6 +8383,7 @@ components:
- Inceptron
- InferenceNet
- Infermatic
- Io Net
- Inflection
- Liquid
- Mara
@@ -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:
@@ -9062,6 +9110,8 @@ components:
- type: 'null'
required:
- name
cache_control:
$ref: '#/components/schemas/ChatMessageContentItemCacheControl'
required:
- type
- function
@@ -9118,6 +9168,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
@@ -9249,6 +9303,10 @@ components:
minimum: 0
maximum: 2
- type: 'null'
parallel_tool_calls:
anyOf:
- type: boolean
- type: 'null'
tool_choice:
$ref: '#/components/schemas/ToolChoiceOption'
tools:
@@ -9295,7 +9353,7 @@ components:
type: object
properties:
finish_reason:
$ref: '#/components/schemas/__schema25'
$ref: '#/components/schemas/__schema26'
index:
type: number
message:
@@ -9353,14 +9411,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:
@@ -10587,6 +10645,7 @@ paths:
- Inceptron
- InferenceNet
- Infermatic
- Io Net
- Inflection
- Liquid
- Mara
@@ -13775,6 +13834,20 @@ paths:
nullable: true
format: date-time
description: Optional expiration time for the API key to be created
key_label:
type: string
maxLength: 100
description: Optional custom label for the API key. Defaults to the app name if not provided.
example: My Custom Key
usage_limit_type:
type: string
enum:
- daily
- weekly
- monthly
description: Optional credit limit reset interval. When set, the credit limit resets on this interval.
example: monthly
x-speakeasy-unknown-values: allow
required:
- callback_url
example:
+5 -5
View File
@@ -8,8 +8,8 @@ sources:
- latest
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:2dbe784978f60cb53a0d081e1b5f4cbb42ca86b1ff8f4361869fa78c42e042ee
sourceBlobDigest: sha256:851aadf3180735f9dbfdb2904011de231d3805d187499c24a450a224cacf1ed2
sourceRevisionDigest: sha256:c35c30cefa7374fca9158283ca25f10c981f1098509d9e4ac03cbfed356479df
sourceBlobDigest: sha256:c09875e3f18d78b78c948d40ec1a5ac7af9be1725db1ee5c7cd2bbe8bb446ffb
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:c35c30cefa7374fca9158283ca25f10c981f1098509d9e4ac03cbfed356479df
sourceBlobDigest: sha256:c09875e3f18d78b78c948d40ec1a5ac7af9be1725db1ee5c7cd2bbe8bb446ffb
codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:cf9f3fd9983864e3c5dd5bc3fa9198efc9493f4fbc671130e8f07e87722c43dd
codeSamplesRevisionDigest: sha256:0fdbb46fc2029d053bd04962e251a7cd3cfcd96a19a31dcfce59f25cbf30b3b1
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.666.0