Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 44 additions & 38 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
lockVersion: 2.0.0
id: c48cf606-fb42-4a45-9c23-8f0555307828
management:
docChecksum: 694dd5d1dd96513bd5eaf38e8a40e6f3
docChecksum: 75525ddbb8083684b49e018ec9091b0c
docVersion: 1.0.0
speakeasyVersion: 1.803.2
generationVersion: 2.950.13
releaseVersion: 1.3.236
configChecksum: 7371050a0159a49ea601da86ca7eeabd
releaseVersion: 1.3.237
configChecksum: 8949f17114764f95ad7986de38daf254
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
published: true
persistentEdits:
generation_id: 2a52e8ee-16d9-4dbf-84c4-21f3a27af910
pristine_commit_hash: 2f387cb98ce76931e9d91b5a86feb83f915b5532
pristine_tree_hash: b0df64bc131794207ec32fe0d3edb24b59e73926
generation_id: d4012637-9117-45d5-8f98-ab34865f64b7
pristine_commit_hash: 047a999d1f0d837b27b8c553977df61e42f7661f
pristine_tree_hash: 97d3569821136689d68bd07f5b101701fe080f31
features:
python:
acceptHeaders: 3.0.0
Expand Down Expand Up @@ -3456,8 +3456,8 @@ trackedFiles:
pristine_git_object: 5b155412cf75006c71e148911d0df802c4861c91
docs/components/embeddingsmodel.mdx:
id: f9789baaa109
last_write_checksum: sha1:95ed4b5f9ba1f6d7423a99550984c032e60c8d9b
pristine_git_object: 1488309125cfc0f8c45bcbd10b95f2b93d204909
last_write_checksum: sha1:5bf3c777f734527e73b61cd88063c5e7d587bd5f
pristine_git_object: 03d1a36eca42f68c7af081e80cd7ea27fe292ecf
docs/components/embeddingsmodelslistresponse.mdx:
id: 1cba1ae05759
last_write_checksum: sha1:85bac01fe19036801d0e8cc8759ae19b28472634
Expand Down Expand Up @@ -5792,8 +5792,8 @@ trackedFiles:
pristine_git_object: 432f9b632b00dbc6e7cd8a87908df962923bf3d6
docs/components/model.mdx:
id: ee338c3cef0a
last_write_checksum: sha1:c5ad36f2f2bd6274a59e03caa41c5340793e225a
pristine_git_object: 74d129f6cbe456fd2442b591f1843f45cabddb7b
last_write_checksum: sha1:534f463cef8abd556552653f90a91cb813a1306c
pristine_git_object: b8096ab02f7953a384745b670a2ab6e86e38541b
docs/components/modelaliastarget.mdx:
id: 4c176a0fc594
last_write_checksum: sha1:f62206b85ab831a8851bb952302699c14d9f4aef
Expand Down Expand Up @@ -6040,8 +6040,8 @@ trackedFiles:
pristine_git_object: 0bdf3bc661b82384cc05f5c589225c45e7eaada9
docs/components/modelresponse.mdx:
id: 5a9393d9fc35
last_write_checksum: sha1:7acbd450ca042a47559761e9dff50c644014817b
pristine_git_object: 34fbcd6a5b16ac942e515c00fa314bbb9db4d5c4
last_write_checksum: sha1:412f627b858de153e9bc63a13ffdd6fac504b743
pristine_git_object: 7cb46e891097bc5af52ac1923bbab4fe46b7c938
docs/components/models.mdx:
id: 052f0dc2e3ac
last_write_checksum: sha1:e972c52f3ffea48c0b717bcec5674d7e775c409a
Expand All @@ -6060,8 +6060,8 @@ trackedFiles:
pristine_git_object: 7742af54717325df1b2688d638b1cc1e02ecd66c
docs/components/modelslistresponse.mdx:
id: 1880eae9f45e
last_write_checksum: sha1:c946630ee68fbebb8cd3c72796883021f6106b4d
pristine_git_object: b213f5031713740f71e084c6c3055b8229eb5a96
last_write_checksum: sha1:f61479ead8219eb014b67198c8e9635d131c20be
pristine_git_object: 200a91f294b0bdba5af1a38d4365589b8ff7ee50
docs/components/modelslistresponselinks.mdx:
id: da69c5c95166
last_write_checksum: sha1:a2c61b1ca38935a67e45c8f3e8d80ebd0282d8cc
Expand Down Expand Up @@ -8184,8 +8184,8 @@ trackedFiles:
pristine_git_object: 01829529ddd14c5f49352ce4ce8faaa3e6b8d351
docs/components/rerankmodel.mdx:
id: dc873f339895
last_write_checksum: sha1:39b9022e30e325b96f11a0d0768f781bb4efdcf7
pristine_git_object: 803ef44ee4d187bf080781957bd3f0c3663092db
last_write_checksum: sha1:df852ead122690a979308a7a195e0949dbf2ef04
pristine_git_object: 8d3d97a03db3130c05fd3c385a8ccc889509916e
docs/components/rerankmodelslistresponse.mdx:
id: 1c2706f3e2e9
last_write_checksum: sha1:83dae90de9d3a833c57b3e2bdc13d188552eabbc
Expand Down Expand Up @@ -11268,8 +11268,8 @@ trackedFiles:
pristine_git_object: d71b3a2ea13aa34d905be1bdb6e333c55e053aba
docs/operations/getmodelsresponse.mdx:
id: acfd4707ddde
last_write_checksum: sha1:4cdb8094183af736a2679e306454157e8468da39
pristine_git_object: cb73087fe5c85685c95f4ddc6b814d2fda007e17
last_write_checksum: sha1:4c8d714981c32563fe4b9cfc1089cf34268cfc78
pristine_git_object: 65cf31f378012a09a981aaa6d38cb29cbb6f79cc
docs/operations/getmodelssort.mdx:
id: 3cfd33e60661
last_write_checksum: sha1:3c10c05f3d66cfd9cf087fb78b795f551a805406
Expand Down Expand Up @@ -11576,8 +11576,8 @@ trackedFiles:
pristine_git_object: dd273ae5c90fb6a7e2ee5b9c1c72855027d4ff72
docs/operations/listembeddingsmodelsresponse.mdx:
id: d07053bd83fc
last_write_checksum: sha1:774e6b8ae3eaf28bc4ee5ff492897a7df9ad7ae2
pristine_git_object: 3a388f99f4082fd76c24ef4a760443414c225544
last_write_checksum: sha1:948c83cc4f8f010d099d1679bc1d9acbbf71c752
pristine_git_object: 5f95df353888722a4c15a84747369de6d0239c81
docs/operations/listendpointsglobals.mdx:
id: 12c08333c32c
last_write_checksum: sha1:cf64976fc16ebfd8ec3f9d6215385d11b5dab8d8
Expand Down Expand Up @@ -11776,8 +11776,8 @@ trackedFiles:
pristine_git_object: c2c096c88e6b41c927b6ac18d53c1f49a5ba72c7
docs/operations/listmodelsuserresponse.mdx:
id: 34f7a1648ceb
last_write_checksum: sha1:2ba3da93b8dd5a76d5f1acf0a080bc45ced552b6
pristine_git_object: 397cfe897e1398b190d2479fdfc64c4a1a1b1fd3
last_write_checksum: sha1:d9443b143da9f18888c3e03e90c487223be89ab0
pristine_git_object: 37d3fb094d1781a0d1360e3182608ecd16906dac
docs/operations/listmodelsusersecurity.mdx:
id: fa5ad15aebfd
last_write_checksum: sha1:651867928f852079b5365116d520ba8276a2ef8b
Expand Down Expand Up @@ -11912,8 +11912,8 @@ trackedFiles:
pristine_git_object: 4a95ef8764604c40c007db2a3af2fd14d6341adc
docs/operations/listrerankmodelsresponse.mdx:
id: 402ee9867c04
last_write_checksum: sha1:7fdc28ed3d08a4ec24ec28ce5f0e58e0e6ba2020
pristine_git_object: 1574186cb927dc7653b169fc79d77227bed3707f
last_write_checksum: sha1:0ef09af1d43c95d010a8e3d77458ceebd5a9b44f
pristine_git_object: 005c551a1ee8c4eac6bd9c68b855ed914ccf5add
docs/operations/listresponse.mdx:
id: 0fbda0f81ae8
last_write_checksum: sha1:038d67577055fc228a26c28173b10968f116570a
Expand Down Expand Up @@ -12588,8 +12588,8 @@ trackedFiles:
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
pyproject.toml:
id: 5d07e7d72637
last_write_checksum: sha1:3ef94b85a80fb786985cbb49a6a93408091e3546
pristine_git_object: 26b718adeee0686b249044b0092c090d8c6a1cd0
last_write_checksum: sha1:b292486c9c1df8cc72cb9bfb1a28a52e3b13aa35
pristine_git_object: bae8999081da34eee3f75d5876ec6b2e797141f6
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
Expand All @@ -12616,8 +12616,8 @@ trackedFiles:
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
src/openrouter/_version.py:
id: d8d15ad6c586
last_write_checksum: sha1:4876334cdd17a1f9dbcda93d04af7d57e1d12f52
pristine_git_object: 626f088e968584f5beb77a935f38b2988d62e3fa
last_write_checksum: sha1:3e6e3db31888fa1ab9637c21bbd6ac2c71ab2fdb
pristine_git_object: 3a0b147cdcbe60ffb5774863963d274f4ce72c97
src/openrouter/alpha.py:
id: 306c4d93308d
last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766
Expand Down Expand Up @@ -14148,8 +14148,8 @@ trackedFiles:
pristine_git_object: ade9cf4cc5e9473f422f8d873b30bb44e0d273b0
src/openrouter/components/embeddingsmodel.py:
id: 56d48d27ed7c
last_write_checksum: sha1:4031aa1a737e06ef8ae227ef0f7e770dc92f19f5
pristine_git_object: 1349d4f684c5a5613aee958b4ba68315564a2554
last_write_checksum: sha1:7993bf5f69671f117a514ebdeae9c2474afc3215
pristine_git_object: d632ce85ba28b21508a3faa30065cd1c0f91bef9
src/openrouter/components/embeddingsmodelslistresponse.py:
id: 8a70952385cd
last_write_checksum: sha1:d6f04e55b82cbfcdca9eacc565c03f0a216075f8
Expand Down Expand Up @@ -15012,8 +15012,8 @@ trackedFiles:
pristine_git_object: 1257b38d2001f34078cd1b052c20264e81a95e57
src/openrouter/components/model.py:
id: cef3adaa772b
last_write_checksum: sha1:5ee97a406759c20d9add899e1842edf3d63232ac
pristine_git_object: 2a48c80597604b994de964e07504c9a054bb7150
last_write_checksum: sha1:06d10371fc09febfade2d471ba7df63da9afb0dc
pristine_git_object: 1f5a69770691453fa017e5db0913d433d1613949
src/openrouter/components/modelaliastarget.py:
id: 9e2f95e60286
last_write_checksum: sha1:dbb697ffdd52fd48e2cfa0c3bd5c4a7429db4d41
Expand Down Expand Up @@ -15920,8 +15920,8 @@ trackedFiles:
pristine_git_object: e3740a8f28bfe73603bdae2b32153e8188c059ea
src/openrouter/components/rerankmodel.py:
id: 90d1c777c450
last_write_checksum: sha1:e9ab43ee3ed692f6f214262b1e8efead68313be2
pristine_git_object: c366bc285f546fe26acedf8d3d6a81c9e57c3be6
last_write_checksum: sha1:f7987f63d06d72a70de9c60b19ab91452376b40f
pristine_git_object: 3e6f8e001b6f580d7bf5957e54ecf885129b9cce
src/openrouter/components/rerankmodelslistresponse.py:
id: ab497357383b
last_write_checksum: sha1:eca5ef91bf0dc1694610770c3837c3ed42f4dbb7
Expand Down Expand Up @@ -18094,7 +18094,7 @@ examples:
limit: 500
responses:
"200":
application/json: {"data": [{"architecture": {"input_modalities": ["text"], "modality": "text->text", "output_modalities": ["text"]}, "canonical_slug": "openai/gpt-4", "context_length": 8192, "created": 1692901234, "default_parameters": null, "endpoints": ["/api/v1/chat/completions", "/api/v1/completions", "/api/v1/messages", "/api/v1/responses"], "id": "openai/gpt-4", "links": {"details": "/api/v1/models/openai/gpt-4/endpoints"}, "name": "GPT-4", "per_request_limits": null, "pricing": {"completion": "0.00006", "prompt": "0.00003"}, "supported_parameters": ["temperature", "top_p", "max_tokens", "frequency_penalty", "presence_penalty"], "supported_voices": null, "top_provider": {"is_moderated": true}}], "links": {"next": "/api/v1/models?offset=500&limit=500"}, "total_count": 150}
application/json: {"data": [{"architecture": {"input_modalities": ["text"], "modality": "text->text", "output_modalities": ["text"]}, "canonical_slug": "openai/gpt-4", "context_length": 8192, "created": 1692901234, "default_parameters": null, "endpoints": ["/api/v1/chat/completions", "/api/v1/completions", "/api/v1/messages", "/api/v1/responses"], "id": "openai/gpt-4", "links": {"details": "/api/v1/models/openai/gpt-4/endpoints"}, "name": "GPT-4", "per_request_limits": null, "pricing": {"completion": "0.00006", "prompt": "0.00003"}, "supported_parameters": ["temperature", "top_p", "max_tokens"], "supported_voices": null, "top_provider": {"is_moderated": true}}], "links": {"next": "/api/v1/models?offset=500&limit=500"}, "total_count": 150}
"400":
application/json: {"error": {"code": 400, "message": "Invalid request parameters"}}
"500":
Expand All @@ -18121,7 +18121,7 @@ examples:
limit: 500
responses:
"200":
application/json: {"data": [{"architecture": {"input_modalities": ["text"], "modality": "text->text", "output_modalities": ["text"]}, "canonical_slug": "openai/gpt-4", "context_length": 8192, "created": 1692901234, "default_parameters": null, "endpoints": ["/api/v1/chat/completions", "/api/v1/completions", "/api/v1/messages", "/api/v1/responses"], "id": "openai/gpt-4", "links": {"details": "/api/v1/models/openai/gpt-4/endpoints"}, "name": "GPT-4", "per_request_limits": null, "pricing": {"completion": "0.00006", "prompt": "0.00003"}, "supported_parameters": ["temperature", "top_p", "max_tokens", "frequency_penalty", "presence_penalty"], "supported_voices": null, "top_provider": {"is_moderated": true}}], "links": {"next": "/api/v1/models?offset=500&limit=500"}, "total_count": 150}
application/json: {"data": [{"architecture": {"input_modalities": ["text"], "modality": "text->text", "output_modalities": ["text"]}, "canonical_slug": "openai/gpt-4", "context_length": 8192, "created": 1692901234, "default_parameters": null, "endpoints": ["/api/v1/chat/completions", "/api/v1/completions", "/api/v1/messages", "/api/v1/responses"], "id": "openai/gpt-4", "links": {"details": "/api/v1/models/openai/gpt-4/endpoints"}, "name": "GPT-4", "per_request_limits": null, "pricing": {"completion": "0.00006", "prompt": "0.00003"}, "supported_parameters": ["temperature", "top_p", "max_tokens"], "supported_voices": null, "top_provider": {"is_moderated": true}}], "links": {"next": "/api/v1/models?offset=500&limit=500"}, "total_count": 150}
"401":
application/json: {"error": {"code": 401, "message": "Missing Authentication header"}}
"404":
Expand Down Expand Up @@ -23032,7 +23032,7 @@ examples:
limit: 500
responses:
"200":
application/json: {"data": [{"architecture": {"input_modalities": ["text"], "modality": "text->text", "output_modalities": ["text"]}, "canonical_slug": "openai/gpt-4", "context_length": 8192, "created": 1692901234, "default_parameters": null, "endpoints": ["/api/v1/chat/completions", "/api/v1/completions", "/api/v1/messages", "/api/v1/responses"], "id": "openai/gpt-4", "links": {"details": "/api/v1/models/openai/gpt-4/endpoints"}, "name": "GPT-4", "per_request_limits": null, "pricing": {"completion": "0.00006", "prompt": "0.00003"}, "supported_parameters": ["temperature", "top_p", "max_tokens", "frequency_penalty", "presence_penalty"], "supported_voices": null, "top_provider": {"is_moderated": true}}], "links": {"next": "/api/v1/models?offset=500&limit=500"}, "total_count": 150}
application/json: {"data": [{"architecture": {"input_modalities": ["text"], "modality": "text->text", "output_modalities": ["text"]}, "canonical_slug": "openai/gpt-4", "context_length": 8192, "created": 1692901234, "default_parameters": null, "endpoints": ["/api/v1/chat/completions", "/api/v1/completions", "/api/v1/messages", "/api/v1/responses"], "id": "openai/gpt-4", "links": {"details": "/api/v1/models/openai/gpt-4/endpoints"}, "name": "GPT-4", "per_request_limits": null, "pricing": {"completion": "0.00006", "prompt": "0.00003"}, "supported_parameters": ["temperature", "top_p", "max_tokens"], "supported_voices": null, "top_provider": {"is_moderated": true}}], "links": {"next": "/api/v1/models?offset=500&limit=500"}, "total_count": 150}
"400":
application/json: {"error": {"code": 400, "message": "Invalid request parameters"}}
"500":
Expand Down Expand Up @@ -23305,4 +23305,10 @@ examples:
"500":
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
examplesVersion: 1.0.2
releaseNotes: "## Python SDK Changes:\n* `open_router.batch.create_batches()`: `response.results[].response.body` **Changed** (Breaking ⚠️)\n* `open_router.batch.get_batches()`: `response.results[].response.body` **Changed** (Breaking ⚠️)\n* `open_router.batch.cancel()`: `response.results[].response.body` **Changed** (Breaking ⚠️)\n* `open_router.batch.get_results()`: `response.data[].response.body` **Changed** (Breaking ⚠️)\n* `open_router.presets.create_presets_chat_completions()`: \n * `request.messages[].union(assistant).reasoning_details[]` **Changed** (Breaking ⚠️)\n* `open_router.presets.create_presets_responses()`: \n * `request.input.union(Array<>)[]` **Changed** (Breaking ⚠️)\n* `open_router.generations.get_generation()`: `response.data.billed_duration_ms` **Added**\n"
releaseNotes: |
## Python SDK Changes:
* `open_router.embeddings.list_models()`: `response.data[].is_open_weight` **Added**
* `open_router.models.get()`: `response.data.is_open_weight` **Added**
* `open_router.models.list()`: `response.data[].is_open_weight` **Added**
* `open_router.models.list_for_user()`: `response.data[].is_open_weight` **Added**
* `open_router.rerank.list_models()`: `response.data[].is_open_weight` **Added**
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
python:
version: 1.3.236
version: 1.3.237
additionalDependencies:
dev:
pytest: '>=8.3'
Expand Down
Loading