From aef381fdbf4fe61120488f1f881319b68446e8cc Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 3 Dec 2026 19:28:34 +0000 Subject: [PATCH] ## 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** --- .speakeasy/gen.lock | 82 +++++++------ .speakeasy/gen.yaml | 2 +- .speakeasy/out.openapi.yaml | 108 +++++++----------- .speakeasy/workflow.lock | 10 +- RELEASES.md | 12 +- docs/components/embeddingsmodel.mdx | 1 + docs/components/model.mdx | 1 + docs/components/modelresponse.mdx | 6 +- docs/components/modelslistresponse.mdx | 10 +- docs/components/rerankmodel.mdx | 1 + docs/operations/getmodelsresponse.mdx | 6 +- .../listembeddingsmodelsresponse.mdx | 6 +- docs/operations/listmodelsuserresponse.mdx | 6 +- docs/operations/listrerankmodelsresponse.mdx | 6 +- pyproject.toml | 2 +- src/openrouter/_version.py | 4 +- src/openrouter/components/embeddingsmodel.py | 6 + src/openrouter/components/model.py | 6 + src/openrouter/components/rerankmodel.py | 6 + uv.lock | 2 +- 20 files changed, 149 insertions(+), 134 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index b41b0c773..d1e6cbdb3 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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": @@ -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": @@ -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": @@ -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** diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 8b068974e..e1577ddf5 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -37,7 +37,7 @@ generation: documentation: mintlify preApplyUnionDiscriminators: true python: - version: 1.3.236 + version: 1.3.237 additionalDependencies: dev: pytest: '>=8.3' diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index a508ed5dc..b9a655a49 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -13353,6 +13353,7 @@ components: unit: 'token' value: 8192 type: 'text' + is_open_weight: false knowledge_cutoff: null links: details: '/api/v1/models/openai/text-embedding-3-small/endpoints' @@ -13413,6 +13414,7 @@ components: unit: 'token' value: 8192 type: 'text' + is_open_weight: false knowledge_cutoff: null links: details: '/api/v1/models/openai/text-embedding-3-small/endpoints' @@ -22744,11 +22746,17 @@ components: created: 1692901234 default_parameters: null description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.' + endpoints: + - '/api/v1/chat/completions' + - '/api/v1/completions' + - '/api/v1/messages' + - '/api/v1/responses' expiration_date: null id: 'openai/gpt-4' + is_open_weight: false knowledge_cutoff: null links: - details: '/api/v1/models/openai/gpt-5.4/endpoints' + details: '/api/v1/models/openai/gpt-4/endpoints' name: 'GPT-4' per_request_limits: null pricing: @@ -22756,15 +22764,6 @@ components: image: '0' prompt: '0.00003' request: '0' - reasoning: - default_effort: 'medium' - default_enabled: true - mandatory: false - supported_efforts: - - 'high' - - 'medium' - - 'low' - - 'minimal' supported_parameters: - 'temperature' - 'top_p' @@ -22827,6 +22826,10 @@ components: description: 'Unique identifier for the model' example: 'openai/gpt-4' type: 'string' + is_open_weight: + description: 'Whether the model has publicly released weights. A preset reports true only when every listed model is known to be open-weight; routing presets report false.' + example: false + type: 'boolean' knowledge_cutoff: description: 'The date up to which the model was trained on data. ISO 8601 date string (YYYY-MM-DD) or null if unknown.' example: '2024-10-01' @@ -24094,6 +24097,7 @@ components: - '/api/v1/responses' expiration_date: null id: 'openai/gpt-4' + is_open_weight: false knowledge_cutoff: null links: details: '/api/v1/models/openai/gpt-4/endpoints' @@ -24157,8 +24161,14 @@ components: created: 1692901234 default_parameters: null description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.' + endpoints: + - '/api/v1/chat/completions' + - '/api/v1/completions' + - '/api/v1/messages' + - '/api/v1/responses' expiration_date: null id: 'openai/gpt-4' + is_open_weight: false knowledge_cutoff: null links: details: '/api/v1/models/openai/gpt-4/endpoints' @@ -24173,8 +24183,6 @@ components: - 'temperature' - 'top_p' - 'max_tokens' - - 'frequency_penalty' - - 'presence_penalty' supported_voices: null top_provider: context_length: 8192 @@ -24223,8 +24231,14 @@ components: created: 1692901234 default_parameters: null description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.' + endpoints: + - '/api/v1/chat/completions' + - '/api/v1/completions' + - '/api/v1/messages' + - '/api/v1/responses' expiration_date: null id: 'openai/gpt-4' + is_open_weight: false knowledge_cutoff: null links: details: '/api/v1/models/openai/gpt-4/endpoints' @@ -34584,11 +34598,17 @@ components: created: 1692901234 default_parameters: null description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.' + endpoints: + - '/api/v1/chat/completions' + - '/api/v1/completions' + - '/api/v1/messages' + - '/api/v1/responses' expiration_date: null id: 'openai/gpt-4' + is_open_weight: false knowledge_cutoff: null links: - details: '/api/v1/models/openai/gpt-5.4/endpoints' + details: '/api/v1/models/openai/gpt-4/endpoints' name: 'GPT-4' per_request_limits: null pricing: @@ -34596,15 +34616,6 @@ components: image: '0' prompt: '0.00003' request: '0' - reasoning: - default_effort: 'medium' - default_enabled: true - mandatory: false - supported_efforts: - - 'high' - - 'medium' - - 'low' - - 'minimal' supported_parameters: - 'temperature' - 'top_p' @@ -34640,8 +34651,14 @@ components: created: 1692901234 default_parameters: null description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.' + endpoints: + - '/api/v1/chat/completions' + - '/api/v1/completions' + - '/api/v1/messages' + - '/api/v1/responses' expiration_date: null id: 'openai/gpt-4' + is_open_weight: false knowledge_cutoff: null links: details: '/api/v1/models/openai/gpt-4/endpoints' @@ -34656,8 +34673,6 @@ components: - 'temperature' - 'top_p' - 'max_tokens' - - 'frequency_penalty' - - 'presence_penalty' supported_voices: null top_provider: context_length: 8192 @@ -48768,6 +48783,7 @@ paths: unit: 'token' value: 8192 type: 'text' + is_open_weight: false knowledge_cutoff: null links: details: '/api/v1/models/openai/text-embedding-3-small/endpoints' @@ -57358,47 +57374,6 @@ paths: '200': content: application/json: - example: - data: - architecture: - input_modalities: - - 'text' - instruct_type: 'chatml' - modality: 'text->text' - output_modalities: - - 'text' - tokenizer: 'GPT' - canonical_slug: 'openai/gpt-4' - context_length: 8192 - created: 1692901234 - default_parameters: null - description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.' - endpoints: - - '/api/v1/chat/completions' - - '/api/v1/completions' - - '/api/v1/messages' - - '/api/v1/responses' - expiration_date: null - id: 'openai/gpt-4' - knowledge_cutoff: null - links: - details: '/api/v1/models/openai/gpt-4/endpoints' - name: 'GPT-4' - per_request_limits: null - pricing: - completion: '0.00006' - image: '0' - prompt: '0.00003' - request: '0' - supported_parameters: - - 'temperature' - - 'top_p' - - 'max_tokens' - supported_voices: null - top_provider: - context_length: 8192 - is_moderated: true - max_completion_tokens: 4096 schema: $ref: '#/components/schemas/ModelResponse' description: 'Returns the model details' @@ -58038,6 +58013,7 @@ paths: - '/api/v1/responses' expiration_date: null id: 'openai/gpt-4' + is_open_weight: false knowledge_cutoff: null links: details: '/api/v1/models/openai/gpt-4/endpoints' @@ -58492,6 +58468,7 @@ paths: - '/api/v1/responses' expiration_date: null id: 'openai/gpt-4' + is_open_weight: false knowledge_cutoff: null links: details: '/api/v1/models/openai/gpt-4/endpoints' @@ -63104,6 +63081,7 @@ paths: unit: 'token' value: 4096 type: 'text' + is_open_weight: false knowledge_cutoff: null links: details: '/api/v1/models/cohere/rerank-v3.5/endpoints' diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 6816b563c..0ecac60d6 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.803.2 sources: OpenRouter API: sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:f565a541a5a0f05304d0c7c5864de3decd25ee91d8aac02235f3473d693cfd79 - sourceBlobDigest: sha256:99bd1774dce7656a73809ab2ec02a20256d6d7dd694fa124ce08472d41265fdd + sourceRevisionDigest: sha256:736b5be01c3df35d0f24e2fb73e0ce9b4cabdabbe8a3207840a8423caac35924 + sourceBlobDigest: sha256:77af25e4f39f912e3b224314ce4bbc5dae5c8ec1d146adcc1669e518d64bdc51 tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: open-router: source: OpenRouter API sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:f565a541a5a0f05304d0c7c5864de3decd25ee91d8aac02235f3473d693cfd79 - sourceBlobDigest: sha256:99bd1774dce7656a73809ab2ec02a20256d6d7dd694fa124ce08472d41265fdd + sourceRevisionDigest: sha256:736b5be01c3df35d0f24e2fb73e0ce9b4cabdabbe8a3207840a8423caac35924 + sourceBlobDigest: sha256:77af25e4f39f912e3b224314ce4bbc5dae5c8ec1d146adcc1669e518d64bdc51 codeSamplesNamespace: open-router-python-code-samples - codeSamplesRevisionDigest: sha256:b50547ead201470b52082050ce30ab10953a34e22989d947582f03818ee3e9c1 + codeSamplesRevisionDigest: sha256:bcd1350abbadaf3393abf9d4caee6d09f3ee2f3126a21ef5498899ae03cae4df workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.803.2 diff --git a/RELEASES.md b/RELEASES.md index 27edd45ec..ac1ea64a6 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -5129,4 +5129,14 @@ Based on: ### Generated - [python v1.3.236] . ### Releases -- [PyPI v1.3.236] https://pypi.org/project/openrouter/1.3.236 - . \ No newline at end of file +- [PyPI v1.3.236] https://pypi.org/project/openrouter/1.3.236 - . + +## 2026-12-03 19:24:58 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.3.237] . +### Releases +- [PyPI v1.3.237] https://pypi.org/project/openrouter/1.3.237 - . \ No newline at end of file diff --git a/docs/components/embeddingsmodel.mdx b/docs/components/embeddingsmodel.mdx index 148830912..03d1a36ec 100644 --- a/docs/components/embeddingsmodel.mdx +++ b/docs/components/embeddingsmodel.mdx @@ -21,6 +21,7 @@ An embeddings model available on OpenRouter | `expiration_date` | *OptionalNullable[str]* | ➖ | The date after which the model may be removed. ISO 8601 date string (YYYY-MM-DD) or null if no expiration. | 2025-06-01 | | `hugging_face_id` | *OptionalNullable[str]* | ➖ | Hugging Face model identifier, if applicable | microsoft/DialoGPT-medium | | `id` | *str* | ✔️ | Unique identifier for the model | openai/gpt-4 | +| `is_open_weight` | *Optional[bool]* | ➖ | Whether the model has publicly released weights. A preset reports true only when every listed model is known to be open-weight; routing presets report false. | false | | `knowledge_cutoff` | *OptionalNullable[str]* | ➖ | The date up to which the model was trained on data. ISO 8601 date string (YYYY-MM-DD) or null if unknown. | 2024-10-01 | | `links` | [components.ModelLinks](../components/modellinks.mdx) | ✔️ | Related API endpoints and resources for this model. | \{
"details": "/api/v1/models/openai/gpt-5.4/endpoints"
} | | `name` | *str* | ✔️ | Display name of the model | GPT-4 | diff --git a/docs/components/model.mdx b/docs/components/model.mdx index 74d129f6c..b8096ab02 100644 --- a/docs/components/model.mdx +++ b/docs/components/model.mdx @@ -21,6 +21,7 @@ Information about an AI model available on OpenRouter | `expiration_date` | *OptionalNullable[str]* | ➖ | The date after which the model may be removed. ISO 8601 date string (YYYY-MM-DD) or null if no expiration. | 2025-06-01 | | `hugging_face_id` | *OptionalNullable[str]* | ➖ | Hugging Face model identifier, if applicable | microsoft/DialoGPT-medium | | `id` | *str* | ✔️ | Unique identifier for the model | openai/gpt-4 | +| `is_open_weight` | *Optional[bool]* | ➖ | Whether the model has publicly released weights. A preset reports true only when every listed model is known to be open-weight; routing presets report false. | false | | `knowledge_cutoff` | *OptionalNullable[str]* | ➖ | The date up to which the model was trained on data. ISO 8601 date string (YYYY-MM-DD) or null if unknown. | 2024-10-01 | | `links` | [components.ModelLinks](../components/modellinks.mdx) | ✔️ | Related API endpoints and resources for this model. | \{
"details": "/api/v1/models/openai/gpt-5.4/endpoints"
} | | `name` | *str* | ✔️ | Display name of the model | GPT-4 | diff --git a/docs/components/modelresponse.mdx b/docs/components/modelresponse.mdx index 34fbcd6a5..7cb46e891 100644 --- a/docs/components/modelresponse.mdx +++ b/docs/components/modelresponse.mdx @@ -7,6 +7,6 @@ Single model response ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `data` | [components.Model](../components/model.mdx) | ✔️ | Information about an AI model available on OpenRouter | \{
"architecture": \{
"input_modalities": [
"text"
],
"instruct_type": "chatml",
"modality": "text-\u003etext",
"output_modalities": [
"text"
],
"tokenizer": "GPT"
},
"canonical_slug": "openai/gpt-4",
"context_length": 8192,
"created": 1692901234,
"default_parameters": null,
"description": "GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.",
"expiration_date": null,
"id": "openai/gpt-4",
"knowledge_cutoff": null,
"links": \{
"details": "/api/v1/models/openai/gpt-5.4/endpoints"
},
"name": "GPT-4",
"per_request_limits": null,
"pricing": \{
"completion": "0.00006",
"image": "0",
"prompt": "0.00003",
"request": "0"
},
"reasoning": \{
"default_effort": "medium",
"default_enabled": true,
"mandatory": false,
"supported_efforts": [
"high",
"medium",
"low",
"minimal"
]
},
"supported_parameters": [
"temperature",
"top_p",
"max_tokens"
],
"supported_voices": null,
"top_provider": \{
"context_length": 8192,
"is_moderated": true,
"max_completion_tokens": 4096
}
} | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `data` | [components.Model](../components/model.mdx) | ✔️ | Information about an AI model available on OpenRouter | \{
"architecture": \{
"input_modalities": [
"text"
],
"instruct_type": "chatml",
"modality": "text-\u003etext",
"output_modalities": [
"text"
],
"tokenizer": "GPT"
},
"canonical_slug": "openai/gpt-4",
"context_length": 8192,
"created": 1692901234,
"default_parameters": null,
"description": "GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.",
"endpoints": [
"/api/v1/chat/completions",
"/api/v1/completions",
"/api/v1/messages",
"/api/v1/responses"
],
"expiration_date": null,
"id": "openai/gpt-4",
"is_open_weight": false,
"knowledge_cutoff": null,
"links": \{
"details": "/api/v1/models/openai/gpt-4/endpoints"
},
"name": "GPT-4",
"per_request_limits": null,
"pricing": \{
"completion": "0.00006",
"image": "0",
"prompt": "0.00003",
"request": "0"
},
"supported_parameters": [
"temperature",
"top_p",
"max_tokens"
],
"supported_voices": null,
"top_provider": \{
"context_length": 8192,
"is_moderated": true,
"max_completion_tokens": 4096
}
} | \ No newline at end of file diff --git a/docs/components/modelslistresponse.mdx b/docs/components/modelslistresponse.mdx index b213f5031..200a91f29 100644 --- a/docs/components/modelslistresponse.mdx +++ b/docs/components/modelslistresponse.mdx @@ -7,8 +7,8 @@ List of available models ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `data` | List[[components.Model](../components/model.mdx)] | ✔️ | List of available models | [
\{
"architecture": \{
"input_modalities": [
"text"
],
"instruct_type": "chatml",
"modality": "text-\u003etext",
"output_modalities": [
"text"
],
"tokenizer": "GPT"
},
"canonical_slug": "openai/gpt-4",
"context_length": 8192,
"created": 1692901234,
"default_parameters": null,
"description": "GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.",
"expiration_date": null,
"id": "openai/gpt-4",
"knowledge_cutoff": null,
"links": \{
"details": "/api/v1/models/openai/gpt-4/endpoints"
},
"name": "GPT-4",
"per_request_limits": null,
"pricing": \{
"completion": "0.00006",
"image": "0",
"prompt": "0.00003",
"request": "0"
},
"supported_parameters": [
"temperature",
"top_p",
"max_tokens"
],
"supported_voices": null,
"top_provider": \{
"context_length": 8192,
"is_moderated": true,
"max_completion_tokens": 4096
}
}
] | -| `links` | [components.ModelsListResponseLinks](../components/modelslistresponselinks.mdx) | ✔️ | Pagination links | | -| `total_count` | *int* | ✔️ | Total number of models matching the query | 150 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `data` | List[[components.Model](../components/model.mdx)] | ✔️ | List of available models | [
\{
"architecture": \{
"input_modalities": [
"text"
],
"instruct_type": "chatml",
"modality": "text-\u003etext",
"output_modalities": [
"text"
],
"tokenizer": "GPT"
},
"canonical_slug": "openai/gpt-4",
"context_length": 8192,
"created": 1692901234,
"default_parameters": null,
"description": "GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.",
"endpoints": [
"/api/v1/chat/completions",
"/api/v1/completions",
"/api/v1/messages",
"/api/v1/responses"
],
"expiration_date": null,
"id": "openai/gpt-4",
"is_open_weight": false,
"knowledge_cutoff": null,
"links": \{
"details": "/api/v1/models/openai/gpt-4/endpoints"
},
"name": "GPT-4",
"per_request_limits": null,
"pricing": \{
"completion": "0.00006",
"image": "0",
"prompt": "0.00003",
"request": "0"
},
"supported_parameters": [
"temperature",
"top_p",
"max_tokens"
],
"supported_voices": null,
"top_provider": \{
"context_length": 8192,
"is_moderated": true,
"max_completion_tokens": 4096
}
}
] | +| `links` | [components.ModelsListResponseLinks](../components/modelslistresponselinks.mdx) | ✔️ | Pagination links | | +| `total_count` | *int* | ✔️ | Total number of models matching the query | 150 | \ No newline at end of file diff --git a/docs/components/rerankmodel.mdx b/docs/components/rerankmodel.mdx index 803ef44ee..8d3d97a03 100644 --- a/docs/components/rerankmodel.mdx +++ b/docs/components/rerankmodel.mdx @@ -21,6 +21,7 @@ Information about an AI model available on OpenRouter | `expiration_date` | *OptionalNullable[str]* | ➖ | The date after which the model may be removed. ISO 8601 date string (YYYY-MM-DD) or null if no expiration. | 2025-06-01 | | `hugging_face_id` | *OptionalNullable[str]* | ➖ | Hugging Face model identifier, if applicable | microsoft/DialoGPT-medium | | `id` | *str* | ✔️ | Unique identifier for the model | openai/gpt-4 | +| `is_open_weight` | *Optional[bool]* | ➖ | Whether the model has publicly released weights. A preset reports true only when every listed model is known to be open-weight; routing presets report false. | false | | `knowledge_cutoff` | *OptionalNullable[str]* | ➖ | The date up to which the model was trained on data. ISO 8601 date string (YYYY-MM-DD) or null if unknown. | 2024-10-01 | | `links` | [components.ModelLinks](../components/modellinks.mdx) | ✔️ | Related API endpoints and resources for this model. | \{
"details": "/api/v1/models/openai/gpt-5.4/endpoints"
} | | `name` | *str* | ✔️ | Display name of the model | GPT-4 | diff --git a/docs/operations/getmodelsresponse.mdx b/docs/operations/getmodelsresponse.mdx index cb73087fe..65cf31f37 100644 --- a/docs/operations/getmodelsresponse.mdx +++ b/docs/operations/getmodelsresponse.mdx @@ -4,6 +4,6 @@ title: "GetModelsResponse" ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `result` | [components.ModelsListResponse](../components/modelslistresponse.mdx) | ✔️ | N/A | \{
"data": [
\{
"architecture": \{
"input_modalities": [
"text"
],
"instruct_type": "chatml",
"modality": "text-\u003etext",
"output_modalities": [
"text"
],
"tokenizer": "GPT"
},
"canonical_slug": "openai/gpt-4",
"context_length": 8192,
"created": 1692901234,
"default_parameters": null,
"description": "GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.",
"expiration_date": null,
"id": "openai/gpt-4",
"knowledge_cutoff": null,
"links": \{
"details": "/api/v1/models/openai/gpt-4/endpoints"
},
"name": "GPT-4",
"per_request_limits": null,
"pricing": \{
"completion": "0.00006",
"image": "0",
"prompt": "0.00003",
"request": "0"
},
"supported_parameters": [
"temperature",
"top_p",
"max_tokens",
"frequency_penalty",
"presence_penalty"
],
"supported_voices": null,
"top_provider": \{
"context_length": 8192,
"is_moderated": true,
"max_completion_tokens": 4096
}
}
],
"links": \{
"next": "/api/v1/models?offset=500\u0026limit=500"
},
"total_count": 150
} | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `result` | [components.ModelsListResponse](../components/modelslistresponse.mdx) | ✔️ | N/A | \{
"data": [
\{
"architecture": \{
"input_modalities": [
"text"
],
"instruct_type": "chatml",
"modality": "text-\u003etext",
"output_modalities": [
"text"
],
"tokenizer": "GPT"
},
"canonical_slug": "openai/gpt-4",
"context_length": 8192,
"created": 1692901234,
"default_parameters": null,
"description": "GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.",
"endpoints": [
"/api/v1/chat/completions",
"/api/v1/completions",
"/api/v1/messages",
"/api/v1/responses"
],
"expiration_date": null,
"id": "openai/gpt-4",
"is_open_weight": false,
"knowledge_cutoff": null,
"links": \{
"details": "/api/v1/models/openai/gpt-4/endpoints"
},
"name": "GPT-4",
"per_request_limits": null,
"pricing": \{
"completion": "0.00006",
"image": "0",
"prompt": "0.00003",
"request": "0"
},
"supported_parameters": [
"temperature",
"top_p",
"max_tokens"
],
"supported_voices": null,
"top_provider": \{
"context_length": 8192,
"is_moderated": true,
"max_completion_tokens": 4096
}
}
],
"links": \{
"next": "/api/v1/models?offset=500\u0026limit=500"
},
"total_count": 150
} | \ No newline at end of file diff --git a/docs/operations/listembeddingsmodelsresponse.mdx b/docs/operations/listembeddingsmodelsresponse.mdx index 3a388f99f..5f95df353 100644 --- a/docs/operations/listembeddingsmodelsresponse.mdx +++ b/docs/operations/listembeddingsmodelsresponse.mdx @@ -4,6 +4,6 @@ title: "ListEmbeddingsModelsResponse" ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `result` | [components.EmbeddingsModelsListResponse](../components/embeddingsmodelslistresponse.mdx) | ✔️ | N/A | \{
"data": [
\{
"architecture": \{
"input_modalities": [
"text"
],
"instruct_type": null,
"modality": "text-\u003eembeddings",
"output_modalities": [
"embeddings"
],
"tokenizer": "GPT"
},
"canonical_slug": "openai/text-embedding-3-small",
"context_length": 8192,
"created": 1692901234,
"default_parameters": null,
"description": "OpenAI text embedding model optimized for performance.",
"endpoints": [
"/api/v1/embeddings"
],
"expiration_date": null,
"id": "openai/text-embedding-3-small",
"input_modalities": [
\{
"supported_inputs": \{
"max_context_length": \{
"unit": "token",
"value": 8192
}
},
"type": "text"
}
],
"knowledge_cutoff": null,
"links": \{
"details": "/api/v1/models/openai/text-embedding-3-small/endpoints"
},
"name": "Text Embedding 3 Small",
"output_modalities": [
\{
"supported_parameters": \{
"encoding_format": \{
"type": "enum",
"values": [
"float",
"base64"
]
}
},
"type": "embeddings"
}
],
"per_request_limits": null,
"pricing": \{
"completion": "0",
"image": "0",
"prompt": "0.00000002",
"request": "0"
},
"supported_parameters": [],
"supported_voices": null,
"top_provider": \{
"context_length": 8192,
"is_moderated": false,
"max_completion_tokens": null
}
}
],
"links": \{
"next": null
},
"total_count": 1
} | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `result` | [components.EmbeddingsModelsListResponse](../components/embeddingsmodelslistresponse.mdx) | ✔️ | N/A | \{
"data": [
\{
"architecture": \{
"input_modalities": [
"text"
],
"instruct_type": null,
"modality": "text-\u003eembeddings",
"output_modalities": [
"embeddings"
],
"tokenizer": "GPT"
},
"canonical_slug": "openai/text-embedding-3-small",
"context_length": 8192,
"created": 1692901234,
"default_parameters": null,
"description": "OpenAI text embedding model optimized for performance.",
"endpoints": [
"/api/v1/embeddings"
],
"expiration_date": null,
"id": "openai/text-embedding-3-small",
"input_modalities": [
\{
"supported_inputs": \{
"max_context_length": \{
"unit": "token",
"value": 8192
}
},
"type": "text"
}
],
"is_open_weight": false,
"knowledge_cutoff": null,
"links": \{
"details": "/api/v1/models/openai/text-embedding-3-small/endpoints"
},
"name": "Text Embedding 3 Small",
"output_modalities": [
\{
"supported_parameters": \{
"encoding_format": \{
"type": "enum",
"values": [
"float",
"base64"
]
}
},
"type": "embeddings"
}
],
"per_request_limits": null,
"pricing": \{
"completion": "0",
"image": "0",
"prompt": "0.00000002",
"request": "0"
},
"supported_parameters": [],
"supported_voices": null,
"top_provider": \{
"context_length": 8192,
"is_moderated": false,
"max_completion_tokens": null
}
}
],
"links": \{
"next": null
},
"total_count": 1
} | \ No newline at end of file diff --git a/docs/operations/listmodelsuserresponse.mdx b/docs/operations/listmodelsuserresponse.mdx index 397cfe897..37d3fb094 100644 --- a/docs/operations/listmodelsuserresponse.mdx +++ b/docs/operations/listmodelsuserresponse.mdx @@ -4,6 +4,6 @@ title: "ListModelsUserResponse" ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `result` | [components.ModelsListResponse](../components/modelslistresponse.mdx) | ✔️ | N/A | \{
"data": [
\{
"architecture": \{
"input_modalities": [
"text"
],
"instruct_type": "chatml",
"modality": "text-\u003etext",
"output_modalities": [
"text"
],
"tokenizer": "GPT"
},
"canonical_slug": "openai/gpt-4",
"context_length": 8192,
"created": 1692901234,
"default_parameters": null,
"description": "GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.",
"expiration_date": null,
"id": "openai/gpt-4",
"knowledge_cutoff": null,
"links": \{
"details": "/api/v1/models/openai/gpt-4/endpoints"
},
"name": "GPT-4",
"per_request_limits": null,
"pricing": \{
"completion": "0.00006",
"image": "0",
"prompt": "0.00003",
"request": "0"
},
"supported_parameters": [
"temperature",
"top_p",
"max_tokens",
"frequency_penalty",
"presence_penalty"
],
"supported_voices": null,
"top_provider": \{
"context_length": 8192,
"is_moderated": true,
"max_completion_tokens": 4096
}
}
],
"links": \{
"next": "/api/v1/models?offset=500\u0026limit=500"
},
"total_count": 150
} | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `result` | [components.ModelsListResponse](../components/modelslistresponse.mdx) | ✔️ | N/A | \{
"data": [
\{
"architecture": \{
"input_modalities": [
"text"
],
"instruct_type": "chatml",
"modality": "text-\u003etext",
"output_modalities": [
"text"
],
"tokenizer": "GPT"
},
"canonical_slug": "openai/gpt-4",
"context_length": 8192,
"created": 1692901234,
"default_parameters": null,
"description": "GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.",
"endpoints": [
"/api/v1/chat/completions",
"/api/v1/completions",
"/api/v1/messages",
"/api/v1/responses"
],
"expiration_date": null,
"id": "openai/gpt-4",
"is_open_weight": false,
"knowledge_cutoff": null,
"links": \{
"details": "/api/v1/models/openai/gpt-4/endpoints"
},
"name": "GPT-4",
"per_request_limits": null,
"pricing": \{
"completion": "0.00006",
"image": "0",
"prompt": "0.00003",
"request": "0"
},
"supported_parameters": [
"temperature",
"top_p",
"max_tokens"
],
"supported_voices": null,
"top_provider": \{
"context_length": 8192,
"is_moderated": true,
"max_completion_tokens": 4096
}
}
],
"links": \{
"next": "/api/v1/models?offset=500\u0026limit=500"
},
"total_count": 150
} | \ No newline at end of file diff --git a/docs/operations/listrerankmodelsresponse.mdx b/docs/operations/listrerankmodelsresponse.mdx index 1574186cb..005c551a1 100644 --- a/docs/operations/listrerankmodelsresponse.mdx +++ b/docs/operations/listrerankmodelsresponse.mdx @@ -4,6 +4,6 @@ title: "ListRerankModelsResponse" ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `result` | [components.RerankModelsListResponse](../components/rerankmodelslistresponse.mdx) | ✔️ | N/A | \{
"data": [
\{
"architecture": \{
"input_modalities": [
"text"
],
"instruct_type": "chatml",
"modality": "text-\u003etext",
"output_modalities": [
"text"
],
"tokenizer": "GPT"
},
"canonical_slug": "openai/gpt-4",
"context_length": 8192,
"created": 1692901234,
"default_parameters": null,
"description": "GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.",
"expiration_date": null,
"id": "openai/gpt-4",
"knowledge_cutoff": null,
"links": \{
"details": "/api/v1/models/openai/gpt-4/endpoints"
},
"name": "GPT-4",
"per_request_limits": null,
"pricing": \{
"completion": "0.00006",
"image": "0",
"prompt": "0.00003",
"request": "0"
},
"supported_parameters": [
"temperature",
"top_p",
"max_tokens",
"frequency_penalty",
"presence_penalty"
],
"supported_voices": null,
"top_provider": \{
"context_length": 8192,
"is_moderated": true,
"max_completion_tokens": 4096
}
}
],
"links": \{
"next": "/api/v1/models?offset=500\u0026limit=500"
},
"total_count": 150
} | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `result` | [components.RerankModelsListResponse](../components/rerankmodelslistresponse.mdx) | ✔️ | N/A | \{
"data": [
\{
"architecture": \{
"input_modalities": [
"text"
],
"instruct_type": "chatml",
"modality": "text-\u003etext",
"output_modalities": [
"text"
],
"tokenizer": "GPT"
},
"canonical_slug": "openai/gpt-4",
"context_length": 8192,
"created": 1692901234,
"default_parameters": null,
"description": "GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.",
"endpoints": [
"/api/v1/chat/completions",
"/api/v1/completions",
"/api/v1/messages",
"/api/v1/responses"
],
"expiration_date": null,
"id": "openai/gpt-4",
"is_open_weight": false,
"knowledge_cutoff": null,
"links": \{
"details": "/api/v1/models/openai/gpt-4/endpoints"
},
"name": "GPT-4",
"per_request_limits": null,
"pricing": \{
"completion": "0.00006",
"image": "0",
"prompt": "0.00003",
"request": "0"
},
"supported_parameters": [
"temperature",
"top_p",
"max_tokens"
],
"supported_voices": null,
"top_provider": \{
"context_length": 8192,
"is_moderated": true,
"max_completion_tokens": 4096
}
}
],
"links": \{
"next": "/api/v1/models?offset=500\u0026limit=500"
},
"total_count": 150
} | \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 26b718ade..bae899908 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openrouter" -version = "1.3.236" +version = "1.3.237" 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 626f088e9..3a0b147cd 100644 --- a/src/openrouter/_version.py +++ b/src/openrouter/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "openrouter" -__version__: str = "1.3.236" +__version__: str = "1.3.237" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.950.13" -__user_agent__: str = "speakeasy-sdk/python 1.3.236 2.950.13 1.0.0 openrouter" +__user_agent__: str = "speakeasy-sdk/python 1.3.237 2.950.13 1.0.0 openrouter" try: if __package__ is not None: diff --git a/src/openrouter/components/embeddingsmodel.py b/src/openrouter/components/embeddingsmodel.py index 1349d4f68..d632ce85b 100644 --- a/src/openrouter/components/embeddingsmodel.py +++ b/src/openrouter/components/embeddingsmodel.py @@ -66,6 +66,8 @@ class EmbeddingsModelTypedDict(TypedDict): r"""The date after which the model may be removed. ISO 8601 date string (YYYY-MM-DD) or null if no expiration.""" hugging_face_id: NotRequired[Nullable[str]] r"""Hugging Face model identifier, if applicable""" + is_open_weight: NotRequired[bool] + r"""Whether the model has publicly released weights. A preset reports true only when every listed model is known to be open-weight; routing presets report false.""" knowledge_cutoff: NotRequired[Nullable[str]] r"""The date up to which the model was trained on data. ISO 8601 date string (YYYY-MM-DD) or null if unknown.""" reasoning: NotRequired[ModelReasoningTypedDict] @@ -136,6 +138,9 @@ class EmbeddingsModel(BaseModel): hugging_face_id: OptionalNullable[str] = UNSET r"""Hugging Face model identifier, if applicable""" + is_open_weight: Optional[bool] = None + r"""Whether the model has publicly released weights. A preset reports true only when every listed model is known to be open-weight; routing presets report false.""" + knowledge_cutoff: OptionalNullable[str] = UNSET r"""The date up to which the model was trained on data. ISO 8601 date string (YYYY-MM-DD) or null if unknown.""" @@ -157,6 +162,7 @@ def serialize_model(self, handler): "description", "expiration_date", "hugging_face_id", + "is_open_weight", "knowledge_cutoff", "reasoning", "input_modalities", diff --git a/src/openrouter/components/model.py b/src/openrouter/components/model.py index 2a48c8059..1f5a69770 100644 --- a/src/openrouter/components/model.py +++ b/src/openrouter/components/model.py @@ -64,6 +64,8 @@ class ModelTypedDict(TypedDict): r"""The date after which the model may be removed. ISO 8601 date string (YYYY-MM-DD) or null if no expiration.""" hugging_face_id: NotRequired[Nullable[str]] r"""Hugging Face model identifier, if applicable""" + is_open_weight: NotRequired[bool] + r"""Whether the model has publicly released weights. A preset reports true only when every listed model is known to be open-weight; routing presets report false.""" knowledge_cutoff: NotRequired[Nullable[str]] r"""The date up to which the model was trained on data. ISO 8601 date string (YYYY-MM-DD) or null if unknown.""" reasoning: NotRequired[ModelReasoningTypedDict] @@ -130,6 +132,9 @@ class Model(BaseModel): hugging_face_id: OptionalNullable[str] = UNSET r"""Hugging Face model identifier, if applicable""" + is_open_weight: Optional[bool] = None + r"""Whether the model has publicly released weights. A preset reports true only when every listed model is known to be open-weight; routing presets report false.""" + knowledge_cutoff: OptionalNullable[str] = UNSET r"""The date up to which the model was trained on data. ISO 8601 date string (YYYY-MM-DD) or null if unknown.""" @@ -145,6 +150,7 @@ def serialize_model(self, handler): "description", "expiration_date", "hugging_face_id", + "is_open_weight", "knowledge_cutoff", "reasoning", ] diff --git a/src/openrouter/components/rerankmodel.py b/src/openrouter/components/rerankmodel.py index c366bc285..3e6f8e001 100644 --- a/src/openrouter/components/rerankmodel.py +++ b/src/openrouter/components/rerankmodel.py @@ -66,6 +66,8 @@ class RerankModelTypedDict(TypedDict): r"""The date after which the model may be removed. ISO 8601 date string (YYYY-MM-DD) or null if no expiration.""" hugging_face_id: NotRequired[Nullable[str]] r"""Hugging Face model identifier, if applicable""" + is_open_weight: NotRequired[bool] + r"""Whether the model has publicly released weights. A preset reports true only when every listed model is known to be open-weight; routing presets report false.""" knowledge_cutoff: NotRequired[Nullable[str]] r"""The date up to which the model was trained on data. ISO 8601 date string (YYYY-MM-DD) or null if unknown.""" reasoning: NotRequired[ModelReasoningTypedDict] @@ -136,6 +138,9 @@ class RerankModel(BaseModel): hugging_face_id: OptionalNullable[str] = UNSET r"""Hugging Face model identifier, if applicable""" + is_open_weight: Optional[bool] = None + r"""Whether the model has publicly released weights. A preset reports true only when every listed model is known to be open-weight; routing presets report false.""" + knowledge_cutoff: OptionalNullable[str] = UNSET r"""The date up to which the model was trained on data. ISO 8601 date string (YYYY-MM-DD) or null if unknown.""" @@ -157,6 +162,7 @@ def serialize_model(self, handler): "description", "expiration_date", "hugging_face_id", + "is_open_weight", "knowledge_cutoff", "reasoning", "input_modalities", diff --git a/uv.lock b/uv.lock index 990c2f4ae..5b7c07da8 100644 --- a/uv.lock +++ b/uv.lock @@ -231,7 +231,7 @@ wheels = [ [[package]] name = "openrouter" -version = "1.3.236" +version = "1.3.237" source = { editable = "." } dependencies = [ { name = "httpcore" },