From d53c91ba25362e4d6dc5d9b1d5aa29b866139cea Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 1 Dec 2026 16:28:59 +0000 Subject: [PATCH] ## Python SDK Changes: * `open_router.images.list_models()`: `response.data[]` **Changed** * `open_router.images.list_model_endpoints()`: `response.endpoints[]` **Changed** * `open_router.organization.list_members()`: `response.data[].external_id` **Added** * `open_router.video_generation.list_videos_models()`: `response.data[]` **Changed** --- .speakeasy/gen.lock | 505 ++++++-- .speakeasy/gen.yaml | 2 +- .speakeasy/out.openapi.yaml | 1051 +++++++++++++++++ .speakeasy/workflow.lock | 10 +- RELEASES.md | 12 +- docs/components/default.mdx | 24 + docs/components/detaillevels.mdx | 10 + docs/components/imageendpoint.mdx | 2 + docs/components/imagemodellistitem.mdx | 2 + docs/components/imagepricingentry.mdx | 12 +- .../{unit.mdx => imagepricingentryunit.mdx} | 6 +- docs/components/maxcontentsizebytes1.mdx | 10 + docs/components/maxcontentsizebytes2.mdx | 10 + docs/components/maxcontentsizebytes3.mdx | 10 + docs/components/maxcontentsizebytes4.mdx | 10 + docs/components/maxcontentsizebytesunit1.mdx | 23 + docs/components/maxcontentsizebytesunit2.mdx | 23 + docs/components/maxcontentsizebytesunit3.mdx | 23 + docs/components/maxcontentsizebytesunit4.mdx | 23 + docs/components/maxcontextlength.mdx | 10 + docs/components/maxcontextlengthunit.mdx | 23 + docs/components/maxdurationseconds1.mdx | 10 + docs/components/maxdurationseconds2.mdx | 10 + docs/components/maxdurationsecondsunit1.mdx | 23 + docs/components/maxdurationsecondsunit2.mdx | 23 + docs/components/maxlength.mdx | 10 + docs/components/maxpromptlength.mdx | 10 + docs/components/maxpromptlengthunit.mdx | 23 + docs/components/modelinputmodalityv2.mdx | 36 + docs/components/modelinputmodalityv2audio.mdx | 11 + docs/components/modelinputmodalityv2file.mdx | 11 + .../modelinputmodalityv2formats1.mdx | 10 + .../modelinputmodalityv2formats2.mdx | 10 + .../modelinputmodalityv2formats3.mdx | 10 + .../modelinputmodalityv2formats4.mdx | 10 + docs/components/modelinputmodalityv2image.mdx | 11 + .../modelinputmodalityv2references1.mdx | 12 + .../modelinputmodalityv2references2.mdx | 12 + docs/components/modelinputmodalityv2role.mdx | 10 + .../modelinputmodalityv2supportedinputs1.mdx | 10 + .../modelinputmodalityv2supportedinputs2.mdx | 14 + .../modelinputmodalityv2supportedinputs3.mdx | 12 + .../modelinputmodalityv2supportedinputs4.mdx | 12 + .../modelinputmodalityv2supportedinputs5.mdx | 12 + docs/components/modelinputmodalityv2text.mdx | 11 + .../modelinputmodalityv2typeaudio.mdx | 15 + .../modelinputmodalityv2typefile.mdx | 15 + .../modelinputmodalityv2typeimage.mdx | 15 + .../modelinputmodalityv2typetext.mdx | 15 + .../modelinputmodalityv2typevideo.mdx | 15 + docs/components/modelinputmodalityv2video.mdx | 11 + docs/components/modeloutputmodalityv2.mdx | 60 + .../components/modeloutputmodalityv2audio.mdx | 12 + .../modeloutputmodalityv2decisions.mdx | 13 + .../modeloutputmodalityv2embeddings.mdx | 11 + .../components/modeloutputmodalityv2image.mdx | 12 + .../modeloutputmodalityv2rerank.mdx | 11 + .../modeloutputmodalityv2speech.mdx | 12 + docs/components/modeloutputmodalityv2text.mdx | 13 + .../modeloutputmodalityv2transcription.mdx | 12 + .../modeloutputmodalityv2typeaudio.mdx | 15 + .../modeloutputmodalityv2typeimage.mdx | 15 + .../modeloutputmodalityv2typespeech.mdx | 15 + .../modeloutputmodalityv2typetext.mdx | 15 + .../modeloutputmodalityv2typevideo.mdx | 15 + docs/components/modeloutputmodalityv2unit.mdx | 23 + .../components/modeloutputmodalityv2video.mdx | 12 + docs/components/parameterdescriptor.mdx | 20 + docs/components/parameterdescriptortype.mdx | 25 + docs/components/parameterdescriptorunit.mdx | 23 + docs/components/parameterdescriptorvalue.mdx | 18 + .../{references.mdx => referencesenum.mdx} | 6 +- docs/components/sources1.mdx | 10 + docs/components/sources2.mdx | 10 + docs/components/sources3.mdx | 10 + docs/components/sources4.mdx | 10 + docs/components/speechinputmodalityaudio.mdx | 4 +- docs/components/speechinputmodalityimage.mdx | 8 +- ...> speechinputmodalitysupportedinputs1.mdx} | 2 +- ...> speechinputmodalitysupportedinputs2.mdx} | 2 +- .../speechinputmodalitytypeaudio.mdx | 15 + docs/components/speechvoiceparameter.mdx | 2 +- docs/components/supportedinputstype1.mdx | 15 + docs/components/supportedinputstype2.mdx | 15 + docs/components/supportedinputstype3.mdx | 15 + docs/components/supportedinputstype4.mdx | 15 + .../supportedinputstypeinteger1.mdx | 15 + .../supportedinputstypeinteger2.mdx | 15 + docs/components/typeaudio.mdx | 15 - docs/components/typedecisions.mdx | 15 + docs/components/typeembeddings.mdx | 15 + docs/components/typererank.mdx | 15 + docs/components/typetranscription.mdx | 15 + docs/components/unitinteger1.mdx | 23 + docs/components/unitinteger2.mdx | 23 + docs/components/valueenum1.mdx | 22 + docs/components/valueenum10.mdx | 20 + docs/components/valueenum2.mdx | 22 + docs/components/valueenum3.mdx | 21 + docs/components/valueenum4.mdx | 20 + docs/components/valueenum5.mdx | 20 + docs/components/valueenum6.mdx | 20 + docs/components/valueenum7.mdx | 20 + docs/components/valueenum8.mdx | 20 + docs/components/valueenum9.mdx | 24 + docs/components/videomodel.mdx | 40 +- .../listorganizationmembersdata.mdx | 15 +- pyproject.toml | 2 +- src/openrouter/_version.py | 4 +- src/openrouter/components/__init__.py | 453 ++++++- src/openrouter/components/imageendpoint.py | 29 +- .../components/imagemodellistitem.py | 35 +- .../components/imagepricingentry.py | 6 +- .../components/modelinputmodalityv2.py | 1037 ++++++++++++++++ .../components/modeloutputmodalityv2.py | 440 +++++++ .../components/parameterdescriptor.py | 112 ++ .../components/speechinputmodality.py | 22 +- .../components/speechvoiceparameter.py | 6 +- src/openrouter/components/videomodel.py | 22 +- .../operations/listorganizationmembers.py | 5 + uv.lock | 2 +- 121 files changed, 5105 insertions(+), 186 deletions(-) create mode 100644 docs/components/default.mdx create mode 100644 docs/components/detaillevels.mdx rename docs/components/{unit.mdx => imagepricingentryunit.mdx} (65%) create mode 100644 docs/components/maxcontentsizebytes1.mdx create mode 100644 docs/components/maxcontentsizebytes2.mdx create mode 100644 docs/components/maxcontentsizebytes3.mdx create mode 100644 docs/components/maxcontentsizebytes4.mdx create mode 100644 docs/components/maxcontentsizebytesunit1.mdx create mode 100644 docs/components/maxcontentsizebytesunit2.mdx create mode 100644 docs/components/maxcontentsizebytesunit3.mdx create mode 100644 docs/components/maxcontentsizebytesunit4.mdx create mode 100644 docs/components/maxcontextlength.mdx create mode 100644 docs/components/maxcontextlengthunit.mdx create mode 100644 docs/components/maxdurationseconds1.mdx create mode 100644 docs/components/maxdurationseconds2.mdx create mode 100644 docs/components/maxdurationsecondsunit1.mdx create mode 100644 docs/components/maxdurationsecondsunit2.mdx create mode 100644 docs/components/maxlength.mdx create mode 100644 docs/components/maxpromptlength.mdx create mode 100644 docs/components/maxpromptlengthunit.mdx create mode 100644 docs/components/modelinputmodalityv2.mdx create mode 100644 docs/components/modelinputmodalityv2audio.mdx create mode 100644 docs/components/modelinputmodalityv2file.mdx create mode 100644 docs/components/modelinputmodalityv2formats1.mdx create mode 100644 docs/components/modelinputmodalityv2formats2.mdx create mode 100644 docs/components/modelinputmodalityv2formats3.mdx create mode 100644 docs/components/modelinputmodalityv2formats4.mdx create mode 100644 docs/components/modelinputmodalityv2image.mdx create mode 100644 docs/components/modelinputmodalityv2references1.mdx create mode 100644 docs/components/modelinputmodalityv2references2.mdx create mode 100644 docs/components/modelinputmodalityv2role.mdx create mode 100644 docs/components/modelinputmodalityv2supportedinputs1.mdx create mode 100644 docs/components/modelinputmodalityv2supportedinputs2.mdx create mode 100644 docs/components/modelinputmodalityv2supportedinputs3.mdx create mode 100644 docs/components/modelinputmodalityv2supportedinputs4.mdx create mode 100644 docs/components/modelinputmodalityv2supportedinputs5.mdx create mode 100644 docs/components/modelinputmodalityv2text.mdx create mode 100644 docs/components/modelinputmodalityv2typeaudio.mdx create mode 100644 docs/components/modelinputmodalityv2typefile.mdx create mode 100644 docs/components/modelinputmodalityv2typeimage.mdx create mode 100644 docs/components/modelinputmodalityv2typetext.mdx create mode 100644 docs/components/modelinputmodalityv2typevideo.mdx create mode 100644 docs/components/modelinputmodalityv2video.mdx create mode 100644 docs/components/modeloutputmodalityv2.mdx create mode 100644 docs/components/modeloutputmodalityv2audio.mdx create mode 100644 docs/components/modeloutputmodalityv2decisions.mdx create mode 100644 docs/components/modeloutputmodalityv2embeddings.mdx create mode 100644 docs/components/modeloutputmodalityv2image.mdx create mode 100644 docs/components/modeloutputmodalityv2rerank.mdx create mode 100644 docs/components/modeloutputmodalityv2speech.mdx create mode 100644 docs/components/modeloutputmodalityv2text.mdx create mode 100644 docs/components/modeloutputmodalityv2transcription.mdx create mode 100644 docs/components/modeloutputmodalityv2typeaudio.mdx create mode 100644 docs/components/modeloutputmodalityv2typeimage.mdx create mode 100644 docs/components/modeloutputmodalityv2typespeech.mdx create mode 100644 docs/components/modeloutputmodalityv2typetext.mdx create mode 100644 docs/components/modeloutputmodalityv2typevideo.mdx create mode 100644 docs/components/modeloutputmodalityv2unit.mdx create mode 100644 docs/components/modeloutputmodalityv2video.mdx create mode 100644 docs/components/parameterdescriptor.mdx create mode 100644 docs/components/parameterdescriptortype.mdx create mode 100644 docs/components/parameterdescriptorunit.mdx create mode 100644 docs/components/parameterdescriptorvalue.mdx rename docs/components/{references.mdx => referencesenum.mdx} (63%) create mode 100644 docs/components/sources1.mdx create mode 100644 docs/components/sources2.mdx create mode 100644 docs/components/sources3.mdx create mode 100644 docs/components/sources4.mdx rename docs/components/{supportedinputs1.mdx => speechinputmodalitysupportedinputs1.mdx} (96%) rename docs/components/{supportedinputs2.mdx => speechinputmodalitysupportedinputs2.mdx} (98%) create mode 100644 docs/components/speechinputmodalitytypeaudio.mdx create mode 100644 docs/components/supportedinputstype1.mdx create mode 100644 docs/components/supportedinputstype2.mdx create mode 100644 docs/components/supportedinputstype3.mdx create mode 100644 docs/components/supportedinputstype4.mdx create mode 100644 docs/components/supportedinputstypeinteger1.mdx create mode 100644 docs/components/supportedinputstypeinteger2.mdx delete mode 100644 docs/components/typeaudio.mdx create mode 100644 docs/components/typedecisions.mdx create mode 100644 docs/components/typeembeddings.mdx create mode 100644 docs/components/typererank.mdx create mode 100644 docs/components/typetranscription.mdx create mode 100644 docs/components/unitinteger1.mdx create mode 100644 docs/components/unitinteger2.mdx create mode 100644 docs/components/valueenum1.mdx create mode 100644 docs/components/valueenum10.mdx create mode 100644 docs/components/valueenum2.mdx create mode 100644 docs/components/valueenum3.mdx create mode 100644 docs/components/valueenum4.mdx create mode 100644 docs/components/valueenum5.mdx create mode 100644 docs/components/valueenum6.mdx create mode 100644 docs/components/valueenum7.mdx create mode 100644 docs/components/valueenum8.mdx create mode 100644 docs/components/valueenum9.mdx create mode 100644 src/openrouter/components/modelinputmodalityv2.py create mode 100644 src/openrouter/components/modeloutputmodalityv2.py create mode 100644 src/openrouter/components/parameterdescriptor.py diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index c00bc12e0..c4e149a44 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: 010d34af1d32521f55e8b1f7ca7e4f13 + docChecksum: 62e79d33460be6f895c8279c5dab694d docVersion: 1.0.0 speakeasyVersion: 1.803.2 generationVersion: 2.950.13 - releaseVersion: 1.3.220 - configChecksum: 572eed43218142e1955bd7234958dd66 + releaseVersion: 1.3.221 + configChecksum: 919cb7cf8a9fed18e3c5f3d11ebe8d22 repoURL: https://github.com/OpenRouterTeam/python-sdk.git installationURL: https://github.com/OpenRouterTeam/python-sdk.git published: true persistentEdits: - generation_id: ed4a4181-7748-452c-9f4a-b99e627d4c9f - pristine_commit_hash: 21fd04c578def1bb5d5c502b04f30aad728a94c6 - pristine_tree_hash: 4f04c46f86cf23516fe099c372836982d82378cd + generation_id: 73dd1646-9619-4ee6-938e-4e5921f05df0 + pristine_commit_hash: 5f1afca572e00380e737415a884488637b794750 + pristine_tree_hash: 7a5fd61338e2832d33b3e4853944ed6a126fe7cd features: python: acceptHeaders: 3.0.0 @@ -3202,6 +3202,10 @@ trackedFiles: id: e891a0a6dc46 last_write_checksum: sha1:83962f8dc7c6f9567577688291f9e05ac4b16c9a pristine_git_object: b5a06cd5e6e7e3c83f6988e999dcf343763e0183 + docs/components/default.mdx: + id: 1588989c5d72 + last_write_checksum: sha1:b9465deb3974cd32f7a3a1499de6d93004fd26ac + pristine_git_object: 379d509d8bcf6ba8d4cbd811754ec88697894904 docs/components/defaulteffort.mdx: id: 13b9d543d674 last_write_checksum: sha1:3a64d36689446d36d4bd1ab08f85f16c0aac2c2e @@ -3286,6 +3290,10 @@ trackedFiles: id: 6b62c9e33dc0 last_write_checksum: sha1:987ae3f3f2ee50bcb625d38d4a1d3c65c157b000 pristine_git_object: dab13e7529c42dfe9f9b5629a7751ff2ca7583ea + docs/components/detaillevels.mdx: + id: 3769dea05bfe + last_write_checksum: sha1:f724d1bcdb43df5a753c23035ce87a57291bda31 + pristine_git_object: 3e161fe779487dbea4b730a465496b7d30f4159e docs/components/easyinputmessage.mdx: id: 71bd8b4dc7d7 last_write_checksum: sha1:5a5d2d5e11ac475c359e4fbdac23ab09b55cf854 @@ -4336,8 +4344,8 @@ trackedFiles: pristine_git_object: a470ef90ddcfdf10de7f040ffc8aee37d634306d docs/components/imageendpoint.mdx: id: d7d1514fbcd6 - last_write_checksum: sha1:a73e4a0ffacda79d85066d066e5b76b2e4ebafe4 - pristine_git_object: a3be377ed7741000109ab55c9d7fd796adb62203 + last_write_checksum: sha1:aa430d0cbe9e25d98c05942834aa0c77d1833821 + pristine_git_object: 564ab03c845baf0833fd352cb5dc193f16269239 docs/components/imagegencallcompletedevent.mdx: id: 16f72f044ccc last_write_checksum: sha1:910bef169bc44743800d6586e780a714020a08c2 @@ -4576,8 +4584,8 @@ trackedFiles: pristine_git_object: f38db1dbb4af5953ae3df663085063a75327cf39 docs/components/imagemodellistitem.mdx: id: 84bc3a818e8c - last_write_checksum: sha1:3b4a57c6a5010963e900d438a106e9c9a0c1c5c5 - pristine_git_object: a3cda89f07c8dd44f4633f740ea243aa86f31742 + last_write_checksum: sha1:b565140019992ba9da18a24db7cfaec04aa45238 + pristine_git_object: d9863fbcc4c786b506e1edc84f4d042b777c16ee docs/components/imagemodelslistresponse.mdx: id: aa9f0050f23b last_write_checksum: sha1:8099bfd0c4b277d13ff6ecefd54aa8421bd47d71 @@ -4588,8 +4596,12 @@ trackedFiles: pristine_git_object: 23c58b010bc9f2311ee1e71109e6c4cde5ca03a0 docs/components/imagepricingentry.mdx: id: 349c100297ec - last_write_checksum: sha1:cf829715eca44c85efba5369b1db72852c1b394b - pristine_git_object: 07346965f68ab7d2a25257575d01dbe27d3140a3 + last_write_checksum: sha1:28cb7c27f02dcea7bdf011bbf50ed93585c97817 + pristine_git_object: 528d4c8d1215fd2cf9ea01e93889781e05bec3d2 + docs/components/imagepricingentryunit.mdx: + id: 2bdfec38678a + last_write_checksum: sha1:d25b33f07ec35335d7eb633068b1e2a6ed19c8b6 + pristine_git_object: 971937f8ab8f0b6a9ede9dcd2fc7fb5904692d32 docs/components/imagestreamingresponse.mdx: id: 69e8d792ed0e last_write_checksum: sha1:178728e31f6afc5b41d04cc8f61f77b9b99d18aa @@ -5062,10 +5074,78 @@ trackedFiles: id: 581f981d1b56 last_write_checksum: sha1:74c04f63cf00b7eada4b07a21a1e836ce12a94bd pristine_git_object: 22a9bebf0f083c451dc5511c37bfa305227c2362 + docs/components/maxcontentsizebytes1.mdx: + id: 62c341e4888a + last_write_checksum: sha1:94796d61d095dd04b529f82a5b98dd5c51fa2663 + pristine_git_object: bccef57575ce3f391c6f6cde9449e9660042bb08 + docs/components/maxcontentsizebytes2.mdx: + id: 1e8ac785fb93 + last_write_checksum: sha1:db9581692ebf8d9e91a33c6b84a3d7117641e8e2 + pristine_git_object: a3a778c574b2f019d034c87e65de394221bda014 + docs/components/maxcontentsizebytes3.mdx: + id: 7de2c8ca49e4 + last_write_checksum: sha1:666cc965b3ccb9c8198e9edbdc614d6f8c14b57d + pristine_git_object: 45605e959b7f8cd223063c8753a2029570160610 + docs/components/maxcontentsizebytes4.mdx: + id: 9f482e5173af + last_write_checksum: sha1:511cc7fdc4e40401a978809d7388d177ff96793f + pristine_git_object: 4dd2097a92a2b8f5ce802bbfe627499e47a83f6d + docs/components/maxcontentsizebytesunit1.mdx: + id: 8c053ac8982c + last_write_checksum: sha1:8c465c3ba74611209d07f3fd5420b8838a91621e + pristine_git_object: fb9d446888cac120d1d6e8d2722c3ffbcfdaf903 + docs/components/maxcontentsizebytesunit2.mdx: + id: 87978b1faf72 + last_write_checksum: sha1:6aafd7402ecdcfea055541a955ecc1c922ac9a71 + pristine_git_object: f11305ab17d7f8590599f0b3727d95bde2c3b540 + docs/components/maxcontentsizebytesunit3.mdx: + id: 1749dc566ff1 + last_write_checksum: sha1:249ccaba853580939d661726840acbee44b7fb64 + pristine_git_object: ca27deb2c7fceaeb7ae7b58c3c79a7a0a8b4c4d2 + docs/components/maxcontentsizebytesunit4.mdx: + id: b775a015f9ed + last_write_checksum: sha1:0f6a614f098f63b90b1c0bf6484763551f54fa82 + pristine_git_object: fe252e6a8172394bf7dadc04eed9b6b2a5e0f8c5 + docs/components/maxcontextlength.mdx: + id: fa45e830aad2 + last_write_checksum: sha1:2a1c4a577e2fcfa96a8606e25e750d808e2843a9 + pristine_git_object: 160335b671d77683b956008197b1225647247b9d + docs/components/maxcontextlengthunit.mdx: + id: d72529614005 + last_write_checksum: sha1:e2fc468efdaa438b52f60ce5cc9190e17351eb08 + pristine_git_object: 02a7688595e343ff5062093ec08545d4e8725bfb + docs/components/maxdurationseconds1.mdx: + id: 3f54800e3623 + last_write_checksum: sha1:2cf48f45c4c166367fde22a313ef564b979ae62e + pristine_git_object: 8d60a3ac549394202caec0faec48e263c67e91d3 + docs/components/maxdurationseconds2.mdx: + id: e7aec61f1135 + last_write_checksum: sha1:6d37998a4c4f16a3e9c8fee077fc499448abae49 + pristine_git_object: 9d9fb2c1cb59cd0baab9def8b90dee300c23f88e + docs/components/maxdurationsecondsunit1.mdx: + id: e95f37f99763 + last_write_checksum: sha1:d64fff5be5bbde3eb256b7e281677f4001f6cb0f + pristine_git_object: d4eb148b94d23b4ce131f4e1606a54b8bf922f3d + docs/components/maxdurationsecondsunit2.mdx: + id: 381d7972109f + last_write_checksum: sha1:04cf285af3d8afbcca3ca51754afcf1febeba046 + pristine_git_object: 1349bc693b11b5030b91b16ef2e1c38e4707731c + docs/components/maxlength.mdx: + id: 0cc7abf87172 + last_write_checksum: sha1:50bd657038906089a3da8ad436ef841b9810273b + pristine_git_object: 9a96148859069655fb6425ff10baa8082d201737 docs/components/maxprice.mdx: id: 4c021ec1bf65 last_write_checksum: sha1:8b03057412bbcc24b2a25c70b81941f209c75553 pristine_git_object: 2e70934f475116a41c3102803a2465f258e93816 + docs/components/maxpromptlength.mdx: + id: ebb25d4aad8a + last_write_checksum: sha1:87595ca36dc731b23f3cccd15c692cf121bf9169 + pristine_git_object: f1448dee1b7b61f1d2b6e92ad1eac8dfca1de0c2 + docs/components/maxpromptlengthunit.mdx: + id: 08862cef1e4e + last_write_checksum: sha1:768b9c204673ba42a458b932fd0119e42c05ea68 + pristine_git_object: 17b4a36ea28209f35bcb776106d6ba86f31e8a12 docs/components/mcpapprovalrequestitem.mdx: id: a77961ecf93d last_write_checksum: sha1:7809c66d6399509d6c03cc4d474ca13c2cdd8b0e @@ -5686,10 +5766,166 @@ trackedFiles: id: 8f246164d34c last_write_checksum: sha1:2954097c66c1dd56fa0440a501630275a6cfebea pristine_git_object: f5c67b141d1a889f0c71f5bb9cb92e52ee3fbc79 + docs/components/modelinputmodalityv2.mdx: + id: 2406f862f600 + last_write_checksum: sha1:3f5b6387c708766e5c70cadc3f2bd9c212b61659 + pristine_git_object: 04bc6552454abb2803088adf69b1672a2016bce4 + docs/components/modelinputmodalityv2audio.mdx: + id: 19a8f4d67e8a + last_write_checksum: sha1:63869e374407ab490afea75a314d49ddf9481726 + pristine_git_object: fc7398d5b713fc68f7d647c138daf03b82fbcd14 + docs/components/modelinputmodalityv2file.mdx: + id: 8b54ff839ff3 + last_write_checksum: sha1:e27a225a2967ddee2f963f591bdac3d525c04da9 + pristine_git_object: 7e2f6b72b0b19fae7e76926c42e3a98777ed80c2 + docs/components/modelinputmodalityv2formats1.mdx: + id: 9bf0c141144d + last_write_checksum: sha1:6e05c78bd40b22a8569cf21e02d324122f1847f7 + pristine_git_object: 7500aed39f3d7c4c248615b9f64a366d5eaefdee + docs/components/modelinputmodalityv2formats2.mdx: + id: e686b20f22e6 + last_write_checksum: sha1:bd422086599193d6fb094055282f4cace6922a1e + pristine_git_object: f85a9b78bb7c02a1ecbad8ba7a8e4b71cba34d1d + docs/components/modelinputmodalityv2formats3.mdx: + id: 6b0bd80668ea + last_write_checksum: sha1:d322c296c6aa38b2483c52300af595529ead198e + pristine_git_object: b72d4f2183d74c8b27432d0b4d7551f5f55d9bba + docs/components/modelinputmodalityv2formats4.mdx: + id: 1c56c2cf9845 + last_write_checksum: sha1:aa1bb1220c711e7f7ddc90fe2b4e978750ef20b6 + pristine_git_object: 519167d51fd7c10403d35a79d1c460e75a3aee16 + docs/components/modelinputmodalityv2image.mdx: + id: b4f563b1dc05 + last_write_checksum: sha1:2ce0658e2a70a8bb5f10600666ea0349899bff66 + pristine_git_object: 011e294fa85796c8f422055fa2b8891fa501efd4 + docs/components/modelinputmodalityv2references1.mdx: + id: 9fc69c9cab1c + last_write_checksum: sha1:ee12d538f7532a11cdfd5884482b4b547743c079 + pristine_git_object: e8ffcbcd9e1fd80b8fe23386114dfc64082b3278 + docs/components/modelinputmodalityv2references2.mdx: + id: 5df25b5593c7 + last_write_checksum: sha1:c3b4c70fb68108123144c121670e5926c1c9db8c + pristine_git_object: b085129e641b16f12d06c932de5a301c9e2a9aec + docs/components/modelinputmodalityv2role.mdx: + id: 81258e900cb1 + last_write_checksum: sha1:3158d801c879c6844260e463e679c3590b8765dc + pristine_git_object: 02aba1564199d764522492ac20eaf889f2c9cdf3 + docs/components/modelinputmodalityv2supportedinputs1.mdx: + id: b9e191a3fb51 + last_write_checksum: sha1:85373ab95653d65ba18a940435249ecb62bf6c44 + pristine_git_object: 764183868ff3e4af7e03218fbfaa7ca08e51e78b + docs/components/modelinputmodalityv2supportedinputs2.mdx: + id: a06d23222c5a + last_write_checksum: sha1:2034b27d7e7c775c7cdde7734c6da41969ead977 + pristine_git_object: 9e4af0e37199f042d1f44b51d09374466be8c550 + docs/components/modelinputmodalityv2supportedinputs3.mdx: + id: 470bff4c7f10 + last_write_checksum: sha1:4750dddeee857891ef6cced2f136dd0f2afdbd2b + pristine_git_object: a2019b0b2fe68ac733eccddcdbcef166c763c9a3 + docs/components/modelinputmodalityv2supportedinputs4.mdx: + id: a2ae0016a7c3 + last_write_checksum: sha1:9fe36209f2c35581bc8cf0370a2d8d7155fdc7a3 + pristine_git_object: 2291fd9ec702748dad6402f379c5f0ea4fe12335 + docs/components/modelinputmodalityv2supportedinputs5.mdx: + id: d1bf1b6cbb38 + last_write_checksum: sha1:f804cff327eafc44910a93a29315a8acdb54b419 + pristine_git_object: ece3a480f9b46ae8bcb415daad1c8632bf4d2cbf + docs/components/modelinputmodalityv2text.mdx: + id: d49bc74b079d + last_write_checksum: sha1:03f112f995bd9d7a3826cfca2979e48051dfef17 + pristine_git_object: 7c8e3738e5617f8407affda3d37bf83d4aabd090 + docs/components/modelinputmodalityv2typeaudio.mdx: + id: 4f0acbf966ae + last_write_checksum: sha1:ca43cf8c3a2889c9381dd6b9cd6445ad093ba9f2 + pristine_git_object: 55b86012c04df0cf87612fd8fa06fce76e29e37a + docs/components/modelinputmodalityv2typefile.mdx: + id: 5abacc4186ba + last_write_checksum: sha1:cb243a00a81133c78420875cefdbe0a34b9aa576 + pristine_git_object: a3b2d3893113e8c3904cf200076e952f48c3d169 + docs/components/modelinputmodalityv2typeimage.mdx: + id: 38b24e6f7eaa + last_write_checksum: sha1:86a7a5e88daf9d2bf102caa97be7467fbb737584 + pristine_git_object: 09061043af0a9ee1e6531dad6f4158367b4d2702 + docs/components/modelinputmodalityv2typetext.mdx: + id: "949218899742" + last_write_checksum: sha1:49dbbc640513287b1ab912859d64f3c6e1c2ee96 + pristine_git_object: 9353272f7dca1c60a82270295adb4cce1898be78 + docs/components/modelinputmodalityv2typevideo.mdx: + id: f255ad2e1356 + last_write_checksum: sha1:fbf0d72b03191f9228252f4feab5af690eacd00b + pristine_git_object: c367d1357f07f94e1ae4f7dc735aac7fc73ae92b + docs/components/modelinputmodalityv2video.mdx: + id: 4b79df2d5525 + last_write_checksum: sha1:b83b8b905a9ee6f52744931e86023902bcce66bd + pristine_git_object: eb0ec82f56aa9675f8b3bbfbdaca74574a4f5e34 docs/components/modellinks.mdx: id: 2b4568c3a642 last_write_checksum: sha1:9260a5f49ae9be8b113eb51ac94c057863b71682 pristine_git_object: ede564a99c1069b35867db162c8d9caa23e4eb24 + docs/components/modeloutputmodalityv2.mdx: + id: a65c7ac4ad10 + last_write_checksum: sha1:98efa44417a016ba8a5067eada59d64c49981b61 + pristine_git_object: 347e674914cfd533d7d9e2124805ae188828bdae + docs/components/modeloutputmodalityv2audio.mdx: + id: 3f954ff4b773 + last_write_checksum: sha1:1c28440b6b8ccfd674f79be6a193db8111f8a979 + pristine_git_object: 33120e04c155a013adae77be082de17ac16835c2 + docs/components/modeloutputmodalityv2decisions.mdx: + id: cbec404c9e21 + last_write_checksum: sha1:73467e01e6fe958c560673c892642d5b85b46ed4 + pristine_git_object: 50cc856ac380cb95cbd7520cfbb07f8ce201aca5 + docs/components/modeloutputmodalityv2embeddings.mdx: + id: fe4e0aa92d7b + last_write_checksum: sha1:50dc14ddae1f094114c2609a8b0c9a1dec3d707f + pristine_git_object: 882bdd462b488066e2f2ece253094289e7269d5f + docs/components/modeloutputmodalityv2image.mdx: + id: de5f139afbe5 + last_write_checksum: sha1:83a8255a4353928c0f1078e3e1d100c2c3f12d83 + pristine_git_object: 049ccd92753d94ab377894fde3a8595ba9b5bc6b + docs/components/modeloutputmodalityv2rerank.mdx: + id: e38f48325cb0 + last_write_checksum: sha1:64c847e392a8047b719779004460a335af53909f + pristine_git_object: 28917c39db2e342281f4f1fe5f632c73705a4ac5 + docs/components/modeloutputmodalityv2speech.mdx: + id: 61eec01c0224 + last_write_checksum: sha1:5d6dce51903b5948fe01a01cbfcbd0e983628ae5 + pristine_git_object: cae7c6ceefb6e02ff69217e93ca9a553eca4637e + docs/components/modeloutputmodalityv2text.mdx: + id: 22e3a88ee5fb + last_write_checksum: sha1:c2979f63381b51c6c2646bd9fe824004d8d2b24c + pristine_git_object: 067f80bd0c15dbf4ba05e03fa435efd1e42016e9 + docs/components/modeloutputmodalityv2transcription.mdx: + id: 97e4a1ac6ff2 + last_write_checksum: sha1:158e955bc447f7422b2c2fe7bf8eeb7cd7e5a4ba + pristine_git_object: d33eff69bd40e191d5ea1cef00fac6a94303ace9 + docs/components/modeloutputmodalityv2typeaudio.mdx: + id: fefc1e82f0b7 + last_write_checksum: sha1:3477dc9bc6919093078c2a193ecfe52348c30c03 + pristine_git_object: 718ccece5442bb90827859dba16c4a9e934f949a + docs/components/modeloutputmodalityv2typeimage.mdx: + id: c1df04cf194b + last_write_checksum: sha1:07432d236a70eb318ddfaa43f5969fc378162f4b + pristine_git_object: 54403fc22a7843096caecb7e44894b4cd4d93be8 + docs/components/modeloutputmodalityv2typespeech.mdx: + id: cfba6cdc3214 + last_write_checksum: sha1:8b9d9174dbb534294597b46f34fe0c7ac1b2e40e + pristine_git_object: a30493e6f8c9ae9a3e078f64d20193e11bb5c20b + docs/components/modeloutputmodalityv2typetext.mdx: + id: 4d0d6d22991a + last_write_checksum: sha1:aba23851c1e67fe205b5c5c9d8177e25b8c025d9 + pristine_git_object: 8cc1ecbec1a64cd3351c1a76936c66a3a312fe12 + docs/components/modeloutputmodalityv2typevideo.mdx: + id: f6903aead2de + last_write_checksum: sha1:42cae61b42f4bedf6d0d6a2277bf3e3f71378dca + pristine_git_object: bd6a36750d35b229be6fcb33c966d606ced3638e + docs/components/modeloutputmodalityv2unit.mdx: + id: 2efccb892af4 + last_write_checksum: sha1:72e1c34ca5132dafaab1ee3899e8ef6becf3d790 + pristine_git_object: b30df6a4083c287806938c7fea6fedfd2d4a8f66 + docs/components/modeloutputmodalityv2video.mdx: + id: 467b44cb2438 + last_write_checksum: sha1:56314122f41cd355e5beb916dcdc541ccfc23d46 + pristine_git_object: c73e82ad7f43c863e8988ea69648157b35338d5b docs/components/modelreasoning.mdx: id: ddcdfc7d47fc last_write_checksum: sha1:b103d2e0c9f07defee7858fc895b1251d7bb41bf @@ -7194,6 +7430,22 @@ trackedFiles: id: 732881d0420c last_write_checksum: sha1:a3f177903359e491d5f40e77f94149cff51f55d9 pristine_git_object: 451b7072eb3681f56555aa2d958ba320a213c466 + docs/components/parameterdescriptor.mdx: + id: ee09cc5f8b5d + last_write_checksum: sha1:d48c2b9b292570d8b37114dbcb1d312bd062435a + pristine_git_object: bd6b09b74e9fa7ef1a06ec8d2aada1e2dc595341 + docs/components/parameterdescriptortype.mdx: + id: 2554032bfe25 + last_write_checksum: sha1:a9b4ca80272816417b35e6494e60ae8f11814696 + pristine_git_object: 3b867d92e20797cb177f68b2e646c96153d68e1a + docs/components/parameterdescriptorunit.mdx: + id: 617864d9b6c9 + last_write_checksum: sha1:12868bf71fe496aad87aa9a282d74c70b77175d4 + pristine_git_object: f9108896c2b641fcdf4deaa417beec823ea746ce + docs/components/parameterdescriptorvalue.mdx: + id: d89fb3c285fe + last_write_checksum: sha1:97c10f89c4d7e61c8576c141ec1d3abc929f8ffc + pristine_git_object: 01e2ab89f30780606a604a5580469be9d44ae536 docs/components/parameters1.mdx: id: 5de8e94956c0 last_write_checksum: sha1:382f4471f8f1a7c8a627fec6e59ba39d7c399857 @@ -7770,10 +8022,10 @@ trackedFiles: id: 889d0f7c9bbf last_write_checksum: sha1:1091eddb7370abadf0cb898eb82439ea67932b82 pristine_git_object: 9724b529b0c42063dd25638672fbe19249b4520a - docs/components/references.mdx: - id: 8bd109185ec7 - last_write_checksum: sha1:f78eaf242fff1501118a6dfa03588f805e9a7862 - pristine_git_object: 02f51497f93aea4df991eca3a914ebac218496a8 + docs/components/referencesenum.mdx: + id: 9c648731728a + last_write_checksum: sha1:9de1fb0c8c68d1c7081ac4d40ea0b2285d702c56 + pristine_git_object: 15f88e0f7937dc305bec46d90ef3e127eb637c95 docs/components/refusal.mdx: id: a8fdf8720280 last_write_checksum: sha1:442c53119ab4c56872599d58b7298d8a7ad5e5f3 @@ -8190,6 +8442,22 @@ trackedFiles: id: d211413b56ad last_write_checksum: sha1:59a8227ad66e1f118d7786cb01dc08672daaffd4 pristine_git_object: 1a374857fc0740f1c3a3f20a5978b5172307d9f5 + docs/components/sources1.mdx: + id: 3200a3083938 + last_write_checksum: sha1:4f18b17e755a0391fe9fbe2857f7156d4059e19d + pristine_git_object: 7be5ad36c2d02290722aac9e43f96315e210e495 + docs/components/sources2.mdx: + id: 9a18da1cf9dc + last_write_checksum: sha1:6c31328bb01dfab1a6d1a3a9ce213ec913b33f72 + pristine_git_object: 8b6356e501f8e1d9f958ee2b864355ec84cd9c48 + docs/components/sources3.mdx: + id: b104439b94ee + last_write_checksum: sha1:a418f9dc2463c1755e26f95a3ea591300f22887d + pristine_git_object: c5e858950f535bfc8fabc860ebfd8b4f7cd12b36 + docs/components/sources4.mdx: + id: 0104ffbc14c8 + last_write_checksum: sha1:8615e99171d4e8b9a4b1adf6ee6357ab7e09ee38 + pristine_git_object: 92c18d42e4818628b637e91d304c2e33c427bfc8 docs/components/sourcetype.mdx: id: 77262fe83449 last_write_checksum: sha1:9f290862f832b501a96456226ff1f18431f74c50 @@ -8212,16 +8480,28 @@ trackedFiles: pristine_git_object: 73d08f72f390b4a8fbd9c8da60237c41a2522f24 docs/components/speechinputmodalityaudio.mdx: id: 67f693a9a81e - last_write_checksum: sha1:619df9ac1621c3529b4ab334363ad4fe3c2f89f5 - pristine_git_object: c5d5181628e63cc83a3b58a290ff7a72030fedb8 + last_write_checksum: sha1:d51c21c9a10941aef4c1eee27e61658814be4e7d + pristine_git_object: a6ad3370b8e40d37e83d05fbf604c9fb577a1fec docs/components/speechinputmodalityimage.mdx: id: 3b669f1d4e68 - last_write_checksum: sha1:9fd33249b3c9e4f1bd1440925fde2a38fc54c941 - pristine_git_object: 1e5957cbdaf78c17946e97436561a126fe35ad8f + last_write_checksum: sha1:635c466e7791734723d3692ef523c38184fd2bff + pristine_git_object: 2b5b9d917962daa2b44ebde2db225620ab2be5af + docs/components/speechinputmodalitysupportedinputs1.mdx: + id: df6463935e58 + last_write_checksum: sha1:43756406dadada57c56a3de17611d0e04da6cbde + pristine_git_object: 06b49bea897f8ea672ea46ed67517bd722a52dab + docs/components/speechinputmodalitysupportedinputs2.mdx: + id: acc111e79186 + last_write_checksum: sha1:9a4eb1759b618b88f7531c84215e6a1edc2c8270 + pristine_git_object: 79cc36d2d2449741618ff97eaf90f1867a6eb72b docs/components/speechinputmodalitytext.mdx: id: bc020871a6bd last_write_checksum: sha1:f6663f63dee7bcc357c1453fd3b7986921195dce pristine_git_object: 6c63a5e463dc2a29e007a5a828028f620510554e + docs/components/speechinputmodalitytypeaudio.mdx: + id: a6b9c9e39e13 + last_write_checksum: sha1:1d0f0c4c59aea4ddc1590e84e1bf8af8c3f8baa8 + pristine_git_object: aeb802f17dda2cc8ff41185534133c6a94d81b59 docs/components/speechinputmodalitytypeimage.mdx: id: 8bac859c79e5 last_write_checksum: sha1:ddd77d0ec56c3f7d5467eead7256900c74488c86 @@ -8348,8 +8628,8 @@ trackedFiles: pristine_git_object: 283b960830b3122c252035918afe8f1ef65b845f docs/components/speechvoiceparameter.mdx: id: 9040706385a9 - last_write_checksum: sha1:83c5a7d2c4b341b6035b3767ff4655dc919cc04e - pristine_git_object: ff2bc2e428ddd77d353b223b367a955391d46f90 + last_write_checksum: sha1:1e4bfa70bf448b57e865bb306aa0ab91de648ae6 + pristine_git_object: 352e527e856e758dd8d456f17f5726288b322223 docs/components/speechvoiceparametertype.mdx: id: aa0d5a2ff33d last_write_checksum: sha1:3e964c72370b48d3bc1e4a81648e7d8e4dfd3fc4 @@ -8598,14 +8878,30 @@ trackedFiles: id: f34dfb27d78f last_write_checksum: sha1:a979de72a67038af692d17cdb379b1d58e7ad0c8 pristine_git_object: 64a19c185569b50eb0a3363b472c1c28807493f2 - docs/components/supportedinputs1.mdx: - id: 5c7328c325cf - last_write_checksum: sha1:ec10c636a26ee8e43f7ffa8e7c348b4113686625 - pristine_git_object: f9553dd27688e22f25128da2f5ff1a238217a844 - docs/components/supportedinputs2.mdx: - id: 95aa9b0b814e - last_write_checksum: sha1:ecf0cb27ad72d91c5337f1e1d7c8f7bfeb601237 - pristine_git_object: 9e517d78bd7a8ddc889d33e4813952b6c76764fc + docs/components/supportedinputstype1.mdx: + id: 6e016f376fe0 + last_write_checksum: sha1:2be90c50c22ef68b5f5a8e42077b3c76af22ed29 + pristine_git_object: 97c2193aa76425e0d1e79aa5deac8723d79282fc + docs/components/supportedinputstype2.mdx: + id: 3153ce1dcfcf + last_write_checksum: sha1:5d298dde50d9c61353aa3e8256f3e428151d34c5 + pristine_git_object: 8c081ee14cf19d025fa73d0fcac75356d5169b57 + docs/components/supportedinputstype3.mdx: + id: 9156d9dd8536 + last_write_checksum: sha1:9bea4c7f2b77a2d17185317bb236a1b4a16b9ff4 + pristine_git_object: 3786caa7a69239e187291684d033239c809c4863 + docs/components/supportedinputstype4.mdx: + id: 007b033aa3dd + last_write_checksum: sha1:e1cc538494a6aa02bad4356b40422dab571ff5f2 + pristine_git_object: 2cb68bd224c18008f856c1c5b7e5c981df90fe34 + docs/components/supportedinputstypeinteger1.mdx: + id: 3a1b5417de44 + last_write_checksum: sha1:9a71e9fd2eb77acab01773390d9385c7c4b097e6 + pristine_git_object: 5c4f0a5e8475f0d2fdd931358eb022ed5d84e181 + docs/components/supportedinputstypeinteger2.mdx: + id: f5462a7d46c8 + last_write_checksum: sha1:10fab2020c9ac9047e3f255c9d2a39e1ab2f1af0 + pristine_git_object: 0f4b0d7a2ad807d667ba52d7e2ef1c64840bba4c docs/components/supportedresolution.mdx: id: 4dab32379c4d last_write_checksum: sha1:0df389c4bfbe7f608751121a9d93b6ddb5838b87 @@ -8974,10 +9270,6 @@ trackedFiles: id: b3bd6b0de96e last_write_checksum: sha1:7d4c65b6740216e057d36ea498509249d9c97354 pristine_git_object: 658b179115ff4db7f09c792544b5fae73a480520 - docs/components/typeaudio.mdx: - id: 1368b3bf77e0 - last_write_checksum: sha1:ce571623ad065e5504b139520cd6afcf728349fc - pristine_git_object: 9741986e74b7090247f827237f3900792050ba95 docs/components/typeavailable.mdx: id: 497347c01b9b last_write_checksum: sha1:05e7d05deed0895cb806dcccf13c8b5005d6331d @@ -9006,6 +9298,14 @@ trackedFiles: id: c8cdcd4734e2 last_write_checksum: sha1:d8090bb610e2fc9a15623871c329b3d200c5f571 pristine_git_object: 4d4a11a1921fafd66e06979f1d99a0c9693326e2 + docs/components/typedecisions.mdx: + id: 857bc0e28ede + last_write_checksum: sha1:174aa947c8c306e15404fbae6dee069a21b1faa3 + pristine_git_object: e00b45cdd7c74b575ed6e42a7451ca3114c5a54c + docs/components/typeembeddings.mdx: + id: c7de85a1b0da + last_write_checksum: sha1:2e9f55660e8c80593dcd8f3e01099e47ad4eabfe + pristine_git_object: c1981f6851540d62f2923e1a92fe9da115ab5e15 docs/components/typeenabled.mdx: id: 2107f66972cb last_write_checksum: sha1:47c1d819d31519b3d19a87f3389786d5c23206d4 @@ -9042,6 +9342,10 @@ trackedFiles: id: ee4bc5173ad7 last_write_checksum: sha1:d9595102607fda26c36801cfacda0c7eb1163757 pristine_git_object: 4ab38541a3a289ebf17e9d17610355c0028e04b0 + docs/components/typererank.mdx: + id: 35423e68375a + last_write_checksum: sha1:1c5e7995f5b77be491a401618af095702fbfac55 + pristine_git_object: fead11213bd631d11a3c07696c0b7e43769b69ae docs/components/typeskipped.mdx: id: 8f843e75d342 last_write_checksum: sha1:8212acfffc9f3f7b7272dd791b0fffedaf868d58 @@ -9078,6 +9382,10 @@ trackedFiles: id: 16b1e85474e0 last_write_checksum: sha1:a747849f24b7447aa71129a9857e6b48c2496775 pristine_git_object: c59f9693a1160d7d2d54d10756eb4df0c579a818 + docs/components/typetranscription.mdx: + id: aa1b365570c1 + last_write_checksum: sha1:0a5a5692b6eefeeb1cfe86eaf6f1322e60a5ec6f + pristine_git_object: 878499d1875dcdb3b47d1ea32de4099f7e8e8e79 docs/components/typeunavailable.mdx: id: f5e16e3838f3 last_write_checksum: sha1:4a7a35b4b66c86f65dcafe1e6fa313fcfa17e68a @@ -9158,10 +9466,14 @@ trackedFiles: id: 02fd71bcb47a last_write_checksum: sha1:19b1c0d699da35548881f4b4531b4618ea0b6d95 pristine_git_object: faeecbfcda6a8ffb8a17da6618b73021a471db84 - docs/components/unit.mdx: - id: 0bdb46a190ad - last_write_checksum: sha1:4d2b3619dece58c555b2bed3078a2a5fc6036168 - pristine_git_object: 8369333a20b7b67cc70ff68129abc4f236c7ce9b + docs/components/unitinteger1.mdx: + id: 5710fdad7dcb + last_write_checksum: sha1:f9ed86adad30b668a44c61e06d7e19fbd5057713 + pristine_git_object: 4b1a91fbd9f964c1f76aa62b0ea6a848140b239b + docs/components/unitinteger2.mdx: + id: eed2080a7572 + last_write_checksum: sha1:4c2363774ffd2d239acaf8b73229eca9969ac375 + pristine_git_object: b200bebc6802f0906629a8ca5ce543975f31d36c docs/components/unknown.mdx: id: b79daf1c00cb last_write_checksum: sha1:7f358fa85fb9e635e4a3c16fef01eba8bf17268e @@ -9334,6 +9646,46 @@ trackedFiles: id: 6737c84d8bbd last_write_checksum: sha1:c812def34024d0a22a1d50f449ae7be5b8850d52 pristine_git_object: affe6fee1f9b7264607cc187b9e2dd223b0e5838 + docs/components/valueenum1.mdx: + id: 7f104a5f862d + last_write_checksum: sha1:5754c46e2579dfbc9928f440edfdb2ffd0b73c1d + pristine_git_object: 521e62f24106a5a2c8644009fc9a49914ae4faa4 + docs/components/valueenum10.mdx: + id: 164cbd5cfd48 + last_write_checksum: sha1:0ec5160460410f1480d02b7c87e85785ea1433c5 + pristine_git_object: 07019e236dcfa7533eb91c399c23f910013703b6 + docs/components/valueenum2.mdx: + id: 9632cd1e6d57 + last_write_checksum: sha1:4904d7aabf9cf6b48f1edf4145a46a7ffc2efaa2 + pristine_git_object: bf88f6bed35f1d4c8d2322c3d7355f1a77e82229 + docs/components/valueenum3.mdx: + id: 5246cb7ad8c7 + last_write_checksum: sha1:7fe69ef4b289273509ac87d12b1214b12a935a71 + pristine_git_object: 68c62cb4439df0730d10ae6e2816ccd190e5c35c + docs/components/valueenum4.mdx: + id: c4d3b94db0c7 + last_write_checksum: sha1:66186e0456319ebc3a8fb99d7664e9424a3dc323 + pristine_git_object: f2af668728b8f8bf90fd768a053fe1ea7131c28f + docs/components/valueenum5.mdx: + id: 75c5d83fb415 + last_write_checksum: sha1:3982a6cd35bb7fa710b94068d9ac9a590a127949 + pristine_git_object: adf9d3de4501ae8e0875b2588f61d06a6e4ee371 + docs/components/valueenum6.mdx: + id: 0047603a3aa2 + last_write_checksum: sha1:f1a398da2eb89538cefd3d8bbabb097d0c358c64 + pristine_git_object: 10969cfe7f36cc29f26c43a7aed6edfc8e7e3b5e + docs/components/valueenum7.mdx: + id: 0418aea65d57 + last_write_checksum: sha1:e166d8dcd42b27ff40cbb10b075d54155328c139 + pristine_git_object: 6737ddf5f2baa24f9e6e30cd07f1c63f3aa6c6ce + docs/components/valueenum8.mdx: + id: 207b55a2b2c2 + last_write_checksum: sha1:7a7ebc2626fcff462d9ae234f3b8c2bdf436abf2 + pristine_git_object: 9a218ded2dbe7bcd4b6542a1707b0c9a6ec6c6f5 + docs/components/valueenum9.mdx: + id: 6b855e12d266 + last_write_checksum: sha1:e981230d69aaa05427bf89381390b4d34b48d1dc + pristine_git_object: eafc328db54dea70a7393649fdac2c323d62f193 docs/components/valuetype.mdx: id: 33007664668f last_write_checksum: sha1:b851b017a8a572fa1ad619796f0258349cf6e6dc @@ -9444,8 +9796,8 @@ trackedFiles: pristine_git_object: cc366e2b197444c825c9fffe84ef851c3173afab docs/components/videomodel.mdx: id: 7477360941c9 - last_write_checksum: sha1:ef06a52997edb8baa651919e442ef107399de931 - pristine_git_object: 49399d9bcc5f4034d0594a53385585ec38903136 + last_write_checksum: sha1:193b9ee53675c2b5461a04046d03da2bdcb882eb + pristine_git_object: c9317d8c52bc65df1719198af359ed5061659cd7 docs/components/videomodelslistresponse.mdx: id: da08c4cf70a1 last_write_checksum: sha1:27832c961bd79cd825823edaf91ff78a621ffaa8 @@ -11212,8 +11564,8 @@ trackedFiles: pristine_git_object: f7ab206b5ca32f5af427138d0a9156f66e92211c docs/operations/listorganizationmembersdata.mdx: id: d96ba08cbfe4 - last_write_checksum: sha1:e8d8484bd155fd79905699db6ae993d76c1cf74a - pristine_git_object: f65b92ed5b0400090645b019e89358a83484617e + last_write_checksum: sha1:3a4695810cb24cd5ba2e3b76e35ec173c450255f + pristine_git_object: 074f84fca93aad3390425f57e227e0b87fda447b docs/operations/listorganizationmembersglobals.mdx: id: 421fd4978d8f last_write_checksum: sha1:b4aec9055bf7a1f276ebdc4b270e09aee733e3fd @@ -11920,8 +12272,8 @@ trackedFiles: pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:b416048a0a5f06b2df6e8ade67b9b6a9d711c327 - pristine_git_object: b287520aef3a8163584ce5b9f227135858444468 + last_write_checksum: sha1:b2ec25e7294b8c44e097b64662f0e421a3acd309 + pristine_git_object: 3091edf7069b052f5c0fdabbf77fdb3825e387b6 scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54 @@ -11948,8 +12300,8 @@ trackedFiles: pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137 src/openrouter/_version.py: id: d8d15ad6c586 - last_write_checksum: sha1:1d6a9984a0647460a73ba0a6be0fc003c2be9367 - pristine_git_object: 29ef7631bb5b8ba065f768c41b5ca255a650bffc + last_write_checksum: sha1:d068ab3156eac011948cfa37e561750d72092d0a + pristine_git_object: 0d900a872ab3d585d6c0dc0a3dba42540b68e4fd src/openrouter/alpha.py: id: 306c4d93308d last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766 @@ -11996,8 +12348,8 @@ trackedFiles: pristine_git_object: ad3d247954547814054c01989a2dff3d12b3e4e1 src/openrouter/components/__init__.py: id: 81754e97b3f4 - last_write_checksum: sha1:e490bbb94959f712a2d419ee027007150e4b731b - pristine_git_object: 2c11595a5ea403cd858e54dac826f3d92291552a + last_write_checksum: sha1:558f464706d541484dc6d70b547652f97cad4e4d + pristine_git_object: 5f2f0c2f15c70ad6111e1ebe4685f19381980eb5 src/openrouter/components/aabenchmarkentry.py: id: e2e0f0b48c82 last_write_checksum: sha1:08125e1d60df82793e11e8aed6e3c9fdb7512ebb @@ -13828,8 +14180,8 @@ trackedFiles: pristine_git_object: 62c61b3a14000361f8a47e6f7aafb53cbdedc081 src/openrouter/components/imageendpoint.py: id: 6466b0bedef0 - last_write_checksum: sha1:631323f2b22eab12462b5951c1f07cea65fa20d8 - pristine_git_object: 7fe018a98be35b5b49e48aec938ac4223859cfb6 + last_write_checksum: sha1:d23af03705511e411f7dbe92876b4862e8ec6895 + pristine_git_object: 20e9907afdff75fd947bba59e2b2ecbdd4798d61 src/openrouter/components/imagegencallcompletedevent.py: id: cbf654faeb3e last_write_checksum: sha1:8fb3e34408dd8b167afc6aad641de9cc2483c9f1 @@ -13932,8 +14284,8 @@ trackedFiles: pristine_git_object: d97d1ee622f150b70dbaeda2db870711c97c1e4d src/openrouter/components/imagemodellistitem.py: id: 0e8365caa96c - last_write_checksum: sha1:28308827116fa3810cbd776bed12d0a300848ed6 - pristine_git_object: f2bb3e2929198956accdf1e98fc8c947838b2399 + last_write_checksum: sha1:b0584be2553279aa429c91a9e17a0a98bca50546 + pristine_git_object: c0337b15f53296c4143bbc857392a537792f5342 src/openrouter/components/imagemodelslistresponse.py: id: 9616976ca854 last_write_checksum: sha1:22cfac5912511e7cfbf4a60dc5e2bb835f5a11bd @@ -13944,8 +14296,8 @@ trackedFiles: pristine_git_object: c0686ea94677cab1726ff8853396bbd7831f1383 src/openrouter/components/imagepricingentry.py: id: 58bd958fe130 - last_write_checksum: sha1:449dd6b21d7182940757fc6717dd7e3eddc2472a - pristine_git_object: 47c262541e4517ccd2ba211a9f8b7fac5a4ed4c4 + last_write_checksum: sha1:f1427108a1ae3a9647e0a686e0e62691499391c9 + pristine_git_object: 03a25d18dcf4e708d7298ddaeea19b0dd4aed5c2 src/openrouter/components/imagestreamingresponse.py: id: 7de5604ae99c last_write_checksum: sha1:b27e74509fefd10a10fc5e1a75ea8c1efcaa713f @@ -14318,10 +14670,18 @@ trackedFiles: id: ffb5492b0d39 last_write_checksum: sha1:75da0e0a977d4fd2908506683548c7a8c878b869 pristine_git_object: 2491da1edbccaf8ab233b4a0767885f9a5d4f020 + src/openrouter/components/modelinputmodalityv2.py: + id: 64f76a9c4dd1 + last_write_checksum: sha1:9d3877066b86781e8fc18b82b73d23f5fe776532 + pristine_git_object: 68a729ff5c19cc570bfffca87c3291aa0a206816 src/openrouter/components/modellinks.py: id: b8759a1a4787 last_write_checksum: sha1:69b2c991666848f4790e5136c67553733cc68a54 pristine_git_object: c197cb2c527296adff2c3cfd9e49bcbc48087ce7 + src/openrouter/components/modeloutputmodalityv2.py: + id: c49c20914893 + last_write_checksum: sha1:890950e76a7989b4b22693b34ce67c4d3cd36c5b + pristine_git_object: d5f8c732dd099ecc8237e5e392cea3d26a45e2b1 src/openrouter/components/modelreasoning.py: id: 58bb3f2d75e0 last_write_checksum: sha1:d08257c7937f0b3cafa64c09da32ad86d1206239 @@ -14826,6 +15186,10 @@ trackedFiles: id: d76aede00388 last_write_checksum: sha1:8e1c3422b74279c8a543223f2e129864535f1716 pristine_git_object: 1a2df09612a04f6e71506f028794b9d1f14a2d8f + src/openrouter/components/parameterdescriptor.py: + id: c67fbae7c995 + last_write_checksum: sha1:c6f81e415dcda98db03e9e015cabc4082d0cba62 + pristine_git_object: 60813443f741a965bb5bb74f52e364720cfaa3ea src/openrouter/components/paretorouterplugin.py: id: b239c8e11899 last_write_checksum: sha1:61a3e9c14f1093d3258cfea3fa30b0bac5c1dbe8 @@ -15364,8 +15728,8 @@ trackedFiles: pristine_git_object: cc45b6da88350cd9ab4b9c6456b5dd81c0b4c8e9 src/openrouter/components/speechinputmodality.py: id: d475c5a1288b - last_write_checksum: sha1:d7cb1c376050175c0bb863d19e4a9e5d28097ff3 - pristine_git_object: 1b218efd1773d5badce422f442a00d69236c681a + last_write_checksum: sha1:698931d0b3f90b08c91413c5e89dd634e7f1f4a1 + pristine_git_object: 8046ca68a1b8184e0f9c6b8634cf313e0199ad8d src/openrouter/components/speechinputreference.py: id: 8e2b63f83354 last_write_checksum: sha1:b2ebc68fae64644f8bfca9b555ca7d2a7b46c9e1 @@ -15432,8 +15796,8 @@ trackedFiles: pristine_git_object: c28ec9144c59a0564086f79596a58ead8adfda31 src/openrouter/components/speechvoiceparameter.py: id: a6696a7b92e3 - last_write_checksum: sha1:054fae68651736db2dfcebdb5bc15a718c7bb58a - pristine_git_object: 85881124e624a1e84cb9adfbbddb6b604df791ab + last_write_checksum: sha1:c30da2425dfd20d9d32b7e71a6358d7b8e93097b + pristine_git_object: faa4b6a89e2bb477cac360c18af5acdffcc10897 src/openrouter/components/stopservertoolswhencondition.py: id: 2deeda4209ac last_write_checksum: sha1:581e0ee62776d42bf598b9f68b998faabfecd3ce @@ -15848,8 +16212,8 @@ trackedFiles: pristine_git_object: c6f80ef4af6effc740beb6e0f1abfee653340717 src/openrouter/components/videomodel.py: id: a544a49f7891 - last_write_checksum: sha1:7872674874263f52d5c7da6e1580285090dadbf6 - pristine_git_object: e5a05fbd250d7a377a6c773ff8a563e2ad94320d + last_write_checksum: sha1:c72daf956e9b5d88895f48b7ff47f08efc5b4106 + pristine_git_object: 99c87350eea00aa88706596515f10740d51e0b04 src/openrouter/components/videomodelslistresponse.py: id: 2e9d1ce2cf19 last_write_checksum: sha1:b94977aa6941f7cf15c889f1b7cc69b50cd35856 @@ -16680,8 +17044,8 @@ trackedFiles: pristine_git_object: 8efdffe07537894b87e3f0e2b54c53825dfd7b31 src/openrouter/operations/listorganizationmembers.py: id: d40a3e0e2b38 - last_write_checksum: sha1:f00056f68a32cdd602e362e4180c8344daa4bb41 - pristine_git_object: bab4420d737b66ae01eb72c70892ec4b2b4cfea8 + last_write_checksum: sha1:849f30b995950cadbcb8b22b4e84ce122db2caf1 + pristine_git_object: 52a74ececf52cb2ec789935dbf4c3cb0947b6cc5 src/openrouter/operations/listpresets.py: id: ecdc7097aab7 last_write_checksum: sha1:ee7c1cccf1caafb6a0fc04efb16476db2301233b @@ -16908,8 +17272,8 @@ trackedFiles: pristine_git_object: 862566fe2b1db830276b390e136e65090e5963d2 src/openrouter/types/basemodel.py: id: 369e2d46ed57 - last_write_checksum: sha1:10d84aedeb9d35edfdadf2c3020caa1d24d8b584 - pristine_git_object: a9a640a1a7048736383f96c67c6290c86bf536ee + last_write_checksum: sha1:da9a6eabd6b4409fcac3672fc3afa9ea81b6de8f + pristine_git_object: 500019bcf82fbad8390b476821f0a70d72f1e703 src/openrouter/utils/__init__.py: id: d2221baccf50 last_write_checksum: sha1:b9cb5851a618ff388d0c56127f6a7c595aa51978 @@ -17720,7 +18084,7 @@ examples: limit: 50 responses: "200": - application/json: {"data": [{"email": "jane.doe@example.com", "first_name": "Jane", "id": "user_2dHFtVWx2n56w6HkM0000000000", "last_name": "Doe", "role": "org:member"}], "total_count": 25} + application/json: {"data": [{"email": "jane.doe@example.com", "external_id": "scim_usr_3J9P6a5UiLQcpRMGx4bdOVrKceF", "first_name": "Jane", "id": "user_2dHFtVWx2n56w6HkM0000000000", "last_name": "Doe", "role": "org:member"}], "total_count": 25} "401": application/json: {"error": {"code": 401, "message": "Missing Authentication header"}} "404": @@ -18756,7 +19120,7 @@ examples: speakeasy-default-list-image-models: responses: "200": - application/json: {"data": [{"architecture": {"input_modalities": ["text"], "output_modalities": ["image"]}, "created": 1692901234, "description": "A text-to-image model.", "endpoints": "/api/v1/images/models/bytedance-seed/seedream-4.5/endpoints", "id": "bytedance-seed/seedream-4.5", "name": "Seedream 4.5", "supported_parameters": {"resolution": {"type": "enum", "values": ["1K", "2K", "4K"]}}, "supports_streaming": false}]} + application/json: {"data": [{"architecture": {"input_modalities": ["text"], "output_modalities": ["image"]}, "created": 1692901234, "description": "A text-to-image model.", "endpoints": "/api/v1/images/models/bytedance-seed/seedream-4.5/endpoints", "id": "bytedance-seed/seedream-4.5", "name": "Seedream 4.5", "supported_parameters": {"input_references": {"max": 14, "min": 0, "type": "range"}, "resolution": {"type": "enum", "values": ["1K", "2K", "4K"]}, "seed": {"type": "boolean"}}, "supports_streaming": false}]} "500": application/json: {"error": {"code": 500, "message": "Internal Server Error"}} listImageModelEndpoints: @@ -18767,7 +19131,7 @@ examples: slug: "seedream-4.5" responses: "200": - application/json: {"endpoints": [{"allowed_passthrough_parameters": [], "pricing": [{"billable": "output_image", "cost_usd": 0.05, "unit": "image"}], "provider_name": "Bytedance", "provider_slug": "bytedance", "provider_tag": "bytedance", "supported_parameters": {"resolution": {"type": "enum", "values": ["1K", "2K", "4K"]}}, "supports_streaming": false}], "id": "bytedance-seed/seedream-4.5"} + application/json: {"endpoints": [{"allowed_passthrough_parameters": [], "pricing": [{"billable": "output_image", "cost_usd": 0.05, "unit": "image"}], "provider_name": "Bytedance", "provider_slug": "bytedance", "provider_tag": "bytedance", "supported_parameters": {"input_references": {"max": 14, "min": 0, "type": "range"}, "resolution": {"type": "enum", "values": ["1K", "2K", "4K"]}, "seed": {"type": "boolean"}}, "supports_streaming": false}], "id": "bytedance-seed/seedream-4.5"} "404": application/json: {"error": {"code": 404, "message": "Resource not found"}} "500": @@ -22133,4 +22497,9 @@ examples: "500": application/json: {"error": {"code": 400, "message": "custom_id is required on requests[0]."}} examplesVersion: 1.0.2 -releaseNotes: "## Python SDK Changes:\n* `open_router.batch.create_batches()`: `response.results[].response.body.union(class (0)).choices[].message.reasoning_details[].union(reasoning.summary).format.enum(bedrock_amazon_responses_v1)` **Added**\n* `open_router.batch.get_batches()`: `response.results[].response.body.union(class (0)).choices[].message.reasoning_details[].union(reasoning.summary).format.enum(bedrock_amazon_responses_v1)` **Added**\n* `open_router.batch.get_results()`: `response.data[].response.body.union(class (0)).choices[].message.reasoning_details[].union(reasoning.encrypted).format.enum(bedrock_amazon_responses_v1)` **Added**\n* `open_router.presets.create_presets_chat_completions()`: \n * `request.messages[].union(assistant).reasoning_details[].union(reasoning.text).format.enum(bedrock_amazon_responses_v1)` **Added**\n* `open_router.presets.create_presets_responses()`: \n * `request.input.union(Array<>)[].union(class (8)).format.enum(bedrock_amazon_responses_v1)` **Added**\n" +releaseNotes: | + ## Python SDK Changes: + * `open_router.images.list_models()`: `response.data[]` **Changed** + * `open_router.images.list_model_endpoints()`: `response.endpoints[]` **Changed** + * `open_router.organization.list_members()`: `response.data[].external_id` **Added** + * `open_router.video_generation.list_videos_models()`: `response.data[]` **Changed** diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 98931679f..a799675a4 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -37,7 +37,7 @@ generation: documentation: mintlify preApplyUnionDiscriminators: true python: - version: 1.3.220 + version: 1.3.221 additionalDependencies: dev: pytest: '>=8.3' diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index ce37c9c03..87489d3c4 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -16939,6 +16939,26 @@ components: description: 'An endpoint that serves a given image model.' example: allowed_passthrough_parameters: [] + input_modalities: + - type: 'text' + - supported_inputs: + references: + max: 14 + min: 0 + type: 'integer' + type: 'image' + output_modalities: + - streaming: false + supported_parameters: + resolution: + type: 'enum' + values: + - '1K' + - '2K' + - '4K' + seed: + type: 'integer' + type: 'image' pricing: - billable: 'output_image' cost_usd: 0.05 @@ -16947,6 +16967,10 @@ components: provider_slug: 'bytedance' provider_tag: 'bytedance' supported_parameters: + input_references: + max: 14 + min: 0 + type: 'range' resolution: type: 'enum' values: @@ -16963,6 +16987,18 @@ components: items: type: 'string' type: 'array' + input_modalities: + description: 'Typed inputs the model accepts, following the Models API V2 document.' + items: + $ref: '#/components/schemas/ModelInputModalityV2' + minItems: 1 + type: 'array' + output_modalities: + description: 'Typed outputs with the request fields each accepts, following the Models API V2 document.' + items: + $ref: '#/components/schemas/ModelOutputModalityV2' + minItems: 1 + type: 'array' pricing: description: 'Billable pricing lines for this endpoint.' example: @@ -17890,6 +17926,26 @@ components: example: endpoints: - allowed_passthrough_parameters: [] + input_modalities: + - type: 'text' + - supported_inputs: + references: + max: 14 + min: 0 + type: 'integer' + type: 'image' + output_modalities: + - streaming: false + supported_parameters: + resolution: + type: 'enum' + values: + - '1K' + - '2K' + - '4K' + seed: + type: 'integer' + type: 'image' pricing: - billable: 'output_image' cost_usd: 0.05 @@ -17898,12 +17954,18 @@ components: provider_slug: 'bytedance' provider_tag: 'bytedance' supported_parameters: + input_references: + max: 14 + min: 0 + type: 'range' resolution: type: 'enum' values: - '1K' - '2K' - '4K' + seed: + type: 'boolean' supports_streaming: false id: 'bytedance-seed/seedream-4.5' properties: @@ -17932,8 +17994,32 @@ components: description: 'A text-to-image model.' endpoints: '/api/v1/images/models/bytedance-seed/seedream-4.5/endpoints' id: 'bytedance-seed/seedream-4.5' + input_modalities: + - type: 'text' + - supported_inputs: + references: + max: 14 + min: 0 + type: 'integer' + type: 'image' name: 'Seedream 4.5' + output_modalities: + - streaming: false + supported_parameters: + resolution: + type: 'enum' + values: + - '1K' + - '2K' + - '4K' + seed: + type: 'integer' + type: 'image' supported_parameters: + input_references: + max: 14 + min: 0 + type: 'range' resolution: type: 'enum' values: @@ -17961,10 +18047,22 @@ components: description: 'Model slug' example: 'bytedance-seed/seedream-4.5' type: 'string' + input_modalities: + description: 'Typed inputs the model accepts, following the Models API V2 document.' + items: + $ref: '#/components/schemas/ModelInputModalityV2' + minItems: 1 + type: 'array' name: description: 'Display name' example: 'Seedream 4.5' type: 'string' + output_modalities: + description: 'Typed outputs with the request fields each accepts, following the Models API V2 document.' + items: + $ref: '#/components/schemas/ModelOutputModalityV2' + minItems: 1 + type: 'array' supported_parameters: $ref: '#/components/schemas/SupportedParameters' supports_streaming: @@ -17994,14 +18092,40 @@ components: description: 'A text-to-image model.' endpoints: '/api/v1/images/models/bytedance-seed/seedream-4.5/endpoints' id: 'bytedance-seed/seedream-4.5' + input_modalities: + - type: 'text' + - supported_inputs: + references: + max: 14 + min: 0 + type: 'integer' + type: 'image' name: 'Seedream 4.5' + output_modalities: + - streaming: false + supported_parameters: + resolution: + type: 'enum' + values: + - '1K' + - '2K' + - '4K' + seed: + type: 'integer' + type: 'image' supported_parameters: + input_references: + max: 14 + min: 0 + type: 'range' resolution: type: 'enum' values: - '1K' - '2K' - '4K' + seed: + type: 'boolean' supports_streaming: false properties: data: @@ -22644,6 +22768,484 @@ components: example: 'GPT' type: 'string' x-speakeasy-unknown-values: allow + ModelInputModalityV2: + oneOf: + - additionalProperties: false + properties: + passthrough_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + supported_inputs: + additionalProperties: false + properties: + max_context_length: + additionalProperties: false + properties: + unit: + enum: + - 'second' + - 'pixel' + - 'byte' + - 'token' + - 'character' + type: 'string' + x-speakeasy-unknown-values: allow + value: + minimum: 1 + type: 'integer' + required: + - 'value' + type: 'object' + max_prompt_length: + additionalProperties: false + properties: + unit: + enum: + - 'second' + - 'pixel' + - 'byte' + - 'token' + - 'character' + type: 'string' + x-speakeasy-unknown-values: allow + value: + minimum: 1 + type: 'integer' + required: + - 'value' + type: 'object' + type: 'object' + type: + enum: + - 'text' + type: 'string' + required: + - 'type' + type: 'object' + - additionalProperties: false + properties: + passthrough_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + supported_inputs: + additionalProperties: false + properties: + detail_levels: + additionalProperties: false + properties: + type: + enum: + - 'enum' + type: 'string' + values: + items: + enum: + - 'auto' + - 'low' + - 'high' + - 'original' + type: 'string' + x-speakeasy-unknown-values: allow + type: 'array' + required: + - 'type' + - 'values' + type: 'object' + formats: + additionalProperties: false + properties: + type: + enum: + - 'enum' + type: 'string' + values: + items: + enum: + - 'image/png' + - 'image/jpeg' + - 'image/webp' + - 'image/gif' + type: 'string' + x-speakeasy-unknown-values: allow + type: 'array' + required: + - 'type' + - 'values' + type: 'object' + max_content_size_bytes: + additionalProperties: false + properties: + unit: + enum: + - 'second' + - 'pixel' + - 'byte' + - 'token' + - 'character' + type: 'string' + x-speakeasy-unknown-values: allow + value: + minimum: 1 + type: 'integer' + required: + - 'value' + type: 'object' + references: + additionalProperties: false + properties: + max: + type: 'integer' + min: + type: 'integer' + type: + enum: + - 'integer' + type: 'string' + unit: + enum: + - 'second' + - 'pixel' + - 'byte' + - 'token' + - 'character' + type: 'string' + x-speakeasy-unknown-values: allow + required: + - 'type' + type: 'object' + role: + additionalProperties: false + properties: + type: + enum: + - 'enum' + type: 'string' + values: + items: + enum: + - 'reference' + - 'first_frame' + - 'last_frame' + type: 'string' + x-speakeasy-unknown-values: allow + type: 'array' + required: + - 'type' + - 'values' + type: 'object' + sources: + additionalProperties: false + properties: + type: + enum: + - 'enum' + type: 'string' + values: + items: + enum: + - 'url' + - 'base64' + type: 'string' + x-speakeasy-unknown-values: allow + type: 'array' + required: + - 'type' + - 'values' + type: 'object' + type: 'object' + type: + enum: + - 'image' + type: 'string' + required: + - 'type' + type: 'object' + - additionalProperties: false + properties: + passthrough_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + supported_inputs: + additionalProperties: false + properties: + formats: + additionalProperties: false + properties: + type: + enum: + - 'enum' + type: 'string' + values: + items: + enum: + - 'video/mp4' + - 'video/webm' + type: 'string' + x-speakeasy-unknown-values: allow + type: 'array' + required: + - 'type' + - 'values' + type: 'object' + max_content_size_bytes: + additionalProperties: false + properties: + unit: + enum: + - 'second' + - 'pixel' + - 'byte' + - 'token' + - 'character' + type: 'string' + x-speakeasy-unknown-values: allow + value: + minimum: 1 + type: 'integer' + required: + - 'value' + type: 'object' + max_duration_seconds: + additionalProperties: false + properties: + unit: + enum: + - 'second' + - 'pixel' + - 'byte' + - 'token' + - 'character' + type: 'string' + x-speakeasy-unknown-values: allow + value: + exclusiveMinimum: 0 + minimum: 0 + type: 'number' + required: + - 'value' + type: 'object' + sources: + additionalProperties: false + properties: + type: + enum: + - 'enum' + type: 'string' + values: + items: + enum: + - 'url' + - 'base64' + type: 'string' + x-speakeasy-unknown-values: allow + type: 'array' + required: + - 'type' + - 'values' + type: 'object' + type: 'object' + type: + enum: + - 'video' + type: 'string' + required: + - 'type' + type: 'object' + - additionalProperties: false + properties: + passthrough_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + supported_inputs: + additionalProperties: false + properties: + formats: + additionalProperties: false + properties: + type: + enum: + - 'enum' + type: 'string' + values: + items: + enum: + - 'audio/wav' + - 'audio/mpeg' + type: 'string' + x-speakeasy-unknown-values: allow + type: 'array' + required: + - 'type' + - 'values' + type: 'object' + max_content_size_bytes: + additionalProperties: false + properties: + unit: + enum: + - 'second' + - 'pixel' + - 'byte' + - 'token' + - 'character' + type: 'string' + x-speakeasy-unknown-values: allow + value: + minimum: 1 + type: 'integer' + required: + - 'value' + type: 'object' + max_duration_seconds: + additionalProperties: false + properties: + unit: + enum: + - 'second' + - 'pixel' + - 'byte' + - 'token' + - 'character' + type: 'string' + x-speakeasy-unknown-values: allow + value: + exclusiveMinimum: 0 + minimum: 0 + type: 'number' + required: + - 'value' + type: 'object' + sources: + additionalProperties: false + properties: + type: + enum: + - 'enum' + type: 'string' + values: + items: + enum: + - 'url' + - 'base64' + type: 'string' + x-speakeasy-unknown-values: allow + type: 'array' + required: + - 'type' + - 'values' + type: 'object' + type: 'object' + type: + enum: + - 'audio' + type: 'string' + required: + - 'type' + type: 'object' + - additionalProperties: false + properties: + passthrough_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + supported_inputs: + additionalProperties: false + properties: + formats: + additionalProperties: false + properties: + type: + enum: + - 'enum' + type: 'string' + values: + items: + enum: + - 'application/pdf' + - 'text/plain' + - 'text/markdown' + - 'text/html' + - 'text/csv' + - 'application/json' + type: 'string' + x-speakeasy-unknown-values: allow + type: 'array' + required: + - 'type' + - 'values' + type: 'object' + max_content_size_bytes: + additionalProperties: false + properties: + unit: + enum: + - 'second' + - 'pixel' + - 'byte' + - 'token' + - 'character' + type: 'string' + x-speakeasy-unknown-values: allow + value: + minimum: 1 + type: 'integer' + required: + - 'value' + type: 'object' + references: + additionalProperties: false + properties: + max: + type: 'integer' + min: + type: 'integer' + type: + enum: + - 'integer' + type: 'string' + unit: + enum: + - 'second' + - 'pixel' + - 'byte' + - 'token' + - 'character' + type: 'string' + x-speakeasy-unknown-values: allow + required: + - 'type' + type: 'object' + sources: + additionalProperties: false + properties: + type: + enum: + - 'enum' + type: 'string' + values: + items: + enum: + - 'url' + - 'base64' + type: 'string' + x-speakeasy-unknown-values: allow + type: 'array' + required: + - 'type' + - 'values' + type: 'object' + type: 'object' + type: + enum: + - 'file' + type: 'string' + required: + - 'type' + type: 'object' ModelLinks: description: 'Related API endpoints and resources for this model.' example: @@ -22660,6 +23262,206 @@ components: description: 'Model to use for completion' example: 'openai/gpt-4' type: 'string' + ModelOutputModalityV2: + oneOf: + - additionalProperties: false + properties: + max_length: + additionalProperties: false + properties: + unit: + enum: + - 'second' + - 'pixel' + - 'byte' + - 'token' + - 'character' + type: 'string' + x-speakeasy-unknown-values: allow + value: + minimum: 1 + type: 'integer' + required: + - 'value' + type: 'object' + passthrough_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + streaming: + type: 'boolean' + supported_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + type: + enum: + - 'text' + type: 'string' + required: + - 'type' + - 'supported_parameters' + type: 'object' + - additionalProperties: false + properties: + passthrough_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + streaming: + type: 'boolean' + supported_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + type: + enum: + - 'image' + type: 'string' + required: + - 'type' + - 'supported_parameters' + type: 'object' + - additionalProperties: false + properties: + passthrough_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + streaming: + type: 'boolean' + supported_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + type: + enum: + - 'video' + type: 'string' + required: + - 'type' + - 'supported_parameters' + type: 'object' + - additionalProperties: false + properties: + passthrough_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + streaming: + type: 'boolean' + supported_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + type: + enum: + - 'speech' + type: 'string' + required: + - 'type' + - 'supported_parameters' + type: 'object' + - additionalProperties: false + properties: + passthrough_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + streaming: + type: 'boolean' + supported_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + type: + enum: + - 'transcription' + type: 'string' + required: + - 'type' + - 'supported_parameters' + type: 'object' + - additionalProperties: false + properties: + passthrough_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + supported_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + type: + enum: + - 'embeddings' + type: 'string' + required: + - 'type' + - 'supported_parameters' + type: 'object' + - additionalProperties: false + properties: + passthrough_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + supported_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + type: + enum: + - 'rerank' + type: 'string' + required: + - 'type' + - 'supported_parameters' + type: 'object' + - additionalProperties: false + properties: + max_choice_options: + minimum: 1 + type: 'integer' + max_score_levels: + minimum: 1 + type: 'integer' + passthrough_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + supported_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + type: + enum: + - 'decisions' + type: 'string' + required: + - 'type' + - 'supported_parameters' + type: 'object' + - additionalProperties: false + properties: + passthrough_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + streaming: + type: 'boolean' + supported_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + type: + enum: + - 'audio' + type: 'string' + required: + - 'type' + - 'supported_parameters' + type: 'object' ModelReasoning: description: 'Reasoning effort configuration. Omitted for non-reasoning models and dynamic router models.' example: @@ -29748,6 +30550,57 @@ components: example: 'temperature' type: 'string' x-speakeasy-unknown-values: allow + ParameterDescriptor: + additionalProperties: false + description: 'A request parameter descriptor: `type` is range, integer, boolean, enum, array, object or unknown, with the constraint fields of that type.' + properties: + default: + oneOf: + - type: 'string' + - type: 'number' + - type: 'boolean' + items: + $ref: '#/components/schemas/ParameterDescriptor' + max: + type: 'number' + max_items: + minimum: 1 + type: 'integer' + min: + type: 'number' + properties: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + type: + enum: + - 'range' + - 'integer' + - 'boolean' + - 'enum' + - 'array' + - 'object' + - 'unknown' + type: 'string' + x-speakeasy-unknown-values: allow + unit: + enum: + - 'second' + - 'pixel' + - 'byte' + - 'token' + - 'character' + type: 'string' + x-speakeasy-unknown-values: allow + values: + items: + oneOf: + - type: 'string' + - type: 'number' + type: 'array' + required: + - 'type' + type: 'object' ParetoRouterPlugin: example: enabled: true @@ -39867,7 +40720,49 @@ components: generate_audio: true hugging_face_id: null id: 'google/veo-3.1' + input_modalities: + - type: 'text' + - supported_inputs: + role: + type: 'enum' + values: + - 'first_frame' + - 'last_frame' + type: 'image' name: 'Google: Veo 3.1' + output_modalities: + - supported_parameters: + aspect_ratio: + type: 'enum' + values: + - '16:9' + - '9:16' + duration: + type: 'enum' + values: + - 4 + - 6 + - 8 + generate_audio: + type: 'boolean' + resolution: + type: 'enum' + values: + - '720p' + - '1080p' + - '4K' + seed: + type: 'integer' + size: + type: 'enum' + values: + - '1280x720' + - '1080x1920' + - '1920x1080' + - '720x1280' + - '3840x2160' + - '2160x3840' + type: 'video' pricing_skus: duration_seconds_with_audio: '0.40' duration_seconds_with_audio_4k: '0.60' @@ -39936,10 +40831,22 @@ components: description: 'Unique identifier for the model' example: 'openai/gpt-4' type: 'string' + input_modalities: + description: 'Typed inputs the model accepts, following the Models API V2 document. An image input lists the frame roles it may take.' + items: + $ref: '#/components/schemas/ModelInputModalityV2' + minItems: 1 + type: 'array' name: description: 'Display name of the model' example: 'GPT-4' type: 'string' + output_modalities: + description: 'Typed outputs with the request fields each accepts, following the Models API V2 document. Pricing stays in `pricing_skus`.' + items: + $ref: '#/components/schemas/ModelOutputModalityV2' + minItems: 1 + type: 'array' pricing_skus: additionalProperties: type: 'string' @@ -40151,7 +41058,49 @@ components: generate_audio: true hugging_face_id: null id: 'google/veo-3.1' + input_modalities: + - type: 'text' + - supported_inputs: + role: + type: 'enum' + values: + - 'first_frame' + - 'last_frame' + type: 'image' name: 'Google: Veo 3.1' + output_modalities: + - supported_parameters: + aspect_ratio: + type: 'enum' + values: + - '16:9' + - '9:16' + duration: + type: 'enum' + values: + - 4 + - 6 + - 8 + generate_audio: + type: 'boolean' + resolution: + type: 'enum' + values: + - '720p' + - '1080p' + - '4K' + seed: + type: 'integer' + size: + type: 'enum' + values: + - '1280x720' + - '1080x1920' + - '1920x1080' + - '720x1280' + - '3840x2160' + - '2160x3840' + type: 'video' pricing_skus: duration_seconds_with_audio: '0.40' duration_seconds_with_audio_4k: '0.60' @@ -51878,14 +52827,40 @@ paths: description: 'A text-to-image model.' endpoints: '/api/v1/images/models/bytedance-seed/seedream-4.5/endpoints' id: 'bytedance-seed/seedream-4.5' + input_modalities: + - type: 'text' + - supported_inputs: + references: + max: 14 + min: 0 + type: 'integer' + type: 'image' name: 'Seedream 4.5' + output_modalities: + - streaming: false + supported_parameters: + resolution: + type: 'enum' + values: + - '1K' + - '2K' + - '4K' + seed: + type: 'integer' + type: 'image' supported_parameters: + input_references: + max: 14 + min: 0 + type: 'range' resolution: type: 'enum' values: - '1K' - '2K' - '4K' + seed: + type: 'boolean' supports_streaming: false schema: $ref: '#/components/schemas/ImageModelsListResponse' @@ -51936,6 +52911,26 @@ paths: example: endpoints: - allowed_passthrough_parameters: [] + input_modalities: + - type: 'text' + - supported_inputs: + references: + max: 14 + min: 0 + type: 'integer' + type: 'image' + output_modalities: + - streaming: false + supported_parameters: + resolution: + type: 'enum' + values: + - '1K' + - '2K' + - '4K' + seed: + type: 'integer' + type: 'image' pricing: - billable: 'output_image' cost_usd: 0.05 @@ -51944,12 +52939,18 @@ paths: provider_slug: 'bytedance' provider_tag: 'bytedance' supported_parameters: + input_references: + max: 14 + min: 0 + type: 'range' resolution: type: 'enum' values: - '1K' - '2K' - '4K' + seed: + type: 'boolean' supports_streaming: false id: 'bytedance-seed/seedream-4.5' schema: @@ -55972,6 +56973,7 @@ paths: example: data: - email: 'jane.doe@example.com' + external_id: 'scim_usr_3J9P6a5UiLQcpRMGx4bdOVrKceF' first_name: 'Jane' id: 'user_2dHFtVWx2n56w6HkM0000000000' last_name: 'Doe' @@ -55987,6 +56989,12 @@ paths: description: 'Email address of the member' example: 'jane.doe@example.com' type: 'string' + external_id: + description: 'The member''s SCIM user ID, which your identity provider stores for their OpenRouter account (Okta shows it as External ID); not the SCIM `externalId` attribute. Set when your organization''s SCIM directory provisions, updates or syncs the member. Null when this organization''s directory did not provision the member (for example, they were invited, signed up directly, or provisioned by another organization''s directory) or has not synced them yet. Members can keep their last synced value after the directory is removed.' + example: 'scim_usr_3J9P6a5UiLQcpRMGx4bdOVrKceF' + type: + - 'string' + - 'null' first_name: description: 'First name of the member' example: 'Jane' @@ -56018,6 +57026,7 @@ paths: - 'last_name' - 'email' - 'role' + - 'external_id' type: 'object' type: 'array' total_count: @@ -63433,7 +64442,49 @@ paths: generate_audio: true hugging_face_id: null id: 'google/veo-3.1' + input_modalities: + - type: 'text' + - supported_inputs: + role: + type: 'enum' + values: + - 'first_frame' + - 'last_frame' + type: 'image' name: 'Google: Veo 3.1' + output_modalities: + - supported_parameters: + aspect_ratio: + type: 'enum' + values: + - '16:9' + - '9:16' + duration: + type: 'enum' + values: + - 4 + - 6 + - 8 + generate_audio: + type: 'boolean' + resolution: + type: 'enum' + values: + - '720p' + - '1080p' + - '4K' + seed: + type: 'integer' + size: + type: 'enum' + values: + - '1280x720' + - '1080x1920' + - '1920x1080' + - '720x1280' + - '3840x2160' + - '2160x3840' + type: 'video' pricing_skus: duration_seconds_with_audio: '0.40' duration_seconds_with_audio_4k: '0.60' diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index b460d1346..bde279006 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:f70caaf1742527d0e96c6c44fe86efdede20188827a81fa62cb3537f3ee5da3d - sourceBlobDigest: sha256:d73487f1f6f1af583b908374a5ff83485659766ebed4733c92f6f35386591488 + sourceRevisionDigest: sha256:6023b2ffbbb02de7eed5d53a2a69217d5309cbc6fe7c835496d2649e97d68aad + sourceBlobDigest: sha256:c52375a0046e45779007eee6366e39f450a8b059ac7451c0c89e4c467291fe30 tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: open-router: source: OpenRouter API sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:f70caaf1742527d0e96c6c44fe86efdede20188827a81fa62cb3537f3ee5da3d - sourceBlobDigest: sha256:d73487f1f6f1af583b908374a5ff83485659766ebed4733c92f6f35386591488 + sourceRevisionDigest: sha256:6023b2ffbbb02de7eed5d53a2a69217d5309cbc6fe7c835496d2649e97d68aad + sourceBlobDigest: sha256:c52375a0046e45779007eee6366e39f450a8b059ac7451c0c89e4c467291fe30 codeSamplesNamespace: open-router-python-code-samples - codeSamplesRevisionDigest: sha256:6316d332af2e28565eee5d6c2842a01d35196986523f24bd2e50405c3e4ef9c2 + codeSamplesRevisionDigest: sha256:80a9645aa2e57ec13de000a342f6762abfa528db38ea003baaf4e371ce57225b workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.803.2 diff --git a/RELEASES.md b/RELEASES.md index 8a16397c8..58ec26487 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -4969,4 +4969,14 @@ Based on: ### Generated - [python v1.3.220] . ### Releases -- [PyPI v1.3.220] https://pypi.org/project/openrouter/1.3.220 - . \ No newline at end of file +- [PyPI v1.3.220] https://pypi.org/project/openrouter/1.3.220 - . + +## 2026-12-01 16:26:35 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.3.221] . +### Releases +- [PyPI v1.3.221] https://pypi.org/project/openrouter/1.3.221 - . \ No newline at end of file diff --git a/docs/components/default.mdx b/docs/components/default.mdx new file mode 100644 index 000000000..379d509d8 --- /dev/null +++ b/docs/components/default.mdx @@ -0,0 +1,24 @@ +--- +title: "Default" +--- + +## Supported Types + +### `str` + +```python +value: str = /* values here */ +``` + +### `float` + +```python +value: float = /* values here */ +``` + +### `bool` + +```python +value: bool = /* values here */ +``` + diff --git a/docs/components/detaillevels.mdx b/docs/components/detaillevels.mdx new file mode 100644 index 000000000..3e161fe77 --- /dev/null +++ b/docs/components/detaillevels.mdx @@ -0,0 +1,10 @@ +--- +title: "DetailLevels" +--- + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `type` | [components.SupportedInputsType1](../components/supportedinputstype1.mdx) | ✔️ | N/A | +| `values` | List[[components.ValueEnum1](../components/valueenum1.mdx)] | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/imageendpoint.mdx b/docs/components/imageendpoint.mdx index a3be377ed..564ab03c8 100644 --- a/docs/components/imageendpoint.mdx +++ b/docs/components/imageendpoint.mdx @@ -10,6 +10,8 @@ An endpoint that serves a given image model. | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `allowed_passthrough_parameters` | List[*str*] | ✔️ | Provider-specific options accepted under provider.options[provider_slug]. | [] | +| `input_modalities` | List[[components.ModelInputModalityV2](../components/modelinputmodalityv2.mdx)] | ➖ | Typed inputs the model accepts, following the Models API V2 document. | | +| `output_modalities` | List[[components.ModelOutputModalityV2](../components/modeloutputmodalityv2.mdx)] | ➖ | Typed outputs with the request fields each accepts, following the Models API V2 document. | | | `pricing` | List[[components.ImagePricingEntry](../components/imagepricingentry.mdx)] | ✔️ | Billable pricing lines for this endpoint. | [
\{
"billable": "output_image",
"cost_usd": 0.05,
"unit": "image"
}
] | | `provider_name` | *str* | ✔️ | Provider display name | Bytedance | | `provider_slug` | *str* | ✔️ | Provider slug | bytedance | diff --git a/docs/components/imagemodellistitem.mdx b/docs/components/imagemodellistitem.mdx index a3cda89f0..d9863fbcc 100644 --- a/docs/components/imagemodellistitem.mdx +++ b/docs/components/imagemodellistitem.mdx @@ -14,6 +14,8 @@ A single image model in the discovery listing. | `description` | *str* | ✔️ | N/A | A text-to-image model. | | `endpoints` | *str* | ✔️ | Relative URL to the full per-endpoint records for this model | /api/v1/images/models/bytedance-seed/seedream-4.5/endpoints | | `id` | *str* | ✔️ | Model slug | bytedance-seed/seedream-4.5 | +| `input_modalities` | List[[components.ModelInputModalityV2](../components/modelinputmodalityv2.mdx)] | ➖ | Typed inputs the model accepts, following the Models API V2 document. | | | `name` | *str* | ✔️ | Display name | Seedream 4.5 | +| `output_modalities` | List[[components.ModelOutputModalityV2](../components/modeloutputmodalityv2.mdx)] | ➖ | Typed outputs with the request fields each accepts, following the Models API V2 document. | | | `supported_parameters` | Dict[str, [components.CapabilityDescriptor](../components/capabilitydescriptor.mdx)] | ✔️ | Union of supported parameters across every endpoint of this model. Coarse discovery aid; the definitive per-endpoint set is behind the endpoints URL. | \{
"output_compression": \{
"max": 100,
"min": 0,
"type": "range"
},
"resolution": \{
"type": "enum",
"values": [
"1K",
"2K",
"4K"
]
},
"seed": \{
"type": "boolean"
}
} | | `supports_streaming` | *bool* | ✔️ | Whether any endpoint of this model supports native SSE streaming on the dedicated Image API (i.e. `stream: true` in the request). OR across endpoints. | false | \ No newline at end of file diff --git a/docs/components/imagepricingentry.mdx b/docs/components/imagepricingentry.mdx index 07346965f..528d4c8d1 100644 --- a/docs/components/imagepricingentry.mdx +++ b/docs/components/imagepricingentry.mdx @@ -7,9 +7,9 @@ One billable pricing line for an image provider. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | -| `billable` | [components.Billable](../components/billable.mdx) | ✔️ | N/A | -| `cost_usd` | *float* | ✔️ | N/A | -| `unit` | [components.Unit](../components/unit.mdx) | ✔️ | N/A | -| `variant` | *Optional[str]* | ➖ | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `billable` | [components.Billable](../components/billable.mdx) | ✔️ | N/A | +| `cost_usd` | *float* | ✔️ | N/A | +| `unit` | [components.ImagePricingEntryUnit](../components/imagepricingentryunit.mdx) | ✔️ | N/A | +| `variant` | *Optional[str]* | ➖ | N/A | \ No newline at end of file diff --git a/docs/components/unit.mdx b/docs/components/imagepricingentryunit.mdx similarity index 65% rename from docs/components/unit.mdx rename to docs/components/imagepricingentryunit.mdx index 8369333a2..971937f8a 100644 --- a/docs/components/unit.mdx +++ b/docs/components/imagepricingentryunit.mdx @@ -1,14 +1,14 @@ --- -title: "Unit" +title: "ImagePricingEntryUnit" --- ## Example Usage ```python -from openrouter.components import Unit +from openrouter.components import ImagePricingEntryUnit # Open enum: unrecognized values are captured as UnrecognizedStr -value: Unit = "request" +value: ImagePricingEntryUnit = "request" ``` diff --git a/docs/components/maxcontentsizebytes1.mdx b/docs/components/maxcontentsizebytes1.mdx new file mode 100644 index 000000000..bccef5757 --- /dev/null +++ b/docs/components/maxcontentsizebytes1.mdx @@ -0,0 +1,10 @@ +--- +title: "MaxContentSizeBytes1" +--- + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `unit` | [Optional[components.MaxContentSizeBytesUnit1]](../components/maxcontentsizebytesunit1.mdx) | ➖ | N/A | +| `value` | *int* | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/maxcontentsizebytes2.mdx b/docs/components/maxcontentsizebytes2.mdx new file mode 100644 index 000000000..a3a778c57 --- /dev/null +++ b/docs/components/maxcontentsizebytes2.mdx @@ -0,0 +1,10 @@ +--- +title: "MaxContentSizeBytes2" +--- + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `unit` | [Optional[components.MaxContentSizeBytesUnit2]](../components/maxcontentsizebytesunit2.mdx) | ➖ | N/A | +| `value` | *int* | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/maxcontentsizebytes3.mdx b/docs/components/maxcontentsizebytes3.mdx new file mode 100644 index 000000000..45605e959 --- /dev/null +++ b/docs/components/maxcontentsizebytes3.mdx @@ -0,0 +1,10 @@ +--- +title: "MaxContentSizeBytes3" +--- + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `unit` | [Optional[components.MaxContentSizeBytesUnit3]](../components/maxcontentsizebytesunit3.mdx) | ➖ | N/A | +| `value` | *int* | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/maxcontentsizebytes4.mdx b/docs/components/maxcontentsizebytes4.mdx new file mode 100644 index 000000000..4dd2097a9 --- /dev/null +++ b/docs/components/maxcontentsizebytes4.mdx @@ -0,0 +1,10 @@ +--- +title: "MaxContentSizeBytes4" +--- + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `unit` | [Optional[components.MaxContentSizeBytesUnit4]](../components/maxcontentsizebytesunit4.mdx) | ➖ | N/A | +| `value` | *int* | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/maxcontentsizebytesunit1.mdx b/docs/components/maxcontentsizebytesunit1.mdx new file mode 100644 index 000000000..fb9d44688 --- /dev/null +++ b/docs/components/maxcontentsizebytesunit1.mdx @@ -0,0 +1,23 @@ +--- +title: "MaxContentSizeBytesUnit1" +--- + +## Example Usage + +```python +from openrouter.components import MaxContentSizeBytesUnit1 + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: MaxContentSizeBytesUnit1 = "second" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"second"` +- `"pixel"` +- `"byte"` +- `"token"` +- `"character"` diff --git a/docs/components/maxcontentsizebytesunit2.mdx b/docs/components/maxcontentsizebytesunit2.mdx new file mode 100644 index 000000000..f11305ab1 --- /dev/null +++ b/docs/components/maxcontentsizebytesunit2.mdx @@ -0,0 +1,23 @@ +--- +title: "MaxContentSizeBytesUnit2" +--- + +## Example Usage + +```python +from openrouter.components import MaxContentSizeBytesUnit2 + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: MaxContentSizeBytesUnit2 = "second" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"second"` +- `"pixel"` +- `"byte"` +- `"token"` +- `"character"` diff --git a/docs/components/maxcontentsizebytesunit3.mdx b/docs/components/maxcontentsizebytesunit3.mdx new file mode 100644 index 000000000..ca27deb2c --- /dev/null +++ b/docs/components/maxcontentsizebytesunit3.mdx @@ -0,0 +1,23 @@ +--- +title: "MaxContentSizeBytesUnit3" +--- + +## Example Usage + +```python +from openrouter.components import MaxContentSizeBytesUnit3 + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: MaxContentSizeBytesUnit3 = "second" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"second"` +- `"pixel"` +- `"byte"` +- `"token"` +- `"character"` diff --git a/docs/components/maxcontentsizebytesunit4.mdx b/docs/components/maxcontentsizebytesunit4.mdx new file mode 100644 index 000000000..fe252e6a8 --- /dev/null +++ b/docs/components/maxcontentsizebytesunit4.mdx @@ -0,0 +1,23 @@ +--- +title: "MaxContentSizeBytesUnit4" +--- + +## Example Usage + +```python +from openrouter.components import MaxContentSizeBytesUnit4 + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: MaxContentSizeBytesUnit4 = "second" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"second"` +- `"pixel"` +- `"byte"` +- `"token"` +- `"character"` diff --git a/docs/components/maxcontextlength.mdx b/docs/components/maxcontextlength.mdx new file mode 100644 index 000000000..160335b67 --- /dev/null +++ b/docs/components/maxcontextlength.mdx @@ -0,0 +1,10 @@ +--- +title: "MaxContextLength" +--- + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `unit` | [Optional[components.MaxContextLengthUnit]](../components/maxcontextlengthunit.mdx) | ➖ | N/A | +| `value` | *int* | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/maxcontextlengthunit.mdx b/docs/components/maxcontextlengthunit.mdx new file mode 100644 index 000000000..02a768859 --- /dev/null +++ b/docs/components/maxcontextlengthunit.mdx @@ -0,0 +1,23 @@ +--- +title: "MaxContextLengthUnit" +--- + +## Example Usage + +```python +from openrouter.components import MaxContextLengthUnit + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: MaxContextLengthUnit = "second" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"second"` +- `"pixel"` +- `"byte"` +- `"token"` +- `"character"` diff --git a/docs/components/maxdurationseconds1.mdx b/docs/components/maxdurationseconds1.mdx new file mode 100644 index 000000000..8d60a3ac5 --- /dev/null +++ b/docs/components/maxdurationseconds1.mdx @@ -0,0 +1,10 @@ +--- +title: "MaxDurationSeconds1" +--- + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `unit` | [Optional[components.MaxDurationSecondsUnit1]](../components/maxdurationsecondsunit1.mdx) | ➖ | N/A | +| `value` | *float* | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/maxdurationseconds2.mdx b/docs/components/maxdurationseconds2.mdx new file mode 100644 index 000000000..9d9fb2c1c --- /dev/null +++ b/docs/components/maxdurationseconds2.mdx @@ -0,0 +1,10 @@ +--- +title: "MaxDurationSeconds2" +--- + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `unit` | [Optional[components.MaxDurationSecondsUnit2]](../components/maxdurationsecondsunit2.mdx) | ➖ | N/A | +| `value` | *float* | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/maxdurationsecondsunit1.mdx b/docs/components/maxdurationsecondsunit1.mdx new file mode 100644 index 000000000..d4eb148b9 --- /dev/null +++ b/docs/components/maxdurationsecondsunit1.mdx @@ -0,0 +1,23 @@ +--- +title: "MaxDurationSecondsUnit1" +--- + +## Example Usage + +```python +from openrouter.components import MaxDurationSecondsUnit1 + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: MaxDurationSecondsUnit1 = "second" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"second"` +- `"pixel"` +- `"byte"` +- `"token"` +- `"character"` diff --git a/docs/components/maxdurationsecondsunit2.mdx b/docs/components/maxdurationsecondsunit2.mdx new file mode 100644 index 000000000..1349bc693 --- /dev/null +++ b/docs/components/maxdurationsecondsunit2.mdx @@ -0,0 +1,23 @@ +--- +title: "MaxDurationSecondsUnit2" +--- + +## Example Usage + +```python +from openrouter.components import MaxDurationSecondsUnit2 + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: MaxDurationSecondsUnit2 = "second" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"second"` +- `"pixel"` +- `"byte"` +- `"token"` +- `"character"` diff --git a/docs/components/maxlength.mdx b/docs/components/maxlength.mdx new file mode 100644 index 000000000..9a9614885 --- /dev/null +++ b/docs/components/maxlength.mdx @@ -0,0 +1,10 @@ +--- +title: "MaxLength" +--- + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `unit` | [Optional[components.ModelOutputModalityV2Unit]](../components/modeloutputmodalityv2unit.mdx) | ➖ | N/A | +| `value` | *int* | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/maxpromptlength.mdx b/docs/components/maxpromptlength.mdx new file mode 100644 index 000000000..f1448dee1 --- /dev/null +++ b/docs/components/maxpromptlength.mdx @@ -0,0 +1,10 @@ +--- +title: "MaxPromptLength" +--- + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `unit` | [Optional[components.MaxPromptLengthUnit]](../components/maxpromptlengthunit.mdx) | ➖ | N/A | +| `value` | *int* | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/maxpromptlengthunit.mdx b/docs/components/maxpromptlengthunit.mdx new file mode 100644 index 000000000..17b4a36ea --- /dev/null +++ b/docs/components/maxpromptlengthunit.mdx @@ -0,0 +1,23 @@ +--- +title: "MaxPromptLengthUnit" +--- + +## Example Usage + +```python +from openrouter.components import MaxPromptLengthUnit + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: MaxPromptLengthUnit = "second" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"second"` +- `"pixel"` +- `"byte"` +- `"token"` +- `"character"` diff --git a/docs/components/modelinputmodalityv2.mdx b/docs/components/modelinputmodalityv2.mdx new file mode 100644 index 000000000..04bc65524 --- /dev/null +++ b/docs/components/modelinputmodalityv2.mdx @@ -0,0 +1,36 @@ +--- +title: "ModelInputModalityV2" +--- + +## Supported Types + +### `components.ModelInputModalityV2Text` + +```python +value: components.ModelInputModalityV2Text = /* values here */ +``` + +### `components.ModelInputModalityV2Image` + +```python +value: components.ModelInputModalityV2Image = /* values here */ +``` + +### `components.ModelInputModalityV2Video` + +```python +value: components.ModelInputModalityV2Video = /* values here */ +``` + +### `components.ModelInputModalityV2Audio` + +```python +value: components.ModelInputModalityV2Audio = /* values here */ +``` + +### `components.ModelInputModalityV2File` + +```python +value: components.ModelInputModalityV2File = /* values here */ +``` + diff --git a/docs/components/modelinputmodalityv2audio.mdx b/docs/components/modelinputmodalityv2audio.mdx new file mode 100644 index 000000000..fc7398d5b --- /dev/null +++ b/docs/components/modelinputmodalityv2audio.mdx @@ -0,0 +1,11 @@ +--- +title: "ModelInputModalityV2Audio" +--- + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `passthrough_parameters` | Dict[str, [components.ParameterDescriptor](../components/parameterdescriptor.mdx)] | ➖ | N/A | +| `supported_inputs` | [Optional[components.ModelInputModalityV2SupportedInputs4]](../components/modelinputmodalityv2supportedinputs4.mdx) | ➖ | N/A | +| `type` | [components.ModelInputModalityV2TypeAudio](../components/modelinputmodalityv2typeaudio.mdx) | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/modelinputmodalityv2file.mdx b/docs/components/modelinputmodalityv2file.mdx new file mode 100644 index 000000000..7e2f6b72b --- /dev/null +++ b/docs/components/modelinputmodalityv2file.mdx @@ -0,0 +1,11 @@ +--- +title: "ModelInputModalityV2File" +--- + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `passthrough_parameters` | Dict[str, [components.ParameterDescriptor](../components/parameterdescriptor.mdx)] | ➖ | N/A | +| `supported_inputs` | [Optional[components.ModelInputModalityV2SupportedInputs5]](../components/modelinputmodalityv2supportedinputs5.mdx) | ➖ | N/A | +| `type` | [components.ModelInputModalityV2TypeFile](../components/modelinputmodalityv2typefile.mdx) | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/modelinputmodalityv2formats1.mdx b/docs/components/modelinputmodalityv2formats1.mdx new file mode 100644 index 000000000..7500aed39 --- /dev/null +++ b/docs/components/modelinputmodalityv2formats1.mdx @@ -0,0 +1,10 @@ +--- +title: "ModelInputModalityV2Formats1" +--- + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `type` | [components.SupportedInputsType1](../components/supportedinputstype1.mdx) | ✔️ | N/A | +| `values` | List[[components.ValueEnum2](../components/valueenum2.mdx)] | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/modelinputmodalityv2formats2.mdx b/docs/components/modelinputmodalityv2formats2.mdx new file mode 100644 index 000000000..f85a9b78b --- /dev/null +++ b/docs/components/modelinputmodalityv2formats2.mdx @@ -0,0 +1,10 @@ +--- +title: "ModelInputModalityV2Formats2" +--- + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `type` | [components.SupportedInputsType2](../components/supportedinputstype2.mdx) | ✔️ | N/A | +| `values` | List[[components.ValueEnum5](../components/valueenum5.mdx)] | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/modelinputmodalityv2formats3.mdx b/docs/components/modelinputmodalityv2formats3.mdx new file mode 100644 index 000000000..b72d4f218 --- /dev/null +++ b/docs/components/modelinputmodalityv2formats3.mdx @@ -0,0 +1,10 @@ +--- +title: "ModelInputModalityV2Formats3" +--- + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `type` | [components.SupportedInputsType3](../components/supportedinputstype3.mdx) | ✔️ | N/A | +| `values` | List[[components.ValueEnum7](../components/valueenum7.mdx)] | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/modelinputmodalityv2formats4.mdx b/docs/components/modelinputmodalityv2formats4.mdx new file mode 100644 index 000000000..519167d51 --- /dev/null +++ b/docs/components/modelinputmodalityv2formats4.mdx @@ -0,0 +1,10 @@ +--- +title: "ModelInputModalityV2Formats4" +--- + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `type` | [components.SupportedInputsType4](../components/supportedinputstype4.mdx) | ✔️ | N/A | +| `values` | List[[components.ValueEnum9](../components/valueenum9.mdx)] | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/modelinputmodalityv2image.mdx b/docs/components/modelinputmodalityv2image.mdx new file mode 100644 index 000000000..011e294fa --- /dev/null +++ b/docs/components/modelinputmodalityv2image.mdx @@ -0,0 +1,11 @@ +--- +title: "ModelInputModalityV2Image" +--- + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `passthrough_parameters` | Dict[str, [components.ParameterDescriptor](../components/parameterdescriptor.mdx)] | ➖ | N/A | +| `supported_inputs` | [Optional[components.ModelInputModalityV2SupportedInputs2]](../components/modelinputmodalityv2supportedinputs2.mdx) | ➖ | N/A | +| `type` | [components.ModelInputModalityV2TypeImage](../components/modelinputmodalityv2typeimage.mdx) | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/modelinputmodalityv2references1.mdx b/docs/components/modelinputmodalityv2references1.mdx new file mode 100644 index 000000000..e8ffcbcd9 --- /dev/null +++ b/docs/components/modelinputmodalityv2references1.mdx @@ -0,0 +1,12 @@ +--- +title: "ModelInputModalityV2References1" +--- + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `max` | *Optional[int]* | ➖ | N/A | +| `min` | *Optional[int]* | ➖ | N/A | +| `type` | [components.SupportedInputsTypeInteger1](../components/supportedinputstypeinteger1.mdx) | ✔️ | N/A | +| `unit` | [Optional[components.UnitInteger1]](../components/unitinteger1.mdx) | ➖ | N/A | \ No newline at end of file diff --git a/docs/components/modelinputmodalityv2references2.mdx b/docs/components/modelinputmodalityv2references2.mdx new file mode 100644 index 000000000..b085129e6 --- /dev/null +++ b/docs/components/modelinputmodalityv2references2.mdx @@ -0,0 +1,12 @@ +--- +title: "ModelInputModalityV2References2" +--- + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `max` | *Optional[int]* | ➖ | N/A | +| `min` | *Optional[int]* | ➖ | N/A | +| `type` | [components.SupportedInputsTypeInteger2](../components/supportedinputstypeinteger2.mdx) | ✔️ | N/A | +| `unit` | [Optional[components.UnitInteger2]](../components/unitinteger2.mdx) | ➖ | N/A | \ No newline at end of file diff --git a/docs/components/modelinputmodalityv2role.mdx b/docs/components/modelinputmodalityv2role.mdx new file mode 100644 index 000000000..02aba1564 --- /dev/null +++ b/docs/components/modelinputmodalityv2role.mdx @@ -0,0 +1,10 @@ +--- +title: "ModelInputModalityV2Role" +--- + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `type` | [components.SupportedInputsType1](../components/supportedinputstype1.mdx) | ✔️ | N/A | +| `values` | List[[components.ValueEnum3](../components/valueenum3.mdx)] | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/modelinputmodalityv2supportedinputs1.mdx b/docs/components/modelinputmodalityv2supportedinputs1.mdx new file mode 100644 index 000000000..764183868 --- /dev/null +++ b/docs/components/modelinputmodalityv2supportedinputs1.mdx @@ -0,0 +1,10 @@ +--- +title: "ModelInputModalityV2SupportedInputs1" +--- + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `max_context_length` | [Optional[components.MaxContextLength]](../components/maxcontextlength.mdx) | ➖ | N/A | +| `max_prompt_length` | [Optional[components.MaxPromptLength]](../components/maxpromptlength.mdx) | ➖ | N/A | \ No newline at end of file diff --git a/docs/components/modelinputmodalityv2supportedinputs2.mdx b/docs/components/modelinputmodalityv2supportedinputs2.mdx new file mode 100644 index 000000000..9e4af0e37 --- /dev/null +++ b/docs/components/modelinputmodalityv2supportedinputs2.mdx @@ -0,0 +1,14 @@ +--- +title: "ModelInputModalityV2SupportedInputs2" +--- + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `detail_levels` | [Optional[components.DetailLevels]](../components/detaillevels.mdx) | ➖ | N/A | +| `formats` | [Optional[components.ModelInputModalityV2Formats1]](../components/modelinputmodalityv2formats1.mdx) | ➖ | N/A | +| `max_content_size_bytes` | [Optional[components.MaxContentSizeBytes1]](../components/maxcontentsizebytes1.mdx) | ➖ | N/A | +| `references` | [Optional[components.ModelInputModalityV2References1]](../components/modelinputmodalityv2references1.mdx) | ➖ | N/A | +| `role` | [Optional[components.ModelInputModalityV2Role]](../components/modelinputmodalityv2role.mdx) | ➖ | N/A | +| `sources` | [Optional[components.Sources1]](../components/sources1.mdx) | ➖ | N/A | \ No newline at end of file diff --git a/docs/components/modelinputmodalityv2supportedinputs3.mdx b/docs/components/modelinputmodalityv2supportedinputs3.mdx new file mode 100644 index 000000000..a2019b0b2 --- /dev/null +++ b/docs/components/modelinputmodalityv2supportedinputs3.mdx @@ -0,0 +1,12 @@ +--- +title: "ModelInputModalityV2SupportedInputs3" +--- + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `formats` | [Optional[components.ModelInputModalityV2Formats2]](../components/modelinputmodalityv2formats2.mdx) | ➖ | N/A | +| `max_content_size_bytes` | [Optional[components.MaxContentSizeBytes2]](../components/maxcontentsizebytes2.mdx) | ➖ | N/A | +| `max_duration_seconds` | [Optional[components.MaxDurationSeconds1]](../components/maxdurationseconds1.mdx) | ➖ | N/A | +| `sources` | [Optional[components.Sources2]](../components/sources2.mdx) | ➖ | N/A | \ No newline at end of file diff --git a/docs/components/modelinputmodalityv2supportedinputs4.mdx b/docs/components/modelinputmodalityv2supportedinputs4.mdx new file mode 100644 index 000000000..2291fd9ec --- /dev/null +++ b/docs/components/modelinputmodalityv2supportedinputs4.mdx @@ -0,0 +1,12 @@ +--- +title: "ModelInputModalityV2SupportedInputs4" +--- + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `formats` | [Optional[components.ModelInputModalityV2Formats3]](../components/modelinputmodalityv2formats3.mdx) | ➖ | N/A | +| `max_content_size_bytes` | [Optional[components.MaxContentSizeBytes3]](../components/maxcontentsizebytes3.mdx) | ➖ | N/A | +| `max_duration_seconds` | [Optional[components.MaxDurationSeconds2]](../components/maxdurationseconds2.mdx) | ➖ | N/A | +| `sources` | [Optional[components.Sources3]](../components/sources3.mdx) | ➖ | N/A | \ No newline at end of file diff --git a/docs/components/modelinputmodalityv2supportedinputs5.mdx b/docs/components/modelinputmodalityv2supportedinputs5.mdx new file mode 100644 index 000000000..ece3a480f --- /dev/null +++ b/docs/components/modelinputmodalityv2supportedinputs5.mdx @@ -0,0 +1,12 @@ +--- +title: "ModelInputModalityV2SupportedInputs5" +--- + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `formats` | [Optional[components.ModelInputModalityV2Formats4]](../components/modelinputmodalityv2formats4.mdx) | ➖ | N/A | +| `max_content_size_bytes` | [Optional[components.MaxContentSizeBytes4]](../components/maxcontentsizebytes4.mdx) | ➖ | N/A | +| `references` | [Optional[components.ModelInputModalityV2References2]](../components/modelinputmodalityv2references2.mdx) | ➖ | N/A | +| `sources` | [Optional[components.Sources4]](../components/sources4.mdx) | ➖ | N/A | \ No newline at end of file diff --git a/docs/components/modelinputmodalityv2text.mdx b/docs/components/modelinputmodalityv2text.mdx new file mode 100644 index 000000000..7c8e3738e --- /dev/null +++ b/docs/components/modelinputmodalityv2text.mdx @@ -0,0 +1,11 @@ +--- +title: "ModelInputModalityV2Text" +--- + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `passthrough_parameters` | Dict[str, [components.ParameterDescriptor](../components/parameterdescriptor.mdx)] | ➖ | N/A | +| `supported_inputs` | [Optional[components.ModelInputModalityV2SupportedInputs1]](../components/modelinputmodalityv2supportedinputs1.mdx) | ➖ | N/A | +| `type` | [components.ModelInputModalityV2TypeText](../components/modelinputmodalityv2typetext.mdx) | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/modelinputmodalityv2typeaudio.mdx b/docs/components/modelinputmodalityv2typeaudio.mdx new file mode 100644 index 000000000..55b86012c --- /dev/null +++ b/docs/components/modelinputmodalityv2typeaudio.mdx @@ -0,0 +1,15 @@ +--- +title: "ModelInputModalityV2TypeAudio" +--- + +## Example Usage + +```python +from openrouter.components import ModelInputModalityV2TypeAudio +value: ModelInputModalityV2TypeAudio = "audio" +``` + + +## Values + +- `"audio"` diff --git a/docs/components/modelinputmodalityv2typefile.mdx b/docs/components/modelinputmodalityv2typefile.mdx new file mode 100644 index 000000000..a3b2d3893 --- /dev/null +++ b/docs/components/modelinputmodalityv2typefile.mdx @@ -0,0 +1,15 @@ +--- +title: "ModelInputModalityV2TypeFile" +--- + +## Example Usage + +```python +from openrouter.components import ModelInputModalityV2TypeFile +value: ModelInputModalityV2TypeFile = "file" +``` + + +## Values + +- `"file"` diff --git a/docs/components/modelinputmodalityv2typeimage.mdx b/docs/components/modelinputmodalityv2typeimage.mdx new file mode 100644 index 000000000..09061043a --- /dev/null +++ b/docs/components/modelinputmodalityv2typeimage.mdx @@ -0,0 +1,15 @@ +--- +title: "ModelInputModalityV2TypeImage" +--- + +## Example Usage + +```python +from openrouter.components import ModelInputModalityV2TypeImage +value: ModelInputModalityV2TypeImage = "image" +``` + + +## Values + +- `"image"` diff --git a/docs/components/modelinputmodalityv2typetext.mdx b/docs/components/modelinputmodalityv2typetext.mdx new file mode 100644 index 000000000..9353272f7 --- /dev/null +++ b/docs/components/modelinputmodalityv2typetext.mdx @@ -0,0 +1,15 @@ +--- +title: "ModelInputModalityV2TypeText" +--- + +## Example Usage + +```python +from openrouter.components import ModelInputModalityV2TypeText +value: ModelInputModalityV2TypeText = "text" +``` + + +## Values + +- `"text"` diff --git a/docs/components/modelinputmodalityv2typevideo.mdx b/docs/components/modelinputmodalityv2typevideo.mdx new file mode 100644 index 000000000..c367d1357 --- /dev/null +++ b/docs/components/modelinputmodalityv2typevideo.mdx @@ -0,0 +1,15 @@ +--- +title: "ModelInputModalityV2TypeVideo" +--- + +## Example Usage + +```python +from openrouter.components import ModelInputModalityV2TypeVideo +value: ModelInputModalityV2TypeVideo = "video" +``` + + +## Values + +- `"video"` diff --git a/docs/components/modelinputmodalityv2video.mdx b/docs/components/modelinputmodalityv2video.mdx new file mode 100644 index 000000000..eb0ec82f5 --- /dev/null +++ b/docs/components/modelinputmodalityv2video.mdx @@ -0,0 +1,11 @@ +--- +title: "ModelInputModalityV2Video" +--- + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `passthrough_parameters` | Dict[str, [components.ParameterDescriptor](../components/parameterdescriptor.mdx)] | ➖ | N/A | +| `supported_inputs` | [Optional[components.ModelInputModalityV2SupportedInputs3]](../components/modelinputmodalityv2supportedinputs3.mdx) | ➖ | N/A | +| `type` | [components.ModelInputModalityV2TypeVideo](../components/modelinputmodalityv2typevideo.mdx) | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/modeloutputmodalityv2.mdx b/docs/components/modeloutputmodalityv2.mdx new file mode 100644 index 000000000..347e67491 --- /dev/null +++ b/docs/components/modeloutputmodalityv2.mdx @@ -0,0 +1,60 @@ +--- +title: "ModelOutputModalityV2" +--- + +## Supported Types + +### `components.ModelOutputModalityV2Text` + +```python +value: components.ModelOutputModalityV2Text = /* values here */ +``` + +### `components.ModelOutputModalityV2Image` + +```python +value: components.ModelOutputModalityV2Image = /* values here */ +``` + +### `components.ModelOutputModalityV2Video` + +```python +value: components.ModelOutputModalityV2Video = /* values here */ +``` + +### `components.ModelOutputModalityV2Speech` + +```python +value: components.ModelOutputModalityV2Speech = /* values here */ +``` + +### `components.ModelOutputModalityV2Transcription` + +```python +value: components.ModelOutputModalityV2Transcription = /* values here */ +``` + +### `components.ModelOutputModalityV2Embeddings` + +```python +value: components.ModelOutputModalityV2Embeddings = /* values here */ +``` + +### `components.ModelOutputModalityV2Rerank` + +```python +value: components.ModelOutputModalityV2Rerank = /* values here */ +``` + +### `components.ModelOutputModalityV2Decisions` + +```python +value: components.ModelOutputModalityV2Decisions = /* values here */ +``` + +### `components.ModelOutputModalityV2Audio` + +```python +value: components.ModelOutputModalityV2Audio = /* values here */ +``` + diff --git a/docs/components/modeloutputmodalityv2audio.mdx b/docs/components/modeloutputmodalityv2audio.mdx new file mode 100644 index 000000000..33120e04c --- /dev/null +++ b/docs/components/modeloutputmodalityv2audio.mdx @@ -0,0 +1,12 @@ +--- +title: "ModelOutputModalityV2Audio" +--- + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `passthrough_parameters` | Dict[str, [components.ParameterDescriptor](../components/parameterdescriptor.mdx)] | ➖ | N/A | +| `streaming` | *Optional[bool]* | ➖ | N/A | +| `supported_parameters` | Dict[str, [components.ParameterDescriptor](../components/parameterdescriptor.mdx)] | ✔️ | N/A | +| `type` | [components.ModelOutputModalityV2TypeAudio](../components/modeloutputmodalityv2typeaudio.mdx) | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/modeloutputmodalityv2decisions.mdx b/docs/components/modeloutputmodalityv2decisions.mdx new file mode 100644 index 000000000..50cc856ac --- /dev/null +++ b/docs/components/modeloutputmodalityv2decisions.mdx @@ -0,0 +1,13 @@ +--- +title: "ModelOutputModalityV2Decisions" +--- + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `max_choice_options` | *Optional[int]* | ➖ | N/A | +| `max_score_levels` | *Optional[int]* | ➖ | N/A | +| `passthrough_parameters` | Dict[str, [components.ParameterDescriptor](../components/parameterdescriptor.mdx)] | ➖ | N/A | +| `supported_parameters` | Dict[str, [components.ParameterDescriptor](../components/parameterdescriptor.mdx)] | ✔️ | N/A | +| `type` | [components.TypeDecisions](../components/typedecisions.mdx) | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/modeloutputmodalityv2embeddings.mdx b/docs/components/modeloutputmodalityv2embeddings.mdx new file mode 100644 index 000000000..882bdd462 --- /dev/null +++ b/docs/components/modeloutputmodalityv2embeddings.mdx @@ -0,0 +1,11 @@ +--- +title: "ModelOutputModalityV2Embeddings" +--- + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `passthrough_parameters` | Dict[str, [components.ParameterDescriptor](../components/parameterdescriptor.mdx)] | ➖ | N/A | +| `supported_parameters` | Dict[str, [components.ParameterDescriptor](../components/parameterdescriptor.mdx)] | ✔️ | N/A | +| `type` | [components.TypeEmbeddings](../components/typeembeddings.mdx) | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/modeloutputmodalityv2image.mdx b/docs/components/modeloutputmodalityv2image.mdx new file mode 100644 index 000000000..049ccd927 --- /dev/null +++ b/docs/components/modeloutputmodalityv2image.mdx @@ -0,0 +1,12 @@ +--- +title: "ModelOutputModalityV2Image" +--- + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `passthrough_parameters` | Dict[str, [components.ParameterDescriptor](../components/parameterdescriptor.mdx)] | ➖ | N/A | +| `streaming` | *Optional[bool]* | ➖ | N/A | +| `supported_parameters` | Dict[str, [components.ParameterDescriptor](../components/parameterdescriptor.mdx)] | ✔️ | N/A | +| `type` | [components.ModelOutputModalityV2TypeImage](../components/modeloutputmodalityv2typeimage.mdx) | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/modeloutputmodalityv2rerank.mdx b/docs/components/modeloutputmodalityv2rerank.mdx new file mode 100644 index 000000000..28917c39d --- /dev/null +++ b/docs/components/modeloutputmodalityv2rerank.mdx @@ -0,0 +1,11 @@ +--- +title: "ModelOutputModalityV2Rerank" +--- + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `passthrough_parameters` | Dict[str, [components.ParameterDescriptor](../components/parameterdescriptor.mdx)] | ➖ | N/A | +| `supported_parameters` | Dict[str, [components.ParameterDescriptor](../components/parameterdescriptor.mdx)] | ✔️ | N/A | +| `type` | [components.TypeRerank](../components/typererank.mdx) | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/modeloutputmodalityv2speech.mdx b/docs/components/modeloutputmodalityv2speech.mdx new file mode 100644 index 000000000..cae7c6cee --- /dev/null +++ b/docs/components/modeloutputmodalityv2speech.mdx @@ -0,0 +1,12 @@ +--- +title: "ModelOutputModalityV2Speech" +--- + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `passthrough_parameters` | Dict[str, [components.ParameterDescriptor](../components/parameterdescriptor.mdx)] | ➖ | N/A | +| `streaming` | *Optional[bool]* | ➖ | N/A | +| `supported_parameters` | Dict[str, [components.ParameterDescriptor](../components/parameterdescriptor.mdx)] | ✔️ | N/A | +| `type` | [components.ModelOutputModalityV2TypeSpeech](../components/modeloutputmodalityv2typespeech.mdx) | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/modeloutputmodalityv2text.mdx b/docs/components/modeloutputmodalityv2text.mdx new file mode 100644 index 000000000..067f80bd0 --- /dev/null +++ b/docs/components/modeloutputmodalityv2text.mdx @@ -0,0 +1,13 @@ +--- +title: "ModelOutputModalityV2Text" +--- + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `max_length` | [Optional[components.MaxLength]](../components/maxlength.mdx) | ➖ | N/A | +| `passthrough_parameters` | Dict[str, [components.ParameterDescriptor](../components/parameterdescriptor.mdx)] | ➖ | N/A | +| `streaming` | *Optional[bool]* | ➖ | N/A | +| `supported_parameters` | Dict[str, [components.ParameterDescriptor](../components/parameterdescriptor.mdx)] | ✔️ | N/A | +| `type` | [components.ModelOutputModalityV2TypeText](../components/modeloutputmodalityv2typetext.mdx) | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/modeloutputmodalityv2transcription.mdx b/docs/components/modeloutputmodalityv2transcription.mdx new file mode 100644 index 000000000..d33eff69b --- /dev/null +++ b/docs/components/modeloutputmodalityv2transcription.mdx @@ -0,0 +1,12 @@ +--- +title: "ModelOutputModalityV2Transcription" +--- + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `passthrough_parameters` | Dict[str, [components.ParameterDescriptor](../components/parameterdescriptor.mdx)] | ➖ | N/A | +| `streaming` | *Optional[bool]* | ➖ | N/A | +| `supported_parameters` | Dict[str, [components.ParameterDescriptor](../components/parameterdescriptor.mdx)] | ✔️ | N/A | +| `type` | [components.TypeTranscription](../components/typetranscription.mdx) | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/modeloutputmodalityv2typeaudio.mdx b/docs/components/modeloutputmodalityv2typeaudio.mdx new file mode 100644 index 000000000..718ccece5 --- /dev/null +++ b/docs/components/modeloutputmodalityv2typeaudio.mdx @@ -0,0 +1,15 @@ +--- +title: "ModelOutputModalityV2TypeAudio" +--- + +## Example Usage + +```python +from openrouter.components import ModelOutputModalityV2TypeAudio +value: ModelOutputModalityV2TypeAudio = "audio" +``` + + +## Values + +- `"audio"` diff --git a/docs/components/modeloutputmodalityv2typeimage.mdx b/docs/components/modeloutputmodalityv2typeimage.mdx new file mode 100644 index 000000000..54403fc22 --- /dev/null +++ b/docs/components/modeloutputmodalityv2typeimage.mdx @@ -0,0 +1,15 @@ +--- +title: "ModelOutputModalityV2TypeImage" +--- + +## Example Usage + +```python +from openrouter.components import ModelOutputModalityV2TypeImage +value: ModelOutputModalityV2TypeImage = "image" +``` + + +## Values + +- `"image"` diff --git a/docs/components/modeloutputmodalityv2typespeech.mdx b/docs/components/modeloutputmodalityv2typespeech.mdx new file mode 100644 index 000000000..a30493e6f --- /dev/null +++ b/docs/components/modeloutputmodalityv2typespeech.mdx @@ -0,0 +1,15 @@ +--- +title: "ModelOutputModalityV2TypeSpeech" +--- + +## Example Usage + +```python +from openrouter.components import ModelOutputModalityV2TypeSpeech +value: ModelOutputModalityV2TypeSpeech = "speech" +``` + + +## Values + +- `"speech"` diff --git a/docs/components/modeloutputmodalityv2typetext.mdx b/docs/components/modeloutputmodalityv2typetext.mdx new file mode 100644 index 000000000..8cc1ecbec --- /dev/null +++ b/docs/components/modeloutputmodalityv2typetext.mdx @@ -0,0 +1,15 @@ +--- +title: "ModelOutputModalityV2TypeText" +--- + +## Example Usage + +```python +from openrouter.components import ModelOutputModalityV2TypeText +value: ModelOutputModalityV2TypeText = "text" +``` + + +## Values + +- `"text"` diff --git a/docs/components/modeloutputmodalityv2typevideo.mdx b/docs/components/modeloutputmodalityv2typevideo.mdx new file mode 100644 index 000000000..bd6a36750 --- /dev/null +++ b/docs/components/modeloutputmodalityv2typevideo.mdx @@ -0,0 +1,15 @@ +--- +title: "ModelOutputModalityV2TypeVideo" +--- + +## Example Usage + +```python +from openrouter.components import ModelOutputModalityV2TypeVideo +value: ModelOutputModalityV2TypeVideo = "video" +``` + + +## Values + +- `"video"` diff --git a/docs/components/modeloutputmodalityv2unit.mdx b/docs/components/modeloutputmodalityv2unit.mdx new file mode 100644 index 000000000..b30df6a40 --- /dev/null +++ b/docs/components/modeloutputmodalityv2unit.mdx @@ -0,0 +1,23 @@ +--- +title: "ModelOutputModalityV2Unit" +--- + +## Example Usage + +```python +from openrouter.components import ModelOutputModalityV2Unit + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: ModelOutputModalityV2Unit = "second" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"second"` +- `"pixel"` +- `"byte"` +- `"token"` +- `"character"` diff --git a/docs/components/modeloutputmodalityv2video.mdx b/docs/components/modeloutputmodalityv2video.mdx new file mode 100644 index 000000000..c73e82ad7 --- /dev/null +++ b/docs/components/modeloutputmodalityv2video.mdx @@ -0,0 +1,12 @@ +--- +title: "ModelOutputModalityV2Video" +--- + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `passthrough_parameters` | Dict[str, [components.ParameterDescriptor](../components/parameterdescriptor.mdx)] | ➖ | N/A | +| `streaming` | *Optional[bool]* | ➖ | N/A | +| `supported_parameters` | Dict[str, [components.ParameterDescriptor](../components/parameterdescriptor.mdx)] | ✔️ | N/A | +| `type` | [components.ModelOutputModalityV2TypeVideo](../components/modeloutputmodalityv2typevideo.mdx) | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/parameterdescriptor.mdx b/docs/components/parameterdescriptor.mdx new file mode 100644 index 000000000..bd6b09b74 --- /dev/null +++ b/docs/components/parameterdescriptor.mdx @@ -0,0 +1,20 @@ +--- +title: "ParameterDescriptor" +--- + +A request parameter descriptor: `type` is range, integer, boolean, enum, array, object or unknown, with the constraint fields of that type. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | +| `default` | [Optional[components.Default]](../components/default.mdx) | ➖ | N/A | +| `items` | [Optional[components.ParameterDescriptor]](../components/parameterdescriptor.mdx) | ➖ | A request parameter descriptor: `type` is range, integer, boolean, enum, array, object or unknown, with the constraint fields of that type. | +| `max` | *Optional[float]* | ➖ | N/A | +| `max_items` | *Optional[int]* | ➖ | N/A | +| `min` | *Optional[float]* | ➖ | N/A | +| `properties` | Dict[str, [components.ParameterDescriptor](../components/parameterdescriptor.mdx)] | ➖ | N/A | +| `type` | [components.ParameterDescriptorType](../components/parameterdescriptortype.mdx) | ✔️ | N/A | +| `unit` | [Optional[components.ParameterDescriptorUnit]](../components/parameterdescriptorunit.mdx) | ➖ | N/A | +| `values` | List[[components.ParameterDescriptorValue](../components/parameterdescriptorvalue.mdx)] | ➖ | N/A | \ No newline at end of file diff --git a/docs/components/parameterdescriptortype.mdx b/docs/components/parameterdescriptortype.mdx new file mode 100644 index 000000000..3b867d92e --- /dev/null +++ b/docs/components/parameterdescriptortype.mdx @@ -0,0 +1,25 @@ +--- +title: "ParameterDescriptorType" +--- + +## Example Usage + +```python +from openrouter.components import ParameterDescriptorType + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: ParameterDescriptorType = "range" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"range"` +- `"integer"` +- `"boolean"` +- `"enum"` +- `"array"` +- `"object"` +- `"unknown"` diff --git a/docs/components/parameterdescriptorunit.mdx b/docs/components/parameterdescriptorunit.mdx new file mode 100644 index 000000000..f9108896c --- /dev/null +++ b/docs/components/parameterdescriptorunit.mdx @@ -0,0 +1,23 @@ +--- +title: "ParameterDescriptorUnit" +--- + +## Example Usage + +```python +from openrouter.components import ParameterDescriptorUnit + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: ParameterDescriptorUnit = "second" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"second"` +- `"pixel"` +- `"byte"` +- `"token"` +- `"character"` diff --git a/docs/components/parameterdescriptorvalue.mdx b/docs/components/parameterdescriptorvalue.mdx new file mode 100644 index 000000000..01e2ab89f --- /dev/null +++ b/docs/components/parameterdescriptorvalue.mdx @@ -0,0 +1,18 @@ +--- +title: "ParameterDescriptorValue" +--- + +## Supported Types + +### `str` + +```python +value: str = /* values here */ +``` + +### `float` + +```python +value: float = /* values here */ +``` + diff --git a/docs/components/references.mdx b/docs/components/referencesenum.mdx similarity index 63% rename from docs/components/references.mdx rename to docs/components/referencesenum.mdx index 02f51497f..15f88e0f7 100644 --- a/docs/components/references.mdx +++ b/docs/components/referencesenum.mdx @@ -1,5 +1,5 @@ --- -title: "References" +title: "ReferencesEnum" --- `excluded`: `voice` is rejected when the request also sends a nonempty `input_references`. Absent: they can be combined. @@ -7,8 +7,8 @@ title: "References" ## Example Usage ```python -from openrouter.components import References -value: References = "excluded" +from openrouter.components import ReferencesEnum +value: ReferencesEnum = "excluded" ``` diff --git a/docs/components/sources1.mdx b/docs/components/sources1.mdx new file mode 100644 index 000000000..7be5ad36c --- /dev/null +++ b/docs/components/sources1.mdx @@ -0,0 +1,10 @@ +--- +title: "Sources1" +--- + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `type` | [components.SupportedInputsType1](../components/supportedinputstype1.mdx) | ✔️ | N/A | +| `values` | List[[components.ValueEnum4](../components/valueenum4.mdx)] | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/sources2.mdx b/docs/components/sources2.mdx new file mode 100644 index 000000000..8b6356e50 --- /dev/null +++ b/docs/components/sources2.mdx @@ -0,0 +1,10 @@ +--- +title: "Sources2" +--- + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `type` | [components.SupportedInputsType2](../components/supportedinputstype2.mdx) | ✔️ | N/A | +| `values` | List[[components.ValueEnum6](../components/valueenum6.mdx)] | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/sources3.mdx b/docs/components/sources3.mdx new file mode 100644 index 000000000..c5e858950 --- /dev/null +++ b/docs/components/sources3.mdx @@ -0,0 +1,10 @@ +--- +title: "Sources3" +--- + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `type` | [components.SupportedInputsType3](../components/supportedinputstype3.mdx) | ✔️ | N/A | +| `values` | List[[components.ValueEnum8](../components/valueenum8.mdx)] | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/sources4.mdx b/docs/components/sources4.mdx new file mode 100644 index 000000000..92c18d42e --- /dev/null +++ b/docs/components/sources4.mdx @@ -0,0 +1,10 @@ +--- +title: "Sources4" +--- + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `type` | [components.SupportedInputsType4](../components/supportedinputstype4.mdx) | ✔️ | N/A | +| `values` | List[[components.ValueEnum10](../components/valueenum10.mdx)] | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/speechinputmodalityaudio.mdx b/docs/components/speechinputmodalityaudio.mdx index c5d518162..a6ad3370b 100644 --- a/docs/components/speechinputmodalityaudio.mdx +++ b/docs/components/speechinputmodalityaudio.mdx @@ -6,5 +6,5 @@ title: "SpeechInputModalityAudio" | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `supported_inputs` | [components.SupportedInputs1](../components/supportedinputs1.mdx) | ✔️ | `references` is how many audio clips a request may send. With more than one, some providers require the text to address every clip with an `@AudioN` placeholder. | -| `type` | [components.TypeAudio](../components/typeaudio.mdx) | ✔️ | N/A | \ No newline at end of file +| `supported_inputs` | [components.SpeechInputModalitySupportedInputs1](../components/speechinputmodalitysupportedinputs1.mdx) | ✔️ | `references` is how many audio clips a request may send. With more than one, some providers require the text to address every clip with an `@AudioN` placeholder. | +| `type` | [components.SpeechInputModalityTypeAudio](../components/speechinputmodalitytypeaudio.mdx) | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/speechinputmodalityimage.mdx b/docs/components/speechinputmodalityimage.mdx index 1e5957cbd..2b5b9d917 100644 --- a/docs/components/speechinputmodalityimage.mdx +++ b/docs/components/speechinputmodalityimage.mdx @@ -4,7 +4,7 @@ title: "SpeechInputModalityImage" ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `supported_inputs` | [components.SupportedInputs2](../components/supportedinputs2.mdx) | ✔️ | N/A | -| `type` | [components.SpeechInputModalityTypeImage](../components/speechinputmodalitytypeimage.mdx) | ✔️ | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `supported_inputs` | [components.SpeechInputModalitySupportedInputs2](../components/speechinputmodalitysupportedinputs2.mdx) | ✔️ | N/A | +| `type` | [components.SpeechInputModalityTypeImage](../components/speechinputmodalitytypeimage.mdx) | ✔️ | N/A | \ No newline at end of file diff --git a/docs/components/supportedinputs1.mdx b/docs/components/speechinputmodalitysupportedinputs1.mdx similarity index 96% rename from docs/components/supportedinputs1.mdx rename to docs/components/speechinputmodalitysupportedinputs1.mdx index f9553dd27..06b49bea8 100644 --- a/docs/components/supportedinputs1.mdx +++ b/docs/components/speechinputmodalitysupportedinputs1.mdx @@ -1,5 +1,5 @@ --- -title: "SupportedInputs1" +title: "SpeechInputModalitySupportedInputs1" --- `references` is how many audio clips a request may send. With more than one, some providers require the text to address every clip with an `@AudioN` placeholder. diff --git a/docs/components/supportedinputs2.mdx b/docs/components/speechinputmodalitysupportedinputs2.mdx similarity index 98% rename from docs/components/supportedinputs2.mdx rename to docs/components/speechinputmodalitysupportedinputs2.mdx index 9e517d78b..79cc36d2d 100644 --- a/docs/components/supportedinputs2.mdx +++ b/docs/components/speechinputmodalitysupportedinputs2.mdx @@ -1,5 +1,5 @@ --- -title: "SupportedInputs2" +title: "SpeechInputModalitySupportedInputs2" --- ## Fields diff --git a/docs/components/speechinputmodalitytypeaudio.mdx b/docs/components/speechinputmodalitytypeaudio.mdx new file mode 100644 index 000000000..aeb802f17 --- /dev/null +++ b/docs/components/speechinputmodalitytypeaudio.mdx @@ -0,0 +1,15 @@ +--- +title: "SpeechInputModalityTypeAudio" +--- + +## Example Usage + +```python +from openrouter.components import SpeechInputModalityTypeAudio +value: SpeechInputModalityTypeAudio = "audio" +``` + + +## Values + +- `"audio"` diff --git a/docs/components/speechvoiceparameter.mdx b/docs/components/speechvoiceparameter.mdx index ff2bc2e42..352e527e8 100644 --- a/docs/components/speechvoiceparameter.mdx +++ b/docs/components/speechvoiceparameter.mdx @@ -9,6 +9,6 @@ title: "SpeechVoiceParameter" | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `references` | [Optional[components.References]](../components/references.mdx) | ➖ | `excluded`: `voice` is rejected when the request also sends a nonempty `input_references`. Absent: they can be combined. | +| `references` | [Optional[components.ReferencesEnum]](../components/referencesenum.mdx) | ➖ | `excluded`: `voice` is rejected when the request also sends a nonempty `input_references`. Absent: they can be combined. | | `type` | [components.SpeechVoiceParameterType](../components/speechvoiceparametertype.mdx) | ✔️ | N/A | | `values` | List[*str*] | ➖ | N/A | \ No newline at end of file diff --git a/docs/components/supportedinputstype1.mdx b/docs/components/supportedinputstype1.mdx new file mode 100644 index 000000000..97c2193aa --- /dev/null +++ b/docs/components/supportedinputstype1.mdx @@ -0,0 +1,15 @@ +--- +title: "SupportedInputsType1" +--- + +## Example Usage + +```python +from openrouter.components import SupportedInputsType1 +value: SupportedInputsType1 = "enum" +``` + + +## Values + +- `"enum"` diff --git a/docs/components/supportedinputstype2.mdx b/docs/components/supportedinputstype2.mdx new file mode 100644 index 000000000..8c081ee14 --- /dev/null +++ b/docs/components/supportedinputstype2.mdx @@ -0,0 +1,15 @@ +--- +title: "SupportedInputsType2" +--- + +## Example Usage + +```python +from openrouter.components import SupportedInputsType2 +value: SupportedInputsType2 = "enum" +``` + + +## Values + +- `"enum"` diff --git a/docs/components/supportedinputstype3.mdx b/docs/components/supportedinputstype3.mdx new file mode 100644 index 000000000..3786caa7a --- /dev/null +++ b/docs/components/supportedinputstype3.mdx @@ -0,0 +1,15 @@ +--- +title: "SupportedInputsType3" +--- + +## Example Usage + +```python +from openrouter.components import SupportedInputsType3 +value: SupportedInputsType3 = "enum" +``` + + +## Values + +- `"enum"` diff --git a/docs/components/supportedinputstype4.mdx b/docs/components/supportedinputstype4.mdx new file mode 100644 index 000000000..2cb68bd22 --- /dev/null +++ b/docs/components/supportedinputstype4.mdx @@ -0,0 +1,15 @@ +--- +title: "SupportedInputsType4" +--- + +## Example Usage + +```python +from openrouter.components import SupportedInputsType4 +value: SupportedInputsType4 = "enum" +``` + + +## Values + +- `"enum"` diff --git a/docs/components/supportedinputstypeinteger1.mdx b/docs/components/supportedinputstypeinteger1.mdx new file mode 100644 index 000000000..5c4f0a5e8 --- /dev/null +++ b/docs/components/supportedinputstypeinteger1.mdx @@ -0,0 +1,15 @@ +--- +title: "SupportedInputsTypeInteger1" +--- + +## Example Usage + +```python +from openrouter.components import SupportedInputsTypeInteger1 +value: SupportedInputsTypeInteger1 = "integer" +``` + + +## Values + +- `"integer"` diff --git a/docs/components/supportedinputstypeinteger2.mdx b/docs/components/supportedinputstypeinteger2.mdx new file mode 100644 index 000000000..0f4b0d7a2 --- /dev/null +++ b/docs/components/supportedinputstypeinteger2.mdx @@ -0,0 +1,15 @@ +--- +title: "SupportedInputsTypeInteger2" +--- + +## Example Usage + +```python +from openrouter.components import SupportedInputsTypeInteger2 +value: SupportedInputsTypeInteger2 = "integer" +``` + + +## Values + +- `"integer"` diff --git a/docs/components/typeaudio.mdx b/docs/components/typeaudio.mdx deleted file mode 100644 index 9741986e7..000000000 --- a/docs/components/typeaudio.mdx +++ /dev/null @@ -1,15 +0,0 @@ ---- -title: "TypeAudio" ---- - -## Example Usage - -```python -from openrouter.components import TypeAudio -value: TypeAudio = "audio" -``` - - -## Values - -- `"audio"` diff --git a/docs/components/typedecisions.mdx b/docs/components/typedecisions.mdx new file mode 100644 index 000000000..e00b45cdd --- /dev/null +++ b/docs/components/typedecisions.mdx @@ -0,0 +1,15 @@ +--- +title: "TypeDecisions" +--- + +## Example Usage + +```python +from openrouter.components import TypeDecisions +value: TypeDecisions = "decisions" +``` + + +## Values + +- `"decisions"` diff --git a/docs/components/typeembeddings.mdx b/docs/components/typeembeddings.mdx new file mode 100644 index 000000000..c1981f685 --- /dev/null +++ b/docs/components/typeembeddings.mdx @@ -0,0 +1,15 @@ +--- +title: "TypeEmbeddings" +--- + +## Example Usage + +```python +from openrouter.components import TypeEmbeddings +value: TypeEmbeddings = "embeddings" +``` + + +## Values + +- `"embeddings"` diff --git a/docs/components/typererank.mdx b/docs/components/typererank.mdx new file mode 100644 index 000000000..fead11213 --- /dev/null +++ b/docs/components/typererank.mdx @@ -0,0 +1,15 @@ +--- +title: "TypeRerank" +--- + +## Example Usage + +```python +from openrouter.components import TypeRerank +value: TypeRerank = "rerank" +``` + + +## Values + +- `"rerank"` diff --git a/docs/components/typetranscription.mdx b/docs/components/typetranscription.mdx new file mode 100644 index 000000000..878499d18 --- /dev/null +++ b/docs/components/typetranscription.mdx @@ -0,0 +1,15 @@ +--- +title: "TypeTranscription" +--- + +## Example Usage + +```python +from openrouter.components import TypeTranscription +value: TypeTranscription = "transcription" +``` + + +## Values + +- `"transcription"` diff --git a/docs/components/unitinteger1.mdx b/docs/components/unitinteger1.mdx new file mode 100644 index 000000000..4b1a91fbd --- /dev/null +++ b/docs/components/unitinteger1.mdx @@ -0,0 +1,23 @@ +--- +title: "UnitInteger1" +--- + +## Example Usage + +```python +from openrouter.components import UnitInteger1 + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: UnitInteger1 = "second" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"second"` +- `"pixel"` +- `"byte"` +- `"token"` +- `"character"` diff --git a/docs/components/unitinteger2.mdx b/docs/components/unitinteger2.mdx new file mode 100644 index 000000000..b200bebc6 --- /dev/null +++ b/docs/components/unitinteger2.mdx @@ -0,0 +1,23 @@ +--- +title: "UnitInteger2" +--- + +## Example Usage + +```python +from openrouter.components import UnitInteger2 + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: UnitInteger2 = "second" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"second"` +- `"pixel"` +- `"byte"` +- `"token"` +- `"character"` diff --git a/docs/components/valueenum1.mdx b/docs/components/valueenum1.mdx new file mode 100644 index 000000000..521e62f24 --- /dev/null +++ b/docs/components/valueenum1.mdx @@ -0,0 +1,22 @@ +--- +title: "ValueEnum1" +--- + +## Example Usage + +```python +from openrouter.components import ValueEnum1 + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: ValueEnum1 = "auto" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"auto"` +- `"low"` +- `"high"` +- `"original"` diff --git a/docs/components/valueenum10.mdx b/docs/components/valueenum10.mdx new file mode 100644 index 000000000..07019e236 --- /dev/null +++ b/docs/components/valueenum10.mdx @@ -0,0 +1,20 @@ +--- +title: "ValueEnum10" +--- + +## Example Usage + +```python +from openrouter.components import ValueEnum10 + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: ValueEnum10 = "url" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"url"` +- `"base64"` diff --git a/docs/components/valueenum2.mdx b/docs/components/valueenum2.mdx new file mode 100644 index 000000000..bf88f6bed --- /dev/null +++ b/docs/components/valueenum2.mdx @@ -0,0 +1,22 @@ +--- +title: "ValueEnum2" +--- + +## Example Usage + +```python +from openrouter.components import ValueEnum2 + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: ValueEnum2 = "image/png" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"image/png"` +- `"image/jpeg"` +- `"image/webp"` +- `"image/gif"` diff --git a/docs/components/valueenum3.mdx b/docs/components/valueenum3.mdx new file mode 100644 index 000000000..68c62cb44 --- /dev/null +++ b/docs/components/valueenum3.mdx @@ -0,0 +1,21 @@ +--- +title: "ValueEnum3" +--- + +## Example Usage + +```python +from openrouter.components import ValueEnum3 + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: ValueEnum3 = "reference" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"reference"` +- `"first_frame"` +- `"last_frame"` diff --git a/docs/components/valueenum4.mdx b/docs/components/valueenum4.mdx new file mode 100644 index 000000000..f2af66872 --- /dev/null +++ b/docs/components/valueenum4.mdx @@ -0,0 +1,20 @@ +--- +title: "ValueEnum4" +--- + +## Example Usage + +```python +from openrouter.components import ValueEnum4 + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: ValueEnum4 = "url" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"url"` +- `"base64"` diff --git a/docs/components/valueenum5.mdx b/docs/components/valueenum5.mdx new file mode 100644 index 000000000..adf9d3de4 --- /dev/null +++ b/docs/components/valueenum5.mdx @@ -0,0 +1,20 @@ +--- +title: "ValueEnum5" +--- + +## Example Usage + +```python +from openrouter.components import ValueEnum5 + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: ValueEnum5 = "video/mp4" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"video/mp4"` +- `"video/webm"` diff --git a/docs/components/valueenum6.mdx b/docs/components/valueenum6.mdx new file mode 100644 index 000000000..10969cfe7 --- /dev/null +++ b/docs/components/valueenum6.mdx @@ -0,0 +1,20 @@ +--- +title: "ValueEnum6" +--- + +## Example Usage + +```python +from openrouter.components import ValueEnum6 + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: ValueEnum6 = "url" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"url"` +- `"base64"` diff --git a/docs/components/valueenum7.mdx b/docs/components/valueenum7.mdx new file mode 100644 index 000000000..6737ddf5f --- /dev/null +++ b/docs/components/valueenum7.mdx @@ -0,0 +1,20 @@ +--- +title: "ValueEnum7" +--- + +## Example Usage + +```python +from openrouter.components import ValueEnum7 + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: ValueEnum7 = "audio/wav" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"audio/wav"` +- `"audio/mpeg"` diff --git a/docs/components/valueenum8.mdx b/docs/components/valueenum8.mdx new file mode 100644 index 000000000..9a218ded2 --- /dev/null +++ b/docs/components/valueenum8.mdx @@ -0,0 +1,20 @@ +--- +title: "ValueEnum8" +--- + +## Example Usage + +```python +from openrouter.components import ValueEnum8 + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: ValueEnum8 = "url" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"url"` +- `"base64"` diff --git a/docs/components/valueenum9.mdx b/docs/components/valueenum9.mdx new file mode 100644 index 000000000..eafc328db --- /dev/null +++ b/docs/components/valueenum9.mdx @@ -0,0 +1,24 @@ +--- +title: "ValueEnum9" +--- + +## Example Usage + +```python +from openrouter.components import ValueEnum9 + +# Open enum: unrecognized values are captured as UnrecognizedStr +value: ValueEnum9 = "application/pdf" +``` + + +## Values + +This is an open enum. Unrecognized values will not fail type checks. + +- `"application/pdf"` +- `"text/plain"` +- `"text/markdown"` +- `"text/html"` +- `"text/csv"` +- `"application/json"` diff --git a/docs/components/videomodel.mdx b/docs/components/videomodel.mdx index 49399d9bc..c9317d8c5 100644 --- a/docs/components/videomodel.mdx +++ b/docs/components/videomodel.mdx @@ -4,22 +4,24 @@ title: "VideoModel" ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `allowed_passthrough_parameters` | List[*str*] | ✔️ | List of parameters that are allowed to be passed through to the provider | | -| `canonical_slug` | *str* | ✔️ | Canonical slug for the model | openai/gpt-4 | -| `created` | *int* | ✔️ | Unix timestamp of when the model was created | 1692901234 | -| `creativity` | List[*int*] | ✔️ | Supported creativity levels for video upscaling models | | -| `description` | *Optional[str]* | ➖ | Description of the model | GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy. | -| `generate_audio` | *Nullable[bool]* | ✔️ | Whether the model supports generating audio alongside video | | -| `hugging_face_id` | *OptionalNullable[str]* | ➖ | Hugging Face model identifier, if applicable | microsoft/DialoGPT-medium | -| `id` | *str* | ✔️ | Unique identifier for the model | openai/gpt-4 | -| `name` | *str* | ✔️ | Display name of the model | GPT-4 | -| `pricing_skus` | Dict[str, *str*] | ➖ | Pricing SKUs with provider prefix stripped, values as strings | | -| `seed` | *Nullable[bool]* | ✔️ | Whether the model supports deterministic generation via seed parameter | | -| `supported_aspect_ratios` | List[[components.SupportedAspectRatio](../components/supportedaspectratio.mdx)] | ✔️ | Supported output aspect ratios | | -| `supported_durations` | List[*int*] | ✔️ | Supported video durations in seconds. -1 means the model accepts duration -1 and chooses the length itself. | | -| `supported_frame_images` | List[[components.SupportedFrameImage](../components/supportedframeimage.mdx)] | ✔️ | Supported frame image types (e.g. first_frame, last_frame) | | -| `supported_resolutions` | List[[components.SupportedResolution](../components/supportedresolution.mdx)] | ✔️ | Supported output resolutions | | -| `supported_sizes` | List[[components.SupportedSize](../components/supportedsize.mdx)] | ✔️ | Supported output sizes (width x height) | | -| `upscale_factor` | [Nullable[components.UpscaleFactor]](../components/upscalefactor.mdx) | ✔️ | Supported upscale factor range for video upscaling models | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | +| `allowed_passthrough_parameters` | List[*str*] | ✔️ | List of parameters that are allowed to be passed through to the provider | | +| `canonical_slug` | *str* | ✔️ | Canonical slug for the model | openai/gpt-4 | +| `created` | *int* | ✔️ | Unix timestamp of when the model was created | 1692901234 | +| `creativity` | List[*int*] | ✔️ | Supported creativity levels for video upscaling models | | +| `description` | *Optional[str]* | ➖ | Description of the model | GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy. | +| `generate_audio` | *Nullable[bool]* | ✔️ | Whether the model supports generating audio alongside video | | +| `hugging_face_id` | *OptionalNullable[str]* | ➖ | Hugging Face model identifier, if applicable | microsoft/DialoGPT-medium | +| `id` | *str* | ✔️ | Unique identifier for the model | openai/gpt-4 | +| `input_modalities` | List[[components.ModelInputModalityV2](../components/modelinputmodalityv2.mdx)] | ➖ | Typed inputs the model accepts, following the Models API V2 document. An image input lists the frame roles it may take. | | +| `name` | *str* | ✔️ | Display name of the model | GPT-4 | +| `output_modalities` | List[[components.ModelOutputModalityV2](../components/modeloutputmodalityv2.mdx)] | ➖ | Typed outputs with the request fields each accepts, following the Models API V2 document. Pricing stays in `pricing_skus`. | | +| `pricing_skus` | Dict[str, *str*] | ➖ | Pricing SKUs with provider prefix stripped, values as strings | | +| `seed` | *Nullable[bool]* | ✔️ | Whether the model supports deterministic generation via seed parameter | | +| `supported_aspect_ratios` | List[[components.SupportedAspectRatio](../components/supportedaspectratio.mdx)] | ✔️ | Supported output aspect ratios | | +| `supported_durations` | List[*int*] | ✔️ | Supported video durations in seconds. -1 means the model accepts duration -1 and chooses the length itself. | | +| `supported_frame_images` | List[[components.SupportedFrameImage](../components/supportedframeimage.mdx)] | ✔️ | Supported frame image types (e.g. first_frame, last_frame) | | +| `supported_resolutions` | List[[components.SupportedResolution](../components/supportedresolution.mdx)] | ✔️ | Supported output resolutions | | +| `supported_sizes` | List[[components.SupportedSize](../components/supportedsize.mdx)] | ✔️ | Supported output sizes (width x height) | | +| `upscale_factor` | [Nullable[components.UpscaleFactor]](../components/upscalefactor.mdx) | ✔️ | Supported upscale factor range for video upscaling models | | \ No newline at end of file diff --git a/docs/operations/listorganizationmembersdata.mdx b/docs/operations/listorganizationmembersdata.mdx index f65b92ed5..074f84fca 100644 --- a/docs/operations/listorganizationmembersdata.mdx +++ b/docs/operations/listorganizationmembersdata.mdx @@ -4,10 +4,11 @@ title: "ListOrganizationMembersData" ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `email` | *str* | ✔️ | Email address of the member | jane.doe@example.com | -| `first_name` | *Nullable[str]* | ✔️ | First name of the member | Jane | -| `id` | *str* | ✔️ | User ID of the organization member | user_2dHFtVWx2n56w6HkM0000000000 | -| `last_name` | *Nullable[str]* | ✔️ | Last name of the member | Doe | -| `role` | [operations.Role](../operations/role.mdx) | ✔️ | Role of the member in the organization. `org:viewer` is coming soon and not yet available. Once launched, it has read-only organization access: it can view organization settings, billing and workspaces but not change them. Workspace roles can still grant write access in specific workspaces. | org:member | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `email` | *str* | ✔️ | Email address of the member | jane.doe@example.com | +| `external_id` | *Nullable[str]* | ✔️ | The member's SCIM user ID, which your identity provider stores for their OpenRouter account (Okta shows it as External ID); not the SCIM `externalId` attribute. Set when your organization's SCIM directory provisions, updates or syncs the member. Null when this organization's directory did not provision the member (for example, they were invited, signed up directly, or provisioned by another organization's directory) or has not synced them yet. Members can keep their last synced value after the directory is removed. | scim_usr_3J9P6a5UiLQcpRMGx4bdOVrKceF | +| `first_name` | *Nullable[str]* | ✔️ | First name of the member | Jane | +| `id` | *str* | ✔️ | User ID of the organization member | user_2dHFtVWx2n56w6HkM0000000000 | +| `last_name` | *Nullable[str]* | ✔️ | Last name of the member | Doe | +| `role` | [operations.Role](../operations/role.mdx) | ✔️ | Role of the member in the organization. `org:viewer` is coming soon and not yet available. Once launched, it has read-only organization access: it can view organization settings, billing and workspaces but not change them. Workspace roles can still grant write access in specific workspaces. | org:member | \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index b287520ae..3091edf70 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openrouter" -version = "1.3.220" +version = "1.3.221" 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 29ef7631b..0d900a872 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.220" +__version__: str = "1.3.221" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.950.13" -__user_agent__: str = "speakeasy-sdk/python 1.3.220 2.950.13 1.0.0 openrouter" +__user_agent__: str = "speakeasy-sdk/python 1.3.221 2.950.13 1.0.0 openrouter" try: if __package__ is not None: diff --git a/src/openrouter/components/__init__.py b/src/openrouter/components/__init__.py index 2c11595a5..5f2f0c2f1 100644 --- a/src/openrouter/components/__init__.py +++ b/src/openrouter/components/__init__.py @@ -2621,7 +2621,7 @@ Billable, ImagePricingEntry, ImagePricingEntryTypedDict, - Unit, + ImagePricingEntryUnit, ) from .imagestreamingresponse import ( ImageStreamingResponse, @@ -3245,7 +3245,138 @@ ) from .modelbenchmarks import ModelBenchmarks, ModelBenchmarksTypedDict from .modelgroup import ModelGroup + from .modelinputmodalityv2 import ( + DetailLevels, + DetailLevelsTypedDict, + MaxContentSizeBytes1, + MaxContentSizeBytes1TypedDict, + MaxContentSizeBytes2, + MaxContentSizeBytes2TypedDict, + MaxContentSizeBytes3, + MaxContentSizeBytes3TypedDict, + MaxContentSizeBytes4, + MaxContentSizeBytes4TypedDict, + MaxContentSizeBytesUnit1, + MaxContentSizeBytesUnit2, + MaxContentSizeBytesUnit3, + MaxContentSizeBytesUnit4, + MaxContextLength, + MaxContextLengthTypedDict, + MaxContextLengthUnit, + MaxDurationSeconds1, + MaxDurationSeconds1TypedDict, + MaxDurationSeconds2, + MaxDurationSeconds2TypedDict, + MaxDurationSecondsUnit1, + MaxDurationSecondsUnit2, + MaxPromptLength, + MaxPromptLengthTypedDict, + MaxPromptLengthUnit, + ModelInputModalityV2, + ModelInputModalityV2Audio, + ModelInputModalityV2AudioTypedDict, + ModelInputModalityV2File, + ModelInputModalityV2FileTypedDict, + ModelInputModalityV2Formats1, + ModelInputModalityV2Formats1TypedDict, + ModelInputModalityV2Formats2, + ModelInputModalityV2Formats2TypedDict, + ModelInputModalityV2Formats3, + ModelInputModalityV2Formats3TypedDict, + ModelInputModalityV2Formats4, + ModelInputModalityV2Formats4TypedDict, + ModelInputModalityV2Image, + ModelInputModalityV2ImageTypedDict, + ModelInputModalityV2References1, + ModelInputModalityV2References1TypedDict, + ModelInputModalityV2References2, + ModelInputModalityV2References2TypedDict, + ModelInputModalityV2Role, + ModelInputModalityV2RoleTypedDict, + ModelInputModalityV2SupportedInputs1, + ModelInputModalityV2SupportedInputs1TypedDict, + ModelInputModalityV2SupportedInputs2, + ModelInputModalityV2SupportedInputs2TypedDict, + ModelInputModalityV2SupportedInputs3, + ModelInputModalityV2SupportedInputs3TypedDict, + ModelInputModalityV2SupportedInputs4, + ModelInputModalityV2SupportedInputs4TypedDict, + ModelInputModalityV2SupportedInputs5, + ModelInputModalityV2SupportedInputs5TypedDict, + ModelInputModalityV2Text, + ModelInputModalityV2TextTypedDict, + ModelInputModalityV2TypeAudio, + ModelInputModalityV2TypeFile, + ModelInputModalityV2TypeImage, + ModelInputModalityV2TypeText, + ModelInputModalityV2TypeVideo, + ModelInputModalityV2TypedDict, + ModelInputModalityV2Video, + ModelInputModalityV2VideoTypedDict, + Sources1, + Sources1TypedDict, + Sources2, + Sources2TypedDict, + Sources3, + Sources3TypedDict, + Sources4, + Sources4TypedDict, + SupportedInputsType1, + SupportedInputsType2, + SupportedInputsType3, + SupportedInputsType4, + SupportedInputsTypeInteger1, + SupportedInputsTypeInteger2, + UnitInteger1, + UnitInteger2, + UnknownModelInputModalityV2, + ValueEnum1, + ValueEnum10, + ValueEnum2, + ValueEnum3, + ValueEnum4, + ValueEnum5, + ValueEnum6, + ValueEnum7, + ValueEnum8, + ValueEnum9, + ) from .modellinks import ModelLinks, ModelLinksTypedDict + from .modeloutputmodalityv2 import ( + MaxLength, + MaxLengthTypedDict, + ModelOutputModalityV2, + ModelOutputModalityV2Audio, + ModelOutputModalityV2AudioTypedDict, + ModelOutputModalityV2Decisions, + ModelOutputModalityV2DecisionsTypedDict, + ModelOutputModalityV2Embeddings, + ModelOutputModalityV2EmbeddingsTypedDict, + ModelOutputModalityV2Image, + ModelOutputModalityV2ImageTypedDict, + ModelOutputModalityV2Rerank, + ModelOutputModalityV2RerankTypedDict, + ModelOutputModalityV2Speech, + ModelOutputModalityV2SpeechTypedDict, + ModelOutputModalityV2Text, + ModelOutputModalityV2TextTypedDict, + ModelOutputModalityV2Transcription, + ModelOutputModalityV2TranscriptionTypedDict, + ModelOutputModalityV2TypeAudio, + ModelOutputModalityV2TypeImage, + ModelOutputModalityV2TypeSpeech, + ModelOutputModalityV2TypeText, + ModelOutputModalityV2TypeVideo, + ModelOutputModalityV2TypedDict, + ModelOutputModalityV2Unit, + ModelOutputModalityV2Video, + ModelOutputModalityV2VideoTypedDict, + TypeDecisions, + TypeEmbeddings, + TypeRerank, + TypeTranscription, + UnknownModelOutputModalityV2, + ) from .modelreasoning import DefaultEffort, ModelReasoning, ModelReasoningTypedDict from .modelresponse import ModelResponse, ModelResponseTypedDict from .modelscountresponse import ( @@ -4068,6 +4199,16 @@ OutputWebSearchServerToolItemTypedDict, ) from .parameter import Parameter + from .parameterdescriptor import ( + Default, + DefaultTypedDict, + ParameterDescriptor, + ParameterDescriptorType, + ParameterDescriptorTypedDict, + ParameterDescriptorUnit, + ParameterDescriptorValue, + ParameterDescriptorValueTypedDict, + ) from .paretorouterplugin import ( ParetoRouterPlugin, ParetoRouterPluginID, @@ -4578,17 +4719,17 @@ SpeechInputModalityAudioTypedDict, SpeechInputModalityImage, SpeechInputModalityImageTypedDict, + SpeechInputModalitySupportedInputs1, + SpeechInputModalitySupportedInputs1TypedDict, + SpeechInputModalitySupportedInputs2, + SpeechInputModalitySupportedInputs2TypedDict, SpeechInputModalityText, SpeechInputModalityTextTypedDict, + SpeechInputModalityTypeAudio, SpeechInputModalityTypeImage, SpeechInputModalityTypeText, SpeechInputModalityTypedDict, - SupportedInputs1, - SupportedInputs1TypedDict, - SupportedInputs2, - SupportedInputs2TypedDict, Turns, - TypeAudio, UnknownSpeechInputModality, ) from .speechinputreference import ( @@ -4665,7 +4806,7 @@ SpeechUnknownParameterTypedDict, ) from .speechvoiceparameter import ( - References, + ReferencesEnum, SpeechVoiceParameter, SpeechVoiceParameterType, SpeechVoiceParameterTypedDict, @@ -6507,9 +6648,11 @@ "DecisionsURLCitationAnnotationURLCitationTypedDict", "DecisionsUsageInputTokensDetails", "DecisionsUsageInputTokensDetailsTypedDict", + "Default", "DefaultEffort", "DefaultParameters", "DefaultParametersTypedDict", + "DefaultTypedDict", "DeferredBm25Search", "DeferredBm25SearchType", "DeferredBm25SearchTypedDict", @@ -6544,6 +6687,8 @@ "DeleteWorkspaceBudgetResponseTypedDict", "DeleteWorkspaceResponse", "DeleteWorkspaceResponseTypedDict", + "DetailLevels", + "DetailLevelsTypedDict", "EasyInputMessage", "EasyInputMessageContentInputImage", "EasyInputMessageContentInputImageTypedDict", @@ -7069,6 +7214,7 @@ "ImageOutputModality", "ImagePricingEntry", "ImagePricingEntryTypedDict", + "ImagePricingEntryUnit", "ImageStreamingResponse", "ImageStreamingResponseData", "ImageStreamingResponseDataTypedDict", @@ -7260,8 +7406,34 @@ "MarkupTypedDict", "Match", "MatchTypedDict", + "MaxContentSizeBytes1", + "MaxContentSizeBytes1TypedDict", + "MaxContentSizeBytes2", + "MaxContentSizeBytes2TypedDict", + "MaxContentSizeBytes3", + "MaxContentSizeBytes3TypedDict", + "MaxContentSizeBytes4", + "MaxContentSizeBytes4TypedDict", + "MaxContentSizeBytesUnit1", + "MaxContentSizeBytesUnit2", + "MaxContentSizeBytesUnit3", + "MaxContentSizeBytesUnit4", + "MaxContextLength", + "MaxContextLengthTypedDict", + "MaxContextLengthUnit", + "MaxDurationSeconds1", + "MaxDurationSeconds1TypedDict", + "MaxDurationSeconds2", + "MaxDurationSeconds2TypedDict", + "MaxDurationSecondsUnit1", + "MaxDurationSecondsUnit2", + "MaxLength", + "MaxLengthTypedDict", "MaxPrice", "MaxPriceTypedDict", + "MaxPromptLength", + "MaxPromptLengthTypedDict", + "MaxPromptLengthUnit", "McpApprovalRequestItem", "McpApprovalRequestItemType", "McpApprovalRequestItemTypedDict", @@ -7502,8 +7674,75 @@ "ModelBenchmarks", "ModelBenchmarksTypedDict", "ModelGroup", + "ModelInputModalityV2", + "ModelInputModalityV2Audio", + "ModelInputModalityV2AudioTypedDict", + "ModelInputModalityV2File", + "ModelInputModalityV2FileTypedDict", + "ModelInputModalityV2Formats1", + "ModelInputModalityV2Formats1TypedDict", + "ModelInputModalityV2Formats2", + "ModelInputModalityV2Formats2TypedDict", + "ModelInputModalityV2Formats3", + "ModelInputModalityV2Formats3TypedDict", + "ModelInputModalityV2Formats4", + "ModelInputModalityV2Formats4TypedDict", + "ModelInputModalityV2Image", + "ModelInputModalityV2ImageTypedDict", + "ModelInputModalityV2References1", + "ModelInputModalityV2References1TypedDict", + "ModelInputModalityV2References2", + "ModelInputModalityV2References2TypedDict", + "ModelInputModalityV2Role", + "ModelInputModalityV2RoleTypedDict", + "ModelInputModalityV2SupportedInputs1", + "ModelInputModalityV2SupportedInputs1TypedDict", + "ModelInputModalityV2SupportedInputs2", + "ModelInputModalityV2SupportedInputs2TypedDict", + "ModelInputModalityV2SupportedInputs3", + "ModelInputModalityV2SupportedInputs3TypedDict", + "ModelInputModalityV2SupportedInputs4", + "ModelInputModalityV2SupportedInputs4TypedDict", + "ModelInputModalityV2SupportedInputs5", + "ModelInputModalityV2SupportedInputs5TypedDict", + "ModelInputModalityV2Text", + "ModelInputModalityV2TextTypedDict", + "ModelInputModalityV2TypeAudio", + "ModelInputModalityV2TypeFile", + "ModelInputModalityV2TypeImage", + "ModelInputModalityV2TypeText", + "ModelInputModalityV2TypeVideo", + "ModelInputModalityV2TypedDict", + "ModelInputModalityV2Video", + "ModelInputModalityV2VideoTypedDict", "ModelLinks", "ModelLinksTypedDict", + "ModelOutputModalityV2", + "ModelOutputModalityV2Audio", + "ModelOutputModalityV2AudioTypedDict", + "ModelOutputModalityV2Decisions", + "ModelOutputModalityV2DecisionsTypedDict", + "ModelOutputModalityV2Embeddings", + "ModelOutputModalityV2EmbeddingsTypedDict", + "ModelOutputModalityV2Image", + "ModelOutputModalityV2ImageTypedDict", + "ModelOutputModalityV2Rerank", + "ModelOutputModalityV2RerankTypedDict", + "ModelOutputModalityV2Speech", + "ModelOutputModalityV2SpeechTypedDict", + "ModelOutputModalityV2Text", + "ModelOutputModalityV2TextTypedDict", + "ModelOutputModalityV2Transcription", + "ModelOutputModalityV2TranscriptionTypedDict", + "ModelOutputModalityV2TypeAudio", + "ModelOutputModalityV2TypeImage", + "ModelOutputModalityV2TypeSpeech", + "ModelOutputModalityV2TypeText", + "ModelOutputModalityV2TypeVideo", + "ModelOutputModalityV2TypedDict", + "ModelOutputModalityV2Unit", + "ModelOutputModalityV2Video", + "ModelOutputModalityV2VideoTypedDict", "ModelReasoning", "ModelReasoningTypedDict", "ModelResponse", @@ -8078,6 +8317,12 @@ "PDFParserOptions", "PDFParserOptionsTypedDict", "Parameter", + "ParameterDescriptor", + "ParameterDescriptorType", + "ParameterDescriptorTypedDict", + "ParameterDescriptorUnit", + "ParameterDescriptorValue", + "ParameterDescriptorValueTypedDict", "Parameters1", "Parameters1TypedDict", "Parameters2", @@ -8300,7 +8545,7 @@ "ReasoningTextContent", "ReasoningTextContentType", "ReasoningTextContentTypedDict", - "References", + "ReferencesEnum", "Refusal", "RefusalDeltaEvent", "RefusalDeltaEventType", @@ -8500,6 +8745,14 @@ "SourceContent", "SourceContentTypedDict", "SourceType", + "Sources1", + "Sources1TypedDict", + "Sources2", + "Sources2TypedDict", + "Sources3", + "Sources3TypedDict", + "Sources4", + "Sources4TypedDict", "SpeechEnumParameter", "SpeechEnumParameterType", "SpeechEnumParameterTypedDict", @@ -8509,8 +8762,13 @@ "SpeechInputModalityAudioTypedDict", "SpeechInputModalityImage", "SpeechInputModalityImageTypedDict", + "SpeechInputModalitySupportedInputs1", + "SpeechInputModalitySupportedInputs1TypedDict", + "SpeechInputModalitySupportedInputs2", + "SpeechInputModalitySupportedInputs2TypedDict", "SpeechInputModalityText", "SpeechInputModalityTextTypedDict", + "SpeechInputModalityTypeAudio", "SpeechInputModalityTypeImage", "SpeechInputModalityTypeText", "SpeechInputModalityTypedDict", @@ -8635,10 +8893,12 @@ "SubmitGenerationFeedbackResponseTypedDict", "SupportedAspectRatio", "SupportedFrameImage", - "SupportedInputs1", - "SupportedInputs1TypedDict", - "SupportedInputs2", - "SupportedInputs2TypedDict", + "SupportedInputsType1", + "SupportedInputsType2", + "SupportedInputsType3", + "SupportedInputsType4", + "SupportedInputsTypeInteger1", + "SupportedInputsTypeInteger2", "SupportedResolution", "SupportedSize", "SwitchyardRouterPlugin", @@ -8786,7 +9046,6 @@ "TypeAgentMessage", "TypeAllowlist", "TypeAny", - "TypeAudio", "TypeAvailable", "TypeBetweenTools", "TypeClearThinking20251015", @@ -8794,6 +9053,8 @@ "TypeCodeInterpreter", "TypeCompact20260112", "TypeDangerousToolUse", + "TypeDecisions", + "TypeEmbeddings", "TypeEnabled", "TypeEncryptedContent", "TypeEvaluated", @@ -8803,6 +9064,7 @@ "TypeLocalShellCall", "TypeNone", "TypeObject", + "TypeRerank", "TypeSkipped", "TypeTimeout", "TypeTokens", @@ -8812,6 +9074,7 @@ "TypeToolRemoval", "TypeToolResult", "TypeToolSearchOutput", + "TypeTranscription", "TypeTypedDict", "TypeUnavailable", "URLCitation", @@ -8847,7 +9110,8 @@ "UnifiedBenchmarksSearchRunConfigTypedDict", "UniqueInsight", "UniqueInsightTypedDict", - "Unit", + "UnitInteger1", + "UnitInteger2", "Unknown", "UnknownAccountGuardrailPolicy", "UnknownAlignmentCallRecord", @@ -8876,6 +9140,8 @@ "UnknownFormat", "UnknownFormats", "UnknownImageStreamingResponseData", + "UnknownModelInputModalityV2", + "UnknownModelOutputModalityV2", "UnknownNamespaceToolTool", "UnknownORAnthropicContentBlock", "UnknownORAnthropicNullableCaller", @@ -8972,6 +9238,16 @@ "ValidatePrivateEndpointRequest", "ValidatePrivateEndpointRequestTypedDict", "Validation", + "ValueEnum1", + "ValueEnum10", + "ValueEnum2", + "ValueEnum3", + "ValueEnum4", + "ValueEnum5", + "ValueEnum6", + "ValueEnum7", + "ValueEnum8", + "ValueEnum9", "ValueType", "Variables", "VariablesTypedDict", @@ -10961,7 +11237,7 @@ "Billable": ".imagepricingentry", "ImagePricingEntry": ".imagepricingentry", "ImagePricingEntryTypedDict": ".imagepricingentry", - "Unit": ".imagepricingentry", + "ImagePricingEntryUnit": ".imagepricingentry", "ImageStreamingResponse": ".imagestreamingresponse", "ImageStreamingResponseData": ".imagestreamingresponse", "ImageStreamingResponseDataTypedDict": ".imagestreamingresponse", @@ -11445,8 +11721,135 @@ "ModelBenchmarks": ".modelbenchmarks", "ModelBenchmarksTypedDict": ".modelbenchmarks", "ModelGroup": ".modelgroup", + "DetailLevels": ".modelinputmodalityv2", + "DetailLevelsTypedDict": ".modelinputmodalityv2", + "MaxContentSizeBytes1": ".modelinputmodalityv2", + "MaxContentSizeBytes1TypedDict": ".modelinputmodalityv2", + "MaxContentSizeBytes2": ".modelinputmodalityv2", + "MaxContentSizeBytes2TypedDict": ".modelinputmodalityv2", + "MaxContentSizeBytes3": ".modelinputmodalityv2", + "MaxContentSizeBytes3TypedDict": ".modelinputmodalityv2", + "MaxContentSizeBytes4": ".modelinputmodalityv2", + "MaxContentSizeBytes4TypedDict": ".modelinputmodalityv2", + "MaxContentSizeBytesUnit1": ".modelinputmodalityv2", + "MaxContentSizeBytesUnit2": ".modelinputmodalityv2", + "MaxContentSizeBytesUnit3": ".modelinputmodalityv2", + "MaxContentSizeBytesUnit4": ".modelinputmodalityv2", + "MaxContextLength": ".modelinputmodalityv2", + "MaxContextLengthTypedDict": ".modelinputmodalityv2", + "MaxContextLengthUnit": ".modelinputmodalityv2", + "MaxDurationSeconds1": ".modelinputmodalityv2", + "MaxDurationSeconds1TypedDict": ".modelinputmodalityv2", + "MaxDurationSeconds2": ".modelinputmodalityv2", + "MaxDurationSeconds2TypedDict": ".modelinputmodalityv2", + "MaxDurationSecondsUnit1": ".modelinputmodalityv2", + "MaxDurationSecondsUnit2": ".modelinputmodalityv2", + "MaxPromptLength": ".modelinputmodalityv2", + "MaxPromptLengthTypedDict": ".modelinputmodalityv2", + "MaxPromptLengthUnit": ".modelinputmodalityv2", + "ModelInputModalityV2": ".modelinputmodalityv2", + "ModelInputModalityV2Audio": ".modelinputmodalityv2", + "ModelInputModalityV2AudioTypedDict": ".modelinputmodalityv2", + "ModelInputModalityV2File": ".modelinputmodalityv2", + "ModelInputModalityV2FileTypedDict": ".modelinputmodalityv2", + "ModelInputModalityV2Formats1": ".modelinputmodalityv2", + "ModelInputModalityV2Formats1TypedDict": ".modelinputmodalityv2", + "ModelInputModalityV2Formats2": ".modelinputmodalityv2", + "ModelInputModalityV2Formats2TypedDict": ".modelinputmodalityv2", + "ModelInputModalityV2Formats3": ".modelinputmodalityv2", + "ModelInputModalityV2Formats3TypedDict": ".modelinputmodalityv2", + "ModelInputModalityV2Formats4": ".modelinputmodalityv2", + "ModelInputModalityV2Formats4TypedDict": ".modelinputmodalityv2", + "ModelInputModalityV2Image": ".modelinputmodalityv2", + "ModelInputModalityV2ImageTypedDict": ".modelinputmodalityv2", + "ModelInputModalityV2References1": ".modelinputmodalityv2", + "ModelInputModalityV2References1TypedDict": ".modelinputmodalityv2", + "ModelInputModalityV2References2": ".modelinputmodalityv2", + "ModelInputModalityV2References2TypedDict": ".modelinputmodalityv2", + "ModelInputModalityV2Role": ".modelinputmodalityv2", + "ModelInputModalityV2RoleTypedDict": ".modelinputmodalityv2", + "ModelInputModalityV2SupportedInputs1": ".modelinputmodalityv2", + "ModelInputModalityV2SupportedInputs1TypedDict": ".modelinputmodalityv2", + "ModelInputModalityV2SupportedInputs2": ".modelinputmodalityv2", + "ModelInputModalityV2SupportedInputs2TypedDict": ".modelinputmodalityv2", + "ModelInputModalityV2SupportedInputs3": ".modelinputmodalityv2", + "ModelInputModalityV2SupportedInputs3TypedDict": ".modelinputmodalityv2", + "ModelInputModalityV2SupportedInputs4": ".modelinputmodalityv2", + "ModelInputModalityV2SupportedInputs4TypedDict": ".modelinputmodalityv2", + "ModelInputModalityV2SupportedInputs5": ".modelinputmodalityv2", + "ModelInputModalityV2SupportedInputs5TypedDict": ".modelinputmodalityv2", + "ModelInputModalityV2Text": ".modelinputmodalityv2", + "ModelInputModalityV2TextTypedDict": ".modelinputmodalityv2", + "ModelInputModalityV2TypeAudio": ".modelinputmodalityv2", + "ModelInputModalityV2TypeFile": ".modelinputmodalityv2", + "ModelInputModalityV2TypeImage": ".modelinputmodalityv2", + "ModelInputModalityV2TypeText": ".modelinputmodalityv2", + "ModelInputModalityV2TypeVideo": ".modelinputmodalityv2", + "ModelInputModalityV2TypedDict": ".modelinputmodalityv2", + "ModelInputModalityV2Video": ".modelinputmodalityv2", + "ModelInputModalityV2VideoTypedDict": ".modelinputmodalityv2", + "Sources1": ".modelinputmodalityv2", + "Sources1TypedDict": ".modelinputmodalityv2", + "Sources2": ".modelinputmodalityv2", + "Sources2TypedDict": ".modelinputmodalityv2", + "Sources3": ".modelinputmodalityv2", + "Sources3TypedDict": ".modelinputmodalityv2", + "Sources4": ".modelinputmodalityv2", + "Sources4TypedDict": ".modelinputmodalityv2", + "SupportedInputsType1": ".modelinputmodalityv2", + "SupportedInputsType2": ".modelinputmodalityv2", + "SupportedInputsType3": ".modelinputmodalityv2", + "SupportedInputsType4": ".modelinputmodalityv2", + "SupportedInputsTypeInteger1": ".modelinputmodalityv2", + "SupportedInputsTypeInteger2": ".modelinputmodalityv2", + "UnitInteger1": ".modelinputmodalityv2", + "UnitInteger2": ".modelinputmodalityv2", + "UnknownModelInputModalityV2": ".modelinputmodalityv2", + "ValueEnum1": ".modelinputmodalityv2", + "ValueEnum10": ".modelinputmodalityv2", + "ValueEnum2": ".modelinputmodalityv2", + "ValueEnum3": ".modelinputmodalityv2", + "ValueEnum4": ".modelinputmodalityv2", + "ValueEnum5": ".modelinputmodalityv2", + "ValueEnum6": ".modelinputmodalityv2", + "ValueEnum7": ".modelinputmodalityv2", + "ValueEnum8": ".modelinputmodalityv2", + "ValueEnum9": ".modelinputmodalityv2", "ModelLinks": ".modellinks", "ModelLinksTypedDict": ".modellinks", + "MaxLength": ".modeloutputmodalityv2", + "MaxLengthTypedDict": ".modeloutputmodalityv2", + "ModelOutputModalityV2": ".modeloutputmodalityv2", + "ModelOutputModalityV2Audio": ".modeloutputmodalityv2", + "ModelOutputModalityV2AudioTypedDict": ".modeloutputmodalityv2", + "ModelOutputModalityV2Decisions": ".modeloutputmodalityv2", + "ModelOutputModalityV2DecisionsTypedDict": ".modeloutputmodalityv2", + "ModelOutputModalityV2Embeddings": ".modeloutputmodalityv2", + "ModelOutputModalityV2EmbeddingsTypedDict": ".modeloutputmodalityv2", + "ModelOutputModalityV2Image": ".modeloutputmodalityv2", + "ModelOutputModalityV2ImageTypedDict": ".modeloutputmodalityv2", + "ModelOutputModalityV2Rerank": ".modeloutputmodalityv2", + "ModelOutputModalityV2RerankTypedDict": ".modeloutputmodalityv2", + "ModelOutputModalityV2Speech": ".modeloutputmodalityv2", + "ModelOutputModalityV2SpeechTypedDict": ".modeloutputmodalityv2", + "ModelOutputModalityV2Text": ".modeloutputmodalityv2", + "ModelOutputModalityV2TextTypedDict": ".modeloutputmodalityv2", + "ModelOutputModalityV2Transcription": ".modeloutputmodalityv2", + "ModelOutputModalityV2TranscriptionTypedDict": ".modeloutputmodalityv2", + "ModelOutputModalityV2TypeAudio": ".modeloutputmodalityv2", + "ModelOutputModalityV2TypeImage": ".modeloutputmodalityv2", + "ModelOutputModalityV2TypeSpeech": ".modeloutputmodalityv2", + "ModelOutputModalityV2TypeText": ".modeloutputmodalityv2", + "ModelOutputModalityV2TypeVideo": ".modeloutputmodalityv2", + "ModelOutputModalityV2TypedDict": ".modeloutputmodalityv2", + "ModelOutputModalityV2Unit": ".modeloutputmodalityv2", + "ModelOutputModalityV2Video": ".modeloutputmodalityv2", + "ModelOutputModalityV2VideoTypedDict": ".modeloutputmodalityv2", + "TypeDecisions": ".modeloutputmodalityv2", + "TypeEmbeddings": ".modeloutputmodalityv2", + "TypeRerank": ".modeloutputmodalityv2", + "TypeTranscription": ".modeloutputmodalityv2", + "UnknownModelOutputModalityV2": ".modeloutputmodalityv2", "DefaultEffort": ".modelreasoning", "ModelReasoning": ".modelreasoning", "ModelReasoningTypedDict": ".modelreasoning", @@ -12060,6 +12463,14 @@ "OutputWebSearchServerToolItemTypeURL": ".outputwebsearchservertoolitem", "OutputWebSearchServerToolItemTypedDict": ".outputwebsearchservertoolitem", "Parameter": ".parameter", + "Default": ".parameterdescriptor", + "DefaultTypedDict": ".parameterdescriptor", + "ParameterDescriptor": ".parameterdescriptor", + "ParameterDescriptorType": ".parameterdescriptor", + "ParameterDescriptorTypedDict": ".parameterdescriptor", + "ParameterDescriptorUnit": ".parameterdescriptor", + "ParameterDescriptorValue": ".parameterdescriptor", + "ParameterDescriptorValueTypedDict": ".parameterdescriptor", "ParetoRouterPlugin": ".paretorouterplugin", "ParetoRouterPluginID": ".paretorouterplugin", "ParetoRouterPluginTypedDict": ".paretorouterplugin", @@ -12431,17 +12842,17 @@ "SpeechInputModalityAudioTypedDict": ".speechinputmodality", "SpeechInputModalityImage": ".speechinputmodality", "SpeechInputModalityImageTypedDict": ".speechinputmodality", + "SpeechInputModalitySupportedInputs1": ".speechinputmodality", + "SpeechInputModalitySupportedInputs1TypedDict": ".speechinputmodality", + "SpeechInputModalitySupportedInputs2": ".speechinputmodality", + "SpeechInputModalitySupportedInputs2TypedDict": ".speechinputmodality", "SpeechInputModalityText": ".speechinputmodality", "SpeechInputModalityTextTypedDict": ".speechinputmodality", + "SpeechInputModalityTypeAudio": ".speechinputmodality", "SpeechInputModalityTypeImage": ".speechinputmodality", "SpeechInputModalityTypeText": ".speechinputmodality", "SpeechInputModalityTypedDict": ".speechinputmodality", - "SupportedInputs1": ".speechinputmodality", - "SupportedInputs1TypedDict": ".speechinputmodality", - "SupportedInputs2": ".speechinputmodality", - "SupportedInputs2TypedDict": ".speechinputmodality", "Turns": ".speechinputmodality", - "TypeAudio": ".speechinputmodality", "UnknownSpeechInputModality": ".speechinputmodality", "SpeechInputReference": ".speechinputreference", "SpeechInputReferenceTypedDict": ".speechinputreference", @@ -12493,7 +12904,7 @@ "SpeechUnknownParameter": ".speechunknownparameter", "SpeechUnknownParameterType": ".speechunknownparameter", "SpeechUnknownParameterTypedDict": ".speechunknownparameter", - "References": ".speechvoiceparameter", + "ReferencesEnum": ".speechvoiceparameter", "SpeechVoiceParameter": ".speechvoiceparameter", "SpeechVoiceParameterType": ".speechvoiceparameter", "SpeechVoiceParameterTypedDict": ".speechvoiceparameter", diff --git a/src/openrouter/components/imageendpoint.py b/src/openrouter/components/imageendpoint.py index 7fe018a98..20e9907af 100644 --- a/src/openrouter/components/imageendpoint.py +++ b/src/openrouter/components/imageendpoint.py @@ -3,10 +3,12 @@ from __future__ import annotations from .capabilitydescriptor import CapabilityDescriptor, CapabilityDescriptorTypedDict from .imagepricingentry import ImagePricingEntry, ImagePricingEntryTypedDict +from .modelinputmodalityv2 import ModelInputModalityV2, ModelInputModalityV2TypedDict +from .modeloutputmodalityv2 import ModelOutputModalityV2, ModelOutputModalityV2TypedDict from openrouter.types import BaseModel, Nullable, UNSET_SENTINEL from pydantic import model_serializer -from typing import Dict, List -from typing_extensions import TypedDict +from typing import Dict, List, Optional +from typing_extensions import NotRequired, TypedDict class ImageEndpointTypedDict(TypedDict): @@ -25,6 +27,10 @@ class ImageEndpointTypedDict(TypedDict): supported_parameters: Dict[str, CapabilityDescriptorTypedDict] supports_streaming: bool r"""Whether this endpoint supports native SSE streaming (`stream: true` in the request).""" + input_modalities: NotRequired[List[ModelInputModalityV2TypedDict]] + r"""Typed inputs the model accepts, following the Models API V2 document.""" + output_modalities: NotRequired[List[ModelOutputModalityV2TypedDict]] + r"""Typed outputs with the request fields each accepts, following the Models API V2 document.""" class ImageEndpoint(BaseModel): @@ -50,16 +56,33 @@ class ImageEndpoint(BaseModel): supports_streaming: bool r"""Whether this endpoint supports native SSE streaming (`stream: true` in the request).""" + input_modalities: Optional[List[ModelInputModalityV2]] = None + r"""Typed inputs the model accepts, following the Models API V2 document.""" + + output_modalities: Optional[List[ModelOutputModalityV2]] = None + r"""Typed outputs with the request fields each accepts, following the Models API V2 document.""" + @model_serializer(mode="wrap") def serialize_model(self, handler): + optional_fields = set(["input_modalities", "output_modalities"]) + nullable_fields = set(["provider_tag"]) serialized = handler(self) m = {} for n, f in type(self).model_fields.items(): k = f.alias or n val = serialized.get(k, serialized.get(n)) + is_nullable_and_explicitly_set = ( + k in nullable_fields + and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member + ) if val != UNSET_SENTINEL: - m[k] = val + if ( + val is not None + or k not in optional_fields + or is_nullable_and_explicitly_set + ): + m[k] = val return m diff --git a/src/openrouter/components/imagemodellistitem.py b/src/openrouter/components/imagemodellistitem.py index f2bb3e292..c0337b15f 100644 --- a/src/openrouter/components/imagemodellistitem.py +++ b/src/openrouter/components/imagemodellistitem.py @@ -6,9 +6,12 @@ ImageModelArchitecture, ImageModelArchitectureTypedDict, ) -from openrouter.types import BaseModel -from typing import Dict -from typing_extensions import TypedDict +from .modelinputmodalityv2 import ModelInputModalityV2, ModelInputModalityV2TypedDict +from .modeloutputmodalityv2 import ModelOutputModalityV2, ModelOutputModalityV2TypedDict +from openrouter.types import BaseModel, UNSET_SENTINEL +from pydantic import model_serializer +from typing import Dict, List, Optional +from typing_extensions import NotRequired, TypedDict class ImageModelListItemTypedDict(TypedDict): @@ -28,6 +31,10 @@ class ImageModelListItemTypedDict(TypedDict): r"""Union of supported parameters across every endpoint of this model. Coarse discovery aid; the definitive per-endpoint set is behind the endpoints URL.""" supports_streaming: bool r"""Whether any endpoint of this model supports native SSE streaming on the dedicated Image API (i.e. `stream: true` in the request). OR across endpoints.""" + input_modalities: NotRequired[List[ModelInputModalityV2TypedDict]] + r"""Typed inputs the model accepts, following the Models API V2 document.""" + output_modalities: NotRequired[List[ModelOutputModalityV2TypedDict]] + r"""Typed outputs with the request fields each accepts, following the Models API V2 document.""" class ImageModelListItem(BaseModel): @@ -54,3 +61,25 @@ class ImageModelListItem(BaseModel): supports_streaming: bool r"""Whether any endpoint of this model supports native SSE streaming on the dedicated Image API (i.e. `stream: true` in the request). OR across endpoints.""" + + input_modalities: Optional[List[ModelInputModalityV2]] = None + r"""Typed inputs the model accepts, following the Models API V2 document.""" + + output_modalities: Optional[List[ModelOutputModalityV2]] = None + r"""Typed outputs with the request fields each accepts, following the Models API V2 document.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["input_modalities", "output_modalities"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/openrouter/components/imagepricingentry.py b/src/openrouter/components/imagepricingentry.py index 47c262541..03a25d18d 100644 --- a/src/openrouter/components/imagepricingentry.py +++ b/src/openrouter/components/imagepricingentry.py @@ -19,7 +19,7 @@ ] -Unit = Union[ +ImagePricingEntryUnit = Union[ Literal[ "request", "image", @@ -35,7 +35,7 @@ class ImagePricingEntryTypedDict(TypedDict): billable: Billable cost_usd: float - unit: Unit + unit: ImagePricingEntryUnit variant: NotRequired[str] @@ -46,7 +46,7 @@ class ImagePricingEntry(BaseModel): cost_usd: float - unit: Unit + unit: ImagePricingEntryUnit variant: Optional[str] = None diff --git a/src/openrouter/components/modelinputmodalityv2.py b/src/openrouter/components/modelinputmodalityv2.py new file mode 100644 index 000000000..68a729ff5 --- /dev/null +++ b/src/openrouter/components/modelinputmodalityv2.py @@ -0,0 +1,1037 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .parameterdescriptor import ParameterDescriptor, ParameterDescriptorTypedDict +from functools import partial +from openrouter.types import BaseModel, UNSET_SENTINEL, UnrecognizedStr +from openrouter.utils.unions import parse_open_union +from pydantic import ConfigDict, model_serializer +from pydantic.functional_validators import BeforeValidator +from typing import Any, Dict, List, Literal, Optional, Union +from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict + + +ValueEnum9 = Union[ + Literal[ + "application/pdf", + "text/plain", + "text/markdown", + "text/html", + "text/csv", + "application/json", + ], + UnrecognizedStr, +] + + +SupportedInputsType4 = Literal["enum",] + + +class ModelInputModalityV2Formats4TypedDict(TypedDict): + type: SupportedInputsType4 + values: List[ValueEnum9] + + +class ModelInputModalityV2Formats4(BaseModel): + type: SupportedInputsType4 + + values: List[ValueEnum9] + + +MaxContentSizeBytesUnit4 = Union[ + Literal[ + "second", + "pixel", + "byte", + "token", + "character", + ], + UnrecognizedStr, +] + + +class MaxContentSizeBytes4TypedDict(TypedDict): + value: int + unit: NotRequired[MaxContentSizeBytesUnit4] + + +class MaxContentSizeBytes4(BaseModel): + value: int + + unit: Optional[MaxContentSizeBytesUnit4] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["unit"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +SupportedInputsTypeInteger2 = Literal["integer",] + + +UnitInteger2 = Union[ + Literal[ + "second", + "pixel", + "byte", + "token", + "character", + ], + UnrecognizedStr, +] + + +class ModelInputModalityV2References2TypedDict(TypedDict): + type: SupportedInputsTypeInteger2 + max: NotRequired[int] + min: NotRequired[int] + unit: NotRequired[UnitInteger2] + + +class ModelInputModalityV2References2(BaseModel): + type: SupportedInputsTypeInteger2 + + max: Optional[int] = None + + min: Optional[int] = None + + unit: Optional[UnitInteger2] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["max", "min", "unit"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +ValueEnum10 = Union[ + Literal[ + "url", + "base64", + ], + UnrecognizedStr, +] + + +class Sources4TypedDict(TypedDict): + type: SupportedInputsType4 + values: List[ValueEnum10] + + +class Sources4(BaseModel): + type: SupportedInputsType4 + + values: List[ValueEnum10] + + +class ModelInputModalityV2SupportedInputs5TypedDict(TypedDict): + formats: NotRequired[ModelInputModalityV2Formats4TypedDict] + max_content_size_bytes: NotRequired[MaxContentSizeBytes4TypedDict] + references: NotRequired[ModelInputModalityV2References2TypedDict] + sources: NotRequired[Sources4TypedDict] + + +class ModelInputModalityV2SupportedInputs5(BaseModel): + formats: Optional[ModelInputModalityV2Formats4] = None + + max_content_size_bytes: Optional[MaxContentSizeBytes4] = None + + references: Optional[ModelInputModalityV2References2] = None + + sources: Optional[Sources4] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set( + ["formats", "max_content_size_bytes", "references", "sources"] + ) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +ModelInputModalityV2TypeFile = Literal["file",] + + +class ModelInputModalityV2FileTypedDict(TypedDict): + type: ModelInputModalityV2TypeFile + passthrough_parameters: NotRequired[Dict[str, ParameterDescriptorTypedDict]] + supported_inputs: NotRequired[ModelInputModalityV2SupportedInputs5TypedDict] + + +class ModelInputModalityV2File(BaseModel): + type: ModelInputModalityV2TypeFile + + passthrough_parameters: Optional[Dict[str, ParameterDescriptor]] = None + + supported_inputs: Optional[ModelInputModalityV2SupportedInputs5] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["passthrough_parameters", "supported_inputs"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +ValueEnum7 = Union[ + Literal[ + "audio/wav", + "audio/mpeg", + ], + UnrecognizedStr, +] + + +SupportedInputsType3 = Literal["enum",] + + +class ModelInputModalityV2Formats3TypedDict(TypedDict): + type: SupportedInputsType3 + values: List[ValueEnum7] + + +class ModelInputModalityV2Formats3(BaseModel): + type: SupportedInputsType3 + + values: List[ValueEnum7] + + +MaxContentSizeBytesUnit3 = Union[ + Literal[ + "second", + "pixel", + "byte", + "token", + "character", + ], + UnrecognizedStr, +] + + +class MaxContentSizeBytes3TypedDict(TypedDict): + value: int + unit: NotRequired[MaxContentSizeBytesUnit3] + + +class MaxContentSizeBytes3(BaseModel): + value: int + + unit: Optional[MaxContentSizeBytesUnit3] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["unit"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +MaxDurationSecondsUnit2 = Union[ + Literal[ + "second", + "pixel", + "byte", + "token", + "character", + ], + UnrecognizedStr, +] + + +class MaxDurationSeconds2TypedDict(TypedDict): + value: float + unit: NotRequired[MaxDurationSecondsUnit2] + + +class MaxDurationSeconds2(BaseModel): + value: float + + unit: Optional[MaxDurationSecondsUnit2] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["unit"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +ValueEnum8 = Union[ + Literal[ + "url", + "base64", + ], + UnrecognizedStr, +] + + +class Sources3TypedDict(TypedDict): + type: SupportedInputsType3 + values: List[ValueEnum8] + + +class Sources3(BaseModel): + type: SupportedInputsType3 + + values: List[ValueEnum8] + + +class ModelInputModalityV2SupportedInputs4TypedDict(TypedDict): + formats: NotRequired[ModelInputModalityV2Formats3TypedDict] + max_content_size_bytes: NotRequired[MaxContentSizeBytes3TypedDict] + max_duration_seconds: NotRequired[MaxDurationSeconds2TypedDict] + sources: NotRequired[Sources3TypedDict] + + +class ModelInputModalityV2SupportedInputs4(BaseModel): + formats: Optional[ModelInputModalityV2Formats3] = None + + max_content_size_bytes: Optional[MaxContentSizeBytes3] = None + + max_duration_seconds: Optional[MaxDurationSeconds2] = None + + sources: Optional[Sources3] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set( + ["formats", "max_content_size_bytes", "max_duration_seconds", "sources"] + ) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +ModelInputModalityV2TypeAudio = Literal["audio",] + + +class ModelInputModalityV2AudioTypedDict(TypedDict): + type: ModelInputModalityV2TypeAudio + passthrough_parameters: NotRequired[Dict[str, ParameterDescriptorTypedDict]] + supported_inputs: NotRequired[ModelInputModalityV2SupportedInputs4TypedDict] + + +class ModelInputModalityV2Audio(BaseModel): + type: ModelInputModalityV2TypeAudio + + passthrough_parameters: Optional[Dict[str, ParameterDescriptor]] = None + + supported_inputs: Optional[ModelInputModalityV2SupportedInputs4] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["passthrough_parameters", "supported_inputs"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +ValueEnum5 = Union[ + Literal[ + "video/mp4", + "video/webm", + ], + UnrecognizedStr, +] + + +SupportedInputsType2 = Literal["enum",] + + +class ModelInputModalityV2Formats2TypedDict(TypedDict): + type: SupportedInputsType2 + values: List[ValueEnum5] + + +class ModelInputModalityV2Formats2(BaseModel): + type: SupportedInputsType2 + + values: List[ValueEnum5] + + +MaxContentSizeBytesUnit2 = Union[ + Literal[ + "second", + "pixel", + "byte", + "token", + "character", + ], + UnrecognizedStr, +] + + +class MaxContentSizeBytes2TypedDict(TypedDict): + value: int + unit: NotRequired[MaxContentSizeBytesUnit2] + + +class MaxContentSizeBytes2(BaseModel): + value: int + + unit: Optional[MaxContentSizeBytesUnit2] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["unit"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +MaxDurationSecondsUnit1 = Union[ + Literal[ + "second", + "pixel", + "byte", + "token", + "character", + ], + UnrecognizedStr, +] + + +class MaxDurationSeconds1TypedDict(TypedDict): + value: float + unit: NotRequired[MaxDurationSecondsUnit1] + + +class MaxDurationSeconds1(BaseModel): + value: float + + unit: Optional[MaxDurationSecondsUnit1] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["unit"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +ValueEnum6 = Union[ + Literal[ + "url", + "base64", + ], + UnrecognizedStr, +] + + +class Sources2TypedDict(TypedDict): + type: SupportedInputsType2 + values: List[ValueEnum6] + + +class Sources2(BaseModel): + type: SupportedInputsType2 + + values: List[ValueEnum6] + + +class ModelInputModalityV2SupportedInputs3TypedDict(TypedDict): + formats: NotRequired[ModelInputModalityV2Formats2TypedDict] + max_content_size_bytes: NotRequired[MaxContentSizeBytes2TypedDict] + max_duration_seconds: NotRequired[MaxDurationSeconds1TypedDict] + sources: NotRequired[Sources2TypedDict] + + +class ModelInputModalityV2SupportedInputs3(BaseModel): + formats: Optional[ModelInputModalityV2Formats2] = None + + max_content_size_bytes: Optional[MaxContentSizeBytes2] = None + + max_duration_seconds: Optional[MaxDurationSeconds1] = None + + sources: Optional[Sources2] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set( + ["formats", "max_content_size_bytes", "max_duration_seconds", "sources"] + ) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +ModelInputModalityV2TypeVideo = Literal["video",] + + +class ModelInputModalityV2VideoTypedDict(TypedDict): + type: ModelInputModalityV2TypeVideo + passthrough_parameters: NotRequired[Dict[str, ParameterDescriptorTypedDict]] + supported_inputs: NotRequired[ModelInputModalityV2SupportedInputs3TypedDict] + + +class ModelInputModalityV2Video(BaseModel): + type: ModelInputModalityV2TypeVideo + + passthrough_parameters: Optional[Dict[str, ParameterDescriptor]] = None + + supported_inputs: Optional[ModelInputModalityV2SupportedInputs3] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["passthrough_parameters", "supported_inputs"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +ValueEnum1 = Union[ + Literal[ + "auto", + "low", + "high", + "original", + ], + UnrecognizedStr, +] + + +SupportedInputsType1 = Literal["enum",] + + +class DetailLevelsTypedDict(TypedDict): + type: SupportedInputsType1 + values: List[ValueEnum1] + + +class DetailLevels(BaseModel): + type: SupportedInputsType1 + + values: List[ValueEnum1] + + +ValueEnum2 = Union[ + Literal[ + "image/png", + "image/jpeg", + "image/webp", + "image/gif", + ], + UnrecognizedStr, +] + + +class ModelInputModalityV2Formats1TypedDict(TypedDict): + type: SupportedInputsType1 + values: List[ValueEnum2] + + +class ModelInputModalityV2Formats1(BaseModel): + type: SupportedInputsType1 + + values: List[ValueEnum2] + + +MaxContentSizeBytesUnit1 = Union[ + Literal[ + "second", + "pixel", + "byte", + "token", + "character", + ], + UnrecognizedStr, +] + + +class MaxContentSizeBytes1TypedDict(TypedDict): + value: int + unit: NotRequired[MaxContentSizeBytesUnit1] + + +class MaxContentSizeBytes1(BaseModel): + value: int + + unit: Optional[MaxContentSizeBytesUnit1] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["unit"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +SupportedInputsTypeInteger1 = Literal["integer",] + + +UnitInteger1 = Union[ + Literal[ + "second", + "pixel", + "byte", + "token", + "character", + ], + UnrecognizedStr, +] + + +class ModelInputModalityV2References1TypedDict(TypedDict): + type: SupportedInputsTypeInteger1 + max: NotRequired[int] + min: NotRequired[int] + unit: NotRequired[UnitInteger1] + + +class ModelInputModalityV2References1(BaseModel): + type: SupportedInputsTypeInteger1 + + max: Optional[int] = None + + min: Optional[int] = None + + unit: Optional[UnitInteger1] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["max", "min", "unit"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +ValueEnum3 = Union[ + Literal[ + "reference", + "first_frame", + "last_frame", + ], + UnrecognizedStr, +] + + +class ModelInputModalityV2RoleTypedDict(TypedDict): + type: SupportedInputsType1 + values: List[ValueEnum3] + + +class ModelInputModalityV2Role(BaseModel): + type: SupportedInputsType1 + + values: List[ValueEnum3] + + +ValueEnum4 = Union[ + Literal[ + "url", + "base64", + ], + UnrecognizedStr, +] + + +class Sources1TypedDict(TypedDict): + type: SupportedInputsType1 + values: List[ValueEnum4] + + +class Sources1(BaseModel): + type: SupportedInputsType1 + + values: List[ValueEnum4] + + +class ModelInputModalityV2SupportedInputs2TypedDict(TypedDict): + detail_levels: NotRequired[DetailLevelsTypedDict] + formats: NotRequired[ModelInputModalityV2Formats1TypedDict] + max_content_size_bytes: NotRequired[MaxContentSizeBytes1TypedDict] + references: NotRequired[ModelInputModalityV2References1TypedDict] + role: NotRequired[ModelInputModalityV2RoleTypedDict] + sources: NotRequired[Sources1TypedDict] + + +class ModelInputModalityV2SupportedInputs2(BaseModel): + detail_levels: Optional[DetailLevels] = None + + formats: Optional[ModelInputModalityV2Formats1] = None + + max_content_size_bytes: Optional[MaxContentSizeBytes1] = None + + references: Optional[ModelInputModalityV2References1] = None + + role: Optional[ModelInputModalityV2Role] = None + + sources: Optional[Sources1] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set( + [ + "detail_levels", + "formats", + "max_content_size_bytes", + "references", + "role", + "sources", + ] + ) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +ModelInputModalityV2TypeImage = Literal["image",] + + +class ModelInputModalityV2ImageTypedDict(TypedDict): + type: ModelInputModalityV2TypeImage + passthrough_parameters: NotRequired[Dict[str, ParameterDescriptorTypedDict]] + supported_inputs: NotRequired[ModelInputModalityV2SupportedInputs2TypedDict] + + +class ModelInputModalityV2Image(BaseModel): + type: ModelInputModalityV2TypeImage + + passthrough_parameters: Optional[Dict[str, ParameterDescriptor]] = None + + supported_inputs: Optional[ModelInputModalityV2SupportedInputs2] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["passthrough_parameters", "supported_inputs"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +MaxContextLengthUnit = Union[ + Literal[ + "second", + "pixel", + "byte", + "token", + "character", + ], + UnrecognizedStr, +] + + +class MaxContextLengthTypedDict(TypedDict): + value: int + unit: NotRequired[MaxContextLengthUnit] + + +class MaxContextLength(BaseModel): + value: int + + unit: Optional[MaxContextLengthUnit] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["unit"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +MaxPromptLengthUnit = Union[ + Literal[ + "second", + "pixel", + "byte", + "token", + "character", + ], + UnrecognizedStr, +] + + +class MaxPromptLengthTypedDict(TypedDict): + value: int + unit: NotRequired[MaxPromptLengthUnit] + + +class MaxPromptLength(BaseModel): + value: int + + unit: Optional[MaxPromptLengthUnit] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["unit"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +class ModelInputModalityV2SupportedInputs1TypedDict(TypedDict): + max_context_length: NotRequired[MaxContextLengthTypedDict] + max_prompt_length: NotRequired[MaxPromptLengthTypedDict] + + +class ModelInputModalityV2SupportedInputs1(BaseModel): + max_context_length: Optional[MaxContextLength] = None + + max_prompt_length: Optional[MaxPromptLength] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["max_context_length", "max_prompt_length"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +ModelInputModalityV2TypeText = Literal["text",] + + +class ModelInputModalityV2TextTypedDict(TypedDict): + type: ModelInputModalityV2TypeText + passthrough_parameters: NotRequired[Dict[str, ParameterDescriptorTypedDict]] + supported_inputs: NotRequired[ModelInputModalityV2SupportedInputs1TypedDict] + + +class ModelInputModalityV2Text(BaseModel): + type: ModelInputModalityV2TypeText + + passthrough_parameters: Optional[Dict[str, ParameterDescriptor]] = None + + supported_inputs: Optional[ModelInputModalityV2SupportedInputs1] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["passthrough_parameters", "supported_inputs"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +ModelInputModalityV2TypedDict = TypeAliasType( + "ModelInputModalityV2TypedDict", + Union[ + ModelInputModalityV2TextTypedDict, + ModelInputModalityV2ImageTypedDict, + ModelInputModalityV2VideoTypedDict, + ModelInputModalityV2AudioTypedDict, + ModelInputModalityV2FileTypedDict, + ], +) + + +class UnknownModelInputModalityV2(BaseModel): + r"""A ModelInputModalityV2 variant the SDK doesn't recognize. Preserves the raw payload.""" + + type: Literal["UNKNOWN"] = "UNKNOWN" + raw: Any + is_unknown: Literal[True] = True + + model_config = ConfigDict(frozen=True) + + +_MODEL_INPUT_MODALITY_V2_VARIANTS: dict[str, Any] = { + "text": ModelInputModalityV2Text, + "image": ModelInputModalityV2Image, + "video": ModelInputModalityV2Video, + "audio": ModelInputModalityV2Audio, + "file": ModelInputModalityV2File, +} + + +ModelInputModalityV2 = Annotated[ + Union[ + ModelInputModalityV2Text, + ModelInputModalityV2Image, + ModelInputModalityV2Video, + ModelInputModalityV2Audio, + ModelInputModalityV2File, + UnknownModelInputModalityV2, + ], + BeforeValidator( + partial( + parse_open_union, + disc_key="type", + variants=_MODEL_INPUT_MODALITY_V2_VARIANTS, + unknown_cls=UnknownModelInputModalityV2, + union_name="ModelInputModalityV2", + ) + ), +] diff --git a/src/openrouter/components/modeloutputmodalityv2.py b/src/openrouter/components/modeloutputmodalityv2.py new file mode 100644 index 000000000..d5f8c732d --- /dev/null +++ b/src/openrouter/components/modeloutputmodalityv2.py @@ -0,0 +1,440 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .parameterdescriptor import ParameterDescriptor, ParameterDescriptorTypedDict +from functools import partial +from openrouter.types import BaseModel, UNSET_SENTINEL, UnrecognizedStr +from openrouter.utils.unions import parse_open_union +from pydantic import ConfigDict, model_serializer +from pydantic.functional_validators import BeforeValidator +from typing import Any, Dict, Literal, Optional, Union +from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict + + +ModelOutputModalityV2TypeAudio = Literal["audio",] + + +class ModelOutputModalityV2AudioTypedDict(TypedDict): + supported_parameters: Dict[str, ParameterDescriptorTypedDict] + type: ModelOutputModalityV2TypeAudio + passthrough_parameters: NotRequired[Dict[str, ParameterDescriptorTypedDict]] + streaming: NotRequired[bool] + + +class ModelOutputModalityV2Audio(BaseModel): + supported_parameters: Dict[str, ParameterDescriptor] + + type: ModelOutputModalityV2TypeAudio + + passthrough_parameters: Optional[Dict[str, ParameterDescriptor]] = None + + streaming: Optional[bool] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["passthrough_parameters", "streaming"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +TypeDecisions = Literal["decisions",] + + +class ModelOutputModalityV2DecisionsTypedDict(TypedDict): + supported_parameters: Dict[str, ParameterDescriptorTypedDict] + type: TypeDecisions + max_choice_options: NotRequired[int] + max_score_levels: NotRequired[int] + passthrough_parameters: NotRequired[Dict[str, ParameterDescriptorTypedDict]] + + +class ModelOutputModalityV2Decisions(BaseModel): + supported_parameters: Dict[str, ParameterDescriptor] + + type: TypeDecisions + + max_choice_options: Optional[int] = None + + max_score_levels: Optional[int] = None + + passthrough_parameters: Optional[Dict[str, ParameterDescriptor]] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set( + ["max_choice_options", "max_score_levels", "passthrough_parameters"] + ) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +TypeRerank = Literal["rerank",] + + +class ModelOutputModalityV2RerankTypedDict(TypedDict): + supported_parameters: Dict[str, ParameterDescriptorTypedDict] + type: TypeRerank + passthrough_parameters: NotRequired[Dict[str, ParameterDescriptorTypedDict]] + + +class ModelOutputModalityV2Rerank(BaseModel): + supported_parameters: Dict[str, ParameterDescriptor] + + type: TypeRerank + + passthrough_parameters: Optional[Dict[str, ParameterDescriptor]] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["passthrough_parameters"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +TypeEmbeddings = Literal["embeddings",] + + +class ModelOutputModalityV2EmbeddingsTypedDict(TypedDict): + supported_parameters: Dict[str, ParameterDescriptorTypedDict] + type: TypeEmbeddings + passthrough_parameters: NotRequired[Dict[str, ParameterDescriptorTypedDict]] + + +class ModelOutputModalityV2Embeddings(BaseModel): + supported_parameters: Dict[str, ParameterDescriptor] + + type: TypeEmbeddings + + passthrough_parameters: Optional[Dict[str, ParameterDescriptor]] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["passthrough_parameters"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +TypeTranscription = Literal["transcription",] + + +class ModelOutputModalityV2TranscriptionTypedDict(TypedDict): + supported_parameters: Dict[str, ParameterDescriptorTypedDict] + type: TypeTranscription + passthrough_parameters: NotRequired[Dict[str, ParameterDescriptorTypedDict]] + streaming: NotRequired[bool] + + +class ModelOutputModalityV2Transcription(BaseModel): + supported_parameters: Dict[str, ParameterDescriptor] + + type: TypeTranscription + + passthrough_parameters: Optional[Dict[str, ParameterDescriptor]] = None + + streaming: Optional[bool] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["passthrough_parameters", "streaming"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +ModelOutputModalityV2TypeSpeech = Literal["speech",] + + +class ModelOutputModalityV2SpeechTypedDict(TypedDict): + supported_parameters: Dict[str, ParameterDescriptorTypedDict] + type: ModelOutputModalityV2TypeSpeech + passthrough_parameters: NotRequired[Dict[str, ParameterDescriptorTypedDict]] + streaming: NotRequired[bool] + + +class ModelOutputModalityV2Speech(BaseModel): + supported_parameters: Dict[str, ParameterDescriptor] + + type: ModelOutputModalityV2TypeSpeech + + passthrough_parameters: Optional[Dict[str, ParameterDescriptor]] = None + + streaming: Optional[bool] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["passthrough_parameters", "streaming"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +ModelOutputModalityV2TypeVideo = Literal["video",] + + +class ModelOutputModalityV2VideoTypedDict(TypedDict): + supported_parameters: Dict[str, ParameterDescriptorTypedDict] + type: ModelOutputModalityV2TypeVideo + passthrough_parameters: NotRequired[Dict[str, ParameterDescriptorTypedDict]] + streaming: NotRequired[bool] + + +class ModelOutputModalityV2Video(BaseModel): + supported_parameters: Dict[str, ParameterDescriptor] + + type: ModelOutputModalityV2TypeVideo + + passthrough_parameters: Optional[Dict[str, ParameterDescriptor]] = None + + streaming: Optional[bool] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["passthrough_parameters", "streaming"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +ModelOutputModalityV2TypeImage = Literal["image",] + + +class ModelOutputModalityV2ImageTypedDict(TypedDict): + supported_parameters: Dict[str, ParameterDescriptorTypedDict] + type: ModelOutputModalityV2TypeImage + passthrough_parameters: NotRequired[Dict[str, ParameterDescriptorTypedDict]] + streaming: NotRequired[bool] + + +class ModelOutputModalityV2Image(BaseModel): + supported_parameters: Dict[str, ParameterDescriptor] + + type: ModelOutputModalityV2TypeImage + + passthrough_parameters: Optional[Dict[str, ParameterDescriptor]] = None + + streaming: Optional[bool] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["passthrough_parameters", "streaming"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +ModelOutputModalityV2Unit = Union[ + Literal[ + "second", + "pixel", + "byte", + "token", + "character", + ], + UnrecognizedStr, +] + + +class MaxLengthTypedDict(TypedDict): + value: int + unit: NotRequired[ModelOutputModalityV2Unit] + + +class MaxLength(BaseModel): + value: int + + unit: Optional[ModelOutputModalityV2Unit] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["unit"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +ModelOutputModalityV2TypeText = Literal["text",] + + +class ModelOutputModalityV2TextTypedDict(TypedDict): + supported_parameters: Dict[str, ParameterDescriptorTypedDict] + type: ModelOutputModalityV2TypeText + max_length: NotRequired[MaxLengthTypedDict] + passthrough_parameters: NotRequired[Dict[str, ParameterDescriptorTypedDict]] + streaming: NotRequired[bool] + + +class ModelOutputModalityV2Text(BaseModel): + supported_parameters: Dict[str, ParameterDescriptor] + + type: ModelOutputModalityV2TypeText + + max_length: Optional[MaxLength] = None + + passthrough_parameters: Optional[Dict[str, ParameterDescriptor]] = None + + streaming: Optional[bool] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set(["max_length", "passthrough_parameters", "streaming"]) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m + + +ModelOutputModalityV2TypedDict = TypeAliasType( + "ModelOutputModalityV2TypedDict", + Union[ + ModelOutputModalityV2EmbeddingsTypedDict, + ModelOutputModalityV2RerankTypedDict, + ModelOutputModalityV2ImageTypedDict, + ModelOutputModalityV2VideoTypedDict, + ModelOutputModalityV2SpeechTypedDict, + ModelOutputModalityV2TranscriptionTypedDict, + ModelOutputModalityV2AudioTypedDict, + ModelOutputModalityV2TextTypedDict, + ModelOutputModalityV2DecisionsTypedDict, + ], +) + + +class UnknownModelOutputModalityV2(BaseModel): + r"""A ModelOutputModalityV2 variant the SDK doesn't recognize. Preserves the raw payload.""" + + type: Literal["UNKNOWN"] = "UNKNOWN" + raw: Any + is_unknown: Literal[True] = True + + model_config = ConfigDict(frozen=True) + + +_MODEL_OUTPUT_MODALITY_V2_VARIANTS: dict[str, Any] = { + "text": ModelOutputModalityV2Text, + "image": ModelOutputModalityV2Image, + "video": ModelOutputModalityV2Video, + "speech": ModelOutputModalityV2Speech, + "transcription": ModelOutputModalityV2Transcription, + "embeddings": ModelOutputModalityV2Embeddings, + "rerank": ModelOutputModalityV2Rerank, + "decisions": ModelOutputModalityV2Decisions, + "audio": ModelOutputModalityV2Audio, +} + + +ModelOutputModalityV2 = Annotated[ + Union[ + ModelOutputModalityV2Text, + ModelOutputModalityV2Image, + ModelOutputModalityV2Video, + ModelOutputModalityV2Speech, + ModelOutputModalityV2Transcription, + ModelOutputModalityV2Embeddings, + ModelOutputModalityV2Rerank, + ModelOutputModalityV2Decisions, + ModelOutputModalityV2Audio, + UnknownModelOutputModalityV2, + ], + BeforeValidator( + partial( + parse_open_union, + disc_key="type", + variants=_MODEL_OUTPUT_MODALITY_V2_VARIANTS, + unknown_cls=UnknownModelOutputModalityV2, + union_name="ModelOutputModalityV2", + ) + ), +] diff --git a/src/openrouter/components/parameterdescriptor.py b/src/openrouter/components/parameterdescriptor.py new file mode 100644 index 000000000..60813443f --- /dev/null +++ b/src/openrouter/components/parameterdescriptor.py @@ -0,0 +1,112 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from openrouter.types import BaseModel, UNSET_SENTINEL, UnrecognizedStr +from pydantic import model_serializer +from typing import Dict, List, Literal, Optional, Union +from typing_extensions import NotRequired, TypeAliasType, TypedDict + + +DefaultTypedDict = TypeAliasType("DefaultTypedDict", Union[str, float, bool]) + + +Default = TypeAliasType("Default", Union[str, float, bool]) + + +ParameterDescriptorType = Union[ + Literal[ + "range", + "integer", + "boolean", + "enum", + "array", + "object", + "unknown", + ], + UnrecognizedStr, +] + + +ParameterDescriptorUnit = Union[ + Literal[ + "second", + "pixel", + "byte", + "token", + "character", + ], + UnrecognizedStr, +] + + +ParameterDescriptorValueTypedDict = TypeAliasType( + "ParameterDescriptorValueTypedDict", Union[str, float] +) + + +ParameterDescriptorValue = TypeAliasType("ParameterDescriptorValue", Union[str, float]) + + +class ParameterDescriptorTypedDict(TypedDict): + r"""A request parameter descriptor: `type` is range, integer, boolean, enum, array, object or unknown, with the constraint fields of that type.""" + + type: ParameterDescriptorType + default: NotRequired[DefaultTypedDict] + items: NotRequired[ParameterDescriptorTypedDict] + r"""A request parameter descriptor: `type` is range, integer, boolean, enum, array, object or unknown, with the constraint fields of that type.""" + max: NotRequired[float] + max_items: NotRequired[int] + min: NotRequired[float] + properties: NotRequired[Dict[str, ParameterDescriptorTypedDict]] + unit: NotRequired[ParameterDescriptorUnit] + values: NotRequired[List[ParameterDescriptorValueTypedDict]] + + +class ParameterDescriptor(BaseModel): + r"""A request parameter descriptor: `type` is range, integer, boolean, enum, array, object or unknown, with the constraint fields of that type.""" + + type: ParameterDescriptorType + + default: Optional[Default] = None + + items: Optional[ParameterDescriptor] = None + r"""A request parameter descriptor: `type` is range, integer, boolean, enum, array, object or unknown, with the constraint fields of that type.""" + + max: Optional[float] = None + + max_items: Optional[int] = None + + min: Optional[float] = None + + properties: Optional[Dict[str, ParameterDescriptor]] = None + + unit: Optional[ParameterDescriptorUnit] = None + + values: Optional[List[ParameterDescriptorValue]] = None + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = set( + [ + "default", + "items", + "max", + "max_items", + "min", + "properties", + "unit", + "values", + ] + ) + serialized = handler(self) + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k, serialized.get(n)) + + if val != UNSET_SENTINEL: + if val is not None or k not in optional_fields: + m[k] = val + + return m diff --git a/src/openrouter/components/speechinputmodality.py b/src/openrouter/components/speechinputmodality.py index 1b218efd1..8046ca68a 100644 --- a/src/openrouter/components/speechinputmodality.py +++ b/src/openrouter/components/speechinputmodality.py @@ -21,13 +21,13 @@ r"""`required`: an image reference is accepted only together with an audio reference. `excluded`: only without one. Absent: either.""" -class SupportedInputs2TypedDict(TypedDict): +class SpeechInputModalitySupportedInputs2TypedDict(TypedDict): references: SpeechReferenceCountTypedDict audio: NotRequired[AudioEnum] r"""`required`: an image reference is accepted only together with an audio reference. `excluded`: only without one. Absent: either.""" -class SupportedInputs2(BaseModel): +class SpeechInputModalitySupportedInputs2(BaseModel): references: SpeechReferenceCount audio: Optional[AudioEnum] = None @@ -54,42 +54,42 @@ def serialize_model(self, handler): class SpeechInputModalityImageTypedDict(TypedDict): - supported_inputs: SupportedInputs2TypedDict + supported_inputs: SpeechInputModalitySupportedInputs2TypedDict type: SpeechInputModalityTypeImage class SpeechInputModalityImage(BaseModel): - supported_inputs: SupportedInputs2 + supported_inputs: SpeechInputModalitySupportedInputs2 type: SpeechInputModalityTypeImage -class SupportedInputs1TypedDict(TypedDict): +class SpeechInputModalitySupportedInputs1TypedDict(TypedDict): r"""`references` is how many audio clips a request may send. With more than one, some providers require the text to address every clip with an `@AudioN` placeholder.""" references: SpeechReferenceCountTypedDict -class SupportedInputs1(BaseModel): +class SpeechInputModalitySupportedInputs1(BaseModel): r"""`references` is how many audio clips a request may send. With more than one, some providers require the text to address every clip with an `@AudioN` placeholder.""" references: SpeechReferenceCount -TypeAudio = Literal["audio",] +SpeechInputModalityTypeAudio = Literal["audio",] class SpeechInputModalityAudioTypedDict(TypedDict): - supported_inputs: SupportedInputs1TypedDict + supported_inputs: SpeechInputModalitySupportedInputs1TypedDict r"""`references` is how many audio clips a request may send. With more than one, some providers require the text to address every clip with an `@AudioN` placeholder.""" - type: TypeAudio + type: SpeechInputModalityTypeAudio class SpeechInputModalityAudio(BaseModel): - supported_inputs: SupportedInputs1 + supported_inputs: SpeechInputModalitySupportedInputs1 r"""`references` is how many audio clips a request may send. With more than one, some providers require the text to address every clip with an `@AudioN` placeholder.""" - type: TypeAudio + type: SpeechInputModalityTypeAudio Turns = Union[ diff --git a/src/openrouter/components/speechvoiceparameter.py b/src/openrouter/components/speechvoiceparameter.py index 85881124e..faa4b6a89 100644 --- a/src/openrouter/components/speechvoiceparameter.py +++ b/src/openrouter/components/speechvoiceparameter.py @@ -7,7 +7,7 @@ from typing_extensions import NotRequired, TypedDict -References = Literal["excluded",] +ReferencesEnum = Literal["excluded",] r"""`excluded`: `voice` is rejected when the request also sends a nonempty `input_references`. Absent: they can be combined.""" @@ -24,7 +24,7 @@ class SpeechVoiceParameterTypedDict(TypedDict): r"""`enum` lists the documented voices in `values`; some providers also accept voice IDs not listed there (custom or cloned voices). `unknown` means the field is accepted but no voices are listed.""" type: SpeechVoiceParameterType - references: NotRequired[References] + references: NotRequired[ReferencesEnum] r"""`excluded`: `voice` is rejected when the request also sends a nonempty `input_references`. Absent: they can be combined.""" values: NotRequired[List[str]] @@ -34,7 +34,7 @@ class SpeechVoiceParameter(BaseModel): type: SpeechVoiceParameterType - references: Optional[References] = None + references: Optional[ReferencesEnum] = None r"""`excluded`: `voice` is rejected when the request also sends a nonempty `input_references`. Absent: they can be combined.""" values: Optional[List[str]] = None diff --git a/src/openrouter/components/videomodel.py b/src/openrouter/components/videomodel.py index e5a05fbd2..99c87350e 100644 --- a/src/openrouter/components/videomodel.py +++ b/src/openrouter/components/videomodel.py @@ -1,6 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations +from .modelinputmodalityv2 import ModelInputModalityV2, ModelInputModalityV2TypedDict +from .modeloutputmodalityv2 import ModelOutputModalityV2, ModelOutputModalityV2TypedDict from openrouter.types import ( BaseModel, Nullable, @@ -223,6 +225,10 @@ class VideoModelTypedDict(TypedDict): r"""Description of the model""" hugging_face_id: NotRequired[Nullable[str]] r"""Hugging Face model identifier, if applicable""" + input_modalities: NotRequired[List[ModelInputModalityV2TypedDict]] + r"""Typed inputs the model accepts, following the Models API V2 document. An image input lists the frame roles it may take.""" + output_modalities: NotRequired[List[ModelOutputModalityV2TypedDict]] + r"""Typed outputs with the request fields each accepts, following the Models API V2 document. Pricing stays in `pricing_skus`.""" pricing_skus: NotRequired[Nullable[Dict[str, str]]] r"""Pricing SKUs with provider prefix stripped, values as strings""" @@ -276,12 +282,26 @@ class VideoModel(BaseModel): hugging_face_id: OptionalNullable[str] = UNSET r"""Hugging Face model identifier, if applicable""" + input_modalities: Optional[List[ModelInputModalityV2]] = None + r"""Typed inputs the model accepts, following the Models API V2 document. An image input lists the frame roles it may take.""" + + output_modalities: Optional[List[ModelOutputModalityV2]] = None + r"""Typed outputs with the request fields each accepts, following the Models API V2 document. Pricing stays in `pricing_skus`.""" + pricing_skus: OptionalNullable[Dict[str, str]] = UNSET r"""Pricing SKUs with provider prefix stripped, values as strings""" @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = set(["description", "hugging_face_id", "pricing_skus"]) + optional_fields = set( + [ + "description", + "hugging_face_id", + "input_modalities", + "output_modalities", + "pricing_skus", + ] + ) nullable_fields = set( [ "creativity", diff --git a/src/openrouter/operations/listorganizationmembers.py b/src/openrouter/operations/listorganizationmembers.py index bab4420d7..52a74ecec 100644 --- a/src/openrouter/operations/listorganizationmembers.py +++ b/src/openrouter/operations/listorganizationmembers.py @@ -188,6 +188,8 @@ def serialize_model(self, handler): class ListOrganizationMembersDataTypedDict(TypedDict): email: str r"""Email address of the member""" + external_id: Nullable[str] + r"""The member's SCIM user ID, which your identity provider stores for their OpenRouter account (Okta shows it as External ID); not the SCIM `externalId` attribute. Set when your organization's SCIM directory provisions, updates or syncs the member. Null when this organization's directory did not provision the member (for example, they were invited, signed up directly, or provisioned by another organization's directory) or has not synced them yet. Members can keep their last synced value after the directory is removed.""" first_name: Nullable[str] r"""First name of the member""" id: str @@ -202,6 +204,9 @@ class ListOrganizationMembersData(BaseModel): email: str r"""Email address of the member""" + external_id: Nullable[str] + r"""The member's SCIM user ID, which your identity provider stores for their OpenRouter account (Okta shows it as External ID); not the SCIM `externalId` attribute. Set when your organization's SCIM directory provisions, updates or syncs the member. Null when this organization's directory did not provision the member (for example, they were invited, signed up directly, or provisioned by another organization's directory) or has not synced them yet. Members can keep their last synced value after the directory is removed.""" + first_name: Nullable[str] r"""First name of the member""" diff --git a/uv.lock b/uv.lock index 0f3404cf4..37fafc917 100644 --- a/uv.lock +++ b/uv.lock @@ -231,7 +231,7 @@ wheels = [ [[package]] name = "openrouter" -version = "1.3.220" +version = "1.3.221" source = { editable = "." } dependencies = [ { name = "httpcore" },