diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 6e8450d..b12585e 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -1,9 +1,7 @@ { "permissions": { "allow": [ - "Bash(python3:*)", - "Bash(git push:*)", - "Bash(gh pr create:*)" + "Bash(python3:*)" ], "deny": [], "ask": [] diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index bada82f..4cf78fe 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -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 diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 93a6aea..5006069 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -31,7 +31,7 @@ generation: skipResponseBodyAssertions: false preApplyUnionDiscriminators: true python: - version: 0.0.22 + version: 0.0.16 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index a5f339a..90136bd 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -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: diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index 5506188..fbd831a 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -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: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 04703aa..d16a28f 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -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 diff --git a/docs/components/chatgenerationparamspluginfileparser.md b/docs/components/chatgenerationparamspluginfileparser.md index 7937ab1..f438508 100644 --- a/docs/components/chatgenerationparamspluginfileparser.md +++ b/docs/components/chatgenerationparamspluginfileparser.md @@ -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 | \ No newline at end of file diff --git a/docs/components/openresponsesrequestpluginfileparser.md b/docs/components/openresponsesrequestpluginfileparser.md index 9ad57a6..aee432a 100644 --- a/docs/components/openresponsesrequestpluginfileparser.md +++ b/docs/components/openresponsesrequestpluginfileparser.md @@ -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 | \ No newline at end of file diff --git a/examples/oauth_pkce_example.py b/examples/oauth_pkce_example.py index e07e3e3..b394a7d 100644 --- a/examples/oauth_pkce_example.py +++ b/examples/oauth_pkce_example.py @@ -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, ) diff --git a/pyproject.toml b/pyproject.toml index 9ec2c59..0bca6bd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/src/openrouter/_version.py b/src/openrouter/_version.py index 927c895..af0bab6 100644 --- a/src/openrouter/_version.py +++ b/src/openrouter/_version.py @@ -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: diff --git a/src/openrouter/components/chatgenerationparams.py b/src/openrouter/components/chatgenerationparams.py index 588668f..c0d4a56 100644 --- a/src/openrouter/components/chatgenerationparams.py +++ b/src/openrouter/components/chatgenerationparams.py @@ -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 diff --git a/src/openrouter/components/openresponsesrequest.py b/src/openrouter/components/openresponsesrequest.py index d12b9b8..6053832 100644 --- a/src/openrouter/components/openresponsesrequest.py +++ b/src/openrouter/components/openresponsesrequest.py @@ -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