Project import generated by Copybara.

GitOrigin-RevId: 94074033e15542b78c82f8a4fe721be656aeaaed
This commit is contained in:
OpenRouter Team
2025-12-13 02:43:01 +00:00
committed by OpenRouter Team
parent d433ce35e8
commit a35486030a
13 changed files with 19 additions and 35 deletions
+1 -3
View File
@@ -1,9 +1,7 @@
{
"permissions": {
"allow": [
"Bash(python3:*)",
"Bash(git push:*)",
"Bash(gh pr create:*)"
"Bash(python3:*)"
],
"deny": [],
"ask": []
+3 -3
View File
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: cfd52247-6a25-4c6d-bbce-fe6fce0cd69d
management:
docChecksum: e929ecf569d79ab96a315332a4855566
docChecksum: 775966841832e95cb8d37401c576b4b6
docVersion: 1.0.0
speakeasyVersion: 1.666.0
generationVersion: 2.768.0
releaseVersion: 0.0.22
configChecksum: 0afda3910a58a8d797ac6674fa858711
releaseVersion: 0.0.16
configChecksum: cd00e781b0ef78cfcb3fe812f51e93ff
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
published: true
+1 -1
View File
@@ -31,7 +31,7 @@ generation:
skipResponseBodyAssertions: false
preApplyUnionDiscriminators: true
python:
version: 0.0.22
version: 0.0.16
additionalDependencies:
dev: {}
main: {}
-4
View File
@@ -3795,8 +3795,6 @@ components:
enabled:
type: boolean
description: Set to false to disable the file-parser plugin for this request. Defaults to true.
max_files:
type: number
pdf:
type: object
properties:
@@ -5328,8 +5326,6 @@ components:
const: file-parser
enabled:
type: boolean
max_files:
type: number
pdf:
type: object
properties:
-4
View File
@@ -3805,8 +3805,6 @@ components:
enabled:
type: boolean
description: Set to false to disable the file-parser plugin for this request. Defaults to true.
max_files:
type: number
pdf:
type: object
properties:
@@ -5340,8 +5338,6 @@ components:
const: file-parser
enabled:
type: boolean
max_files:
type: number
pdf:
type: object
properties:
+7 -7
View File
@@ -2,14 +2,14 @@ speakeasyVersion: 1.666.0
sources:
-OAS:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:f1b59b9b643de5e20d6e3299a8274783d8c0854615876f5d7f6f081814842695
sourceBlobDigest: sha256:ee1f2422281b3ed5b38951c74636ad192c9bb160f216069c1f7931ccc4e52553
sourceRevisionDigest: sha256:01256c8494de6bfc13c36d82ae316a6a13d402194f844618bcd4d59e34f325f3
sourceBlobDigest: sha256:4c80e48fd5e1cd030e68d664eb93984b4d5946867252ff1755a2bd2a05eccd4e
tags:
- latest
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:b128cdb6be96021e55feea5e2dcb6e7438de706138fcde4f871b14877885445b
sourceBlobDigest: sha256:8b15f72eaabbd77f4642be28a2861fd1cfd5d8cfe96e72fb8a76832387c64fab
sourceRevisionDigest: sha256:cfb565b0217763fa566062e31b6f01db05dfec6bdd0746b429f03b8600588989
sourceBlobDigest: sha256:b985c3342982a1c6e2163e6bb1ebc6066117f1d4c3dfc6fa219768cf6f7fc8d1
tags:
- latest
- 1.0.0
@@ -17,10 +17,10 @@ targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:b128cdb6be96021e55feea5e2dcb6e7438de706138fcde4f871b14877885445b
sourceBlobDigest: sha256:8b15f72eaabbd77f4642be28a2861fd1cfd5d8cfe96e72fb8a76832387c64fab
sourceRevisionDigest: sha256:cfb565b0217763fa566062e31b6f01db05dfec6bdd0746b429f03b8600588989
sourceBlobDigest: sha256:b985c3342982a1c6e2163e6bb1ebc6066117f1d4c3dfc6fa219768cf6f7fc8d1
codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:92747cd4c744e6671784b73c124d89adc662799d11caf5e6573880f6bfb52405
codeSamplesRevisionDigest: sha256:badb3333f4862c5024a05b0b8456c4491edca4c2e3511c10da240942fc5e5397
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.666.0
@@ -7,5 +7,4 @@
| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| `id` | *Literal["file-parser"]* | :heavy_check_mark: | N/A |
| `enabled` | *Optional[bool]* | :heavy_minus_sign: | N/A |
| `max_files` | *Optional[float]* | :heavy_minus_sign: | N/A |
| `pdf` | [Optional[components.ChatGenerationParamsPdf]](../components/chatgenerationparamspdf.md) | :heavy_minus_sign: | N/A |
@@ -7,5 +7,4 @@
| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| `id` | [components.IDFileParser](../components/idfileparser.md) | :heavy_check_mark: | N/A |
| `enabled` | *Optional[bool]* | :heavy_minus_sign: | Set to false to disable the file-parser plugin for this request. Defaults to true. |
| `max_files` | *Optional[float]* | :heavy_minus_sign: | N/A |
| `pdf` | [Optional[components.OpenResponsesRequestPdf]](../components/openresponsesrequestpdf.md) | :heavy_minus_sign: | N/A |
+4 -2
View File
@@ -7,10 +7,12 @@ This example demonstrates how to:
"""
from openrouter import OpenRouter
from openrouter.utils import (
from openrouter.utils.oauth_create_sha256_code_challenge import (
oauth_create_sha256_code_challenge,
oauth_create_authorization_url,
CreateSHA256CodeChallengeRequest,
)
from openrouter.utils.oauth_create_authorization_url import (
oauth_create_authorization_url,
CreateAuthorizationUrlRequestWithPKCE,
)
+1 -1
View File
@@ -1,6 +1,6 @@
[project]
name = "openrouter"
version = "0.0.22"
version = "0.0.16"
description = "Official Python Client SDK for OpenRouter."
authors = [{ name = "OpenRouter" },]
readme = "README-PYPI.md"
+2 -2
View File
@@ -3,10 +3,10 @@
import importlib.metadata
__title__: str = "openrouter"
__version__: str = "0.0.22"
__version__: str = "0.0.16"
__openapi_doc_version__: str = "1.0.0"
__gen_version__: str = "2.768.0"
__user_agent__: str = "speakeasy-sdk/python 0.0.22 2.768.0 1.0.0 openrouter"
__user_agent__: str = "speakeasy-sdk/python 0.0.16 2.768.0 1.0.0 openrouter"
try:
if __package__ is not None:
@@ -276,7 +276,6 @@ class ChatGenerationParamsPdf(BaseModel):
class ChatGenerationParamsPluginFileParserTypedDict(TypedDict):
id: Literal["file-parser"]
enabled: NotRequired[bool]
max_files: NotRequired[float]
pdf: NotRequired[ChatGenerationParamsPdfTypedDict]
@@ -290,8 +289,6 @@ class ChatGenerationParamsPluginFileParser(BaseModel):
enabled: Optional[bool] = None
max_files: Optional[float] = None
pdf: Optional[ChatGenerationParamsPdf] = None
@@ -406,7 +406,6 @@ class OpenResponsesRequestPluginFileParserTypedDict(TypedDict):
id: IDFileParser
enabled: NotRequired[bool]
r"""Set to false to disable the file-parser plugin for this request. Defaults to true."""
max_files: NotRequired[float]
pdf: NotRequired[OpenResponsesRequestPdfTypedDict]
@@ -416,8 +415,6 @@ class OpenResponsesRequestPluginFileParser(BaseModel):
enabled: Optional[bool] = None
r"""Set to false to disable the file-parser plugin for this request. Defaults to true."""
max_files: Optional[float] = None
pdf: Optional[OpenResponsesRequestPdf] = None