Skip to content

Commit d2a794f

Browse files
github-actions[bot]speakeasybotspeakeasy-github[bot]
authored
chore: 🐝 Update SDK - Generate (spec change merged) 1.3.165 (#1318)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
1 parent 4a8fb9b commit d2a794f

16 files changed

Lines changed: 116 additions & 59 deletions

File tree

β€Ž.speakeasy/gen.lockβ€Ž

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
lockVersion: 2.0.0
22
id: c48cf606-fb42-4a45-9c23-8f0555307828
33
management:
4-
docChecksum: 83a66c1e4d3d049101bba8c81f0e17f7
4+
docChecksum: f222167ea1741b94fa09abf2fdcfc21e
55
docVersion: 1.0.0
66
speakeasyVersion: 1.803.2
77
generationVersion: 2.950.13
8-
releaseVersion: 1.3.164
9-
configChecksum: e851fa826eba158e743ab6a9a1cba756
8+
releaseVersion: 1.3.165
9+
configChecksum: 0daa315b2ea3b683b78a6419e4d12afd
1010
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
1111
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
1212
published: true
1313
persistentEdits:
14-
generation_id: d3a158e1-f4db-4d9b-ae2d-bb6c74594de1
15-
pristine_commit_hash: 5b3481d65b3820d405dabe5c47dfed688dc50434
16-
pristine_tree_hash: 03c4263565a0fdd0a04d1d768d16202728dab411
14+
generation_id: c98d4ad5-9f2a-487f-a5cd-969aec31f4d1
15+
pristine_commit_hash: 50305a324f8f6c7805373f404842c59776793b94
16+
pristine_tree_hash: a6da0c3336ec0d2203dbbb08abf9925a63e3d1e9
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -1560,8 +1560,8 @@ trackedFiles:
15601560
pristine_git_object: e2fc9fd2368fefc0ba33224fdb58809596869d06
15611561
docs/components/batchobjectdata.mdx:
15621562
id: ffbd6c621d43
1563-
last_write_checksum: sha1:0659f1c81fefec3470ae18e6db5306b3b4f15ed7
1564-
pristine_git_object: 8b57214c75be22f45b5bd4374ceb67a7432e648b
1563+
last_write_checksum: sha1:4d365b46d6ab0a8a73e5950ac116af941886fe0c
1564+
pristine_git_object: 53afc1a47c0f5b46d6cd3d2bf9474a8ebb4e3756
15651565
docs/components/batchobjectdebug.mdx:
15661566
id: d1b46e566034
15671567
last_write_checksum: sha1:187f310c8a97e1bcd65dcdd0e9a29234d2d68845
@@ -9696,8 +9696,8 @@ trackedFiles:
96969696
pristine_git_object: 488b8b57dcdb92e59281fe415e8015a616679970
96979697
docs/operations/createembeddingsdata.mdx:
96989698
id: 1bb218f30173
9699-
last_write_checksum: sha1:fe497c0dbfff2bcd81b4e06d75aba5fb1278bd4f
9700-
pristine_git_object: c07ff90afee4e6b3d47a697b00706a1b1cc78118
9699+
last_write_checksum: sha1:d69468aca84eaf4d19f3a7ff3f9bfadeb58903e0
9700+
pristine_git_object: 792ea2847c482c5e38955c1c55b31ca47d596b3c
97019701
docs/operations/createembeddingsglobals.mdx:
97029702
id: 11cf622f54b6
97039703
last_write_checksum: sha1:2f3d75c5f99fecb94602754e2e1e06af156db070
@@ -9708,8 +9708,8 @@ trackedFiles:
97089708
pristine_git_object: d2cd66cd4a4713e0aaf51023d6315e3b4cb6b7b8
97099709
docs/operations/createembeddingsrequestbody.mdx:
97109710
id: ce68e3b84ec3
9711-
last_write_checksum: sha1:d3b6672f5b1139958d292c32a305e5914b67e28d
9712-
pristine_git_object: 769a9579eba5e3b533a30ae19fe5e0331552641f
9711+
last_write_checksum: sha1:ed20f2152bd2e87ccc721f9a127502ac2ae2884b
9712+
pristine_git_object: 5e94783fd8990b7488df2baacf6e24895569fb5f
97139713
docs/operations/createembeddingsresponse.mdx:
97149714
id: 4db044e7c8a7
97159715
last_write_checksum: sha1:9b1ed48afb937e503da99a9d9f6c26ee036d84be
@@ -10592,8 +10592,8 @@ trackedFiles:
1059210592
pristine_git_object: 62255da5a1c53bf3b10d6a12e078e3589ca34197
1059310593
docs/operations/inputunion.mdx:
1059410594
id: fa09ca81a05c
10595-
last_write_checksum: sha1:6126fc355e98574f157b9b485ac850a0ec6f2a5e
10596-
pristine_git_object: 2394952123e253a775bb81426d6ee2d49911e97b
10595+
last_write_checksum: sha1:b592168e16977b71ea976de9aaa32e5bc7eebc66
10596+
pristine_git_object: dace01413ab3778f0612d9a5651b5455454661ba
1059710597
docs/operations/keepmembers.mdx:
1059810598
id: 2794baf69c28
1059910599
last_write_checksum: sha1:aaeb714170a62787f1821383b6136d1753f14722
@@ -11508,8 +11508,8 @@ trackedFiles:
1150811508
pristine_git_object: ccfdf4d46e8b2d6fd98c965c290ca2307a13a0bb
1150911509
docs/sdks/embeddings/README.mdx:
1151011510
id: cd71581df291
11511-
last_write_checksum: sha1:67640eac4a149bf213063aae2252b66ead195452
11512-
pristine_git_object: c9cd08e0c5ddc58ceffd85ee9ac7bf99e6f7180b
11511+
last_write_checksum: sha1:0c135485dc12628ef6717f2aab76b4b5a442d6d5
11512+
pristine_git_object: c5fccc03dd202034eb2d447f7236e9d468215b2c
1151311513
docs/sdks/endpoints/README.mdx:
1151411514
id: 62dfac9f7b71
1151511515
last_write_checksum: sha1:3cf3ac86ba33ebc2c82d1d2d54ba779b1fc7ce33
@@ -11620,8 +11620,8 @@ trackedFiles:
1162011620
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
1162111621
pyproject.toml:
1162211622
id: 5d07e7d72637
11623-
last_write_checksum: sha1:bdd5cc34f3f0a8af450afed5a3da30544cd15e2b
11624-
pristine_git_object: 32cd0d3b1f3f9056c0f834e655bd51be4b9aa47d
11623+
last_write_checksum: sha1:1e9e16d9c9f52cd4abee9b324aa837c5081615d2
11624+
pristine_git_object: 011e09cdba79353a9e6dcb89967803a3f7c31c3b
1162511625
scripts/prepare_readme.py:
1162611626
id: e0c5957a6035
1162711627
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -11648,8 +11648,8 @@ trackedFiles:
1164811648
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
1164911649
src/openrouter/_version.py:
1165011650
id: d8d15ad6c586
11651-
last_write_checksum: sha1:e1cf3fe0a23400c7514ffab6dcbcf99f1f5b7950
11652-
pristine_git_object: be5ca24775c1c3a974a9a639bae411fce7e01761
11651+
last_write_checksum: sha1:62a07b676d07f7010d1ee398af6930a0a3b4180b
11652+
pristine_git_object: f7739434513906a1842da676937cf0b2432de219
1165311653
src/openrouter/alpha.py:
1165411654
id: 306c4d93308d
1165511655
last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766
@@ -12368,8 +12368,8 @@ trackedFiles:
1236812368
pristine_git_object: 8650957337063ba3aef94341108448ec19bd2945
1236912369
src/openrouter/components/batchobject.py:
1237012370
id: caf1ef2414a3
12371-
last_write_checksum: sha1:7d72a640b1d4b592b455cacdea31f86cc856ad33
12372-
pristine_git_object: 7987968f47d7d9713237f1a90231fd7c78a617c3
12371+
last_write_checksum: sha1:5d342f4f271ed7d5f04ba184ef1cf263a876ab12
12372+
pristine_git_object: aef368a29570342346022dcc706ac59db00fa6f2
1237312373
src/openrouter/components/batchpaymentrequiredresponse_error.py:
1237412374
id: 29d3620e8858
1237512375
last_write_checksum: sha1:c797fbfd8a88561c101aca8a4d556352213b8096
@@ -15520,8 +15520,8 @@ trackedFiles:
1552015520
pristine_git_object: 86c90d5988c391d0f0d52d29f8f01139eb4d26ae
1552115521
src/openrouter/embeddings.py:
1552215522
id: 0374ace39067
15523-
last_write_checksum: sha1:3c45cacab1080f90f0a01e4923fd3bc5c8e9c281
15524-
pristine_git_object: 71d905b15e0a7b3c140823ddb45fb34b239fe021
15523+
last_write_checksum: sha1:76c14bf1233a2e4c06582791a89976bbf2f0f579
15524+
pristine_git_object: 2263922e5b202354a7a6979f4b0d6445c5900522
1552515525
src/openrouter/endpoints.py:
1552615526
id: 465bbf2b7939
1552715527
last_write_checksum: sha1:0632be9f0f9b0bc8a282a5840a759d7a2833c645
@@ -15780,8 +15780,8 @@ trackedFiles:
1578015780
pristine_git_object: d96c756e911994eaf6ef695a059f7575d69ff63c
1578115781
src/openrouter/operations/createembeddings.py:
1578215782
id: fe1160a960e9
15783-
last_write_checksum: sha1:c1e7ac31c6ed358390feeef03d91e5917e57d5de
15784-
pristine_git_object: 480596964d35ec389350b19b2bf56ac1877960ce
15783+
last_write_checksum: sha1:5d214462d03b94720ed4243cb0ee0b966a8e529a
15784+
pristine_git_object: d3c58f701fa7b39ee9d2adf92909062b2ca72ed7
1578515785
src/openrouter/operations/createexternaluser.py:
1578615786
id: 6bb4aa63cf35
1578715787
last_write_checksum: sha1:d114e83b15d1b4eefb6e0d948b59124379813101
@@ -21609,4 +21609,4 @@ examples:
2160921609
"500":
2161021610
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
2161121611
examplesVersion: 1.0.2
21612-
releaseNotes: "## Python SDK Changes:\n* `open_router.batch.create_batches()`: \n * `request.endpoint.enum(/v1/audio/speech)` **Added**\n * `response.results[].response.body.union(class (4))` **Added** (Breaking ⚠️)\n* `open_router.batch.get_batches()`: `response.results[].response.body.union(class (4))` **Added** (Breaking ⚠️)\n"
21612+
releaseNotes: "## Python SDK Changes:\n* `open_router.batch.create_batches()`: `response.results[].response.body.union(class (3)).data[].document_index` **Added**\n* `open_router.batch.get_batches()`: `response.results[].response.body.union(class (3)).data[].document_index` **Added**\n* `open_router.embeddings.generate()`: \n * `request.input.union(Array<Array<string>>)` **Added**\n * `response.data[].document_index` **Added**\n"

β€Ž.speakeasy/gen.yamlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ generation:
3737
documentation: mintlify
3838
preApplyUnionDiscriminators: true
3939
python:
40-
version: 1.3.164
40+
version: 1.3.165
4141
additionalDependencies:
4242
dev:
4343
pytest: '>=8.3'

β€Ž.speakeasy/out.openapi.yamlβ€Ž

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6207,6 +6207,10 @@ components:
62076207
index: 0
62086208
object: 'embedding'
62096209
properties:
6210+
document_index:
6211+
description: 'Index of the source document when `input` was a list of documents (contextual embeddings). Absent otherwise.'
6212+
example: 0
6213+
type: 'integer'
62106214
embedding:
62116215
anyOf:
62126216
- items:
@@ -44088,6 +44092,19 @@ paths:
4408844092
minLength: 1
4408944093
type: 'string'
4409044094
type: 'array'
44095+
- description: 'Documents to embed with document-level context: each item is an ordered list of chunk strings. One embedding is returned per chunk, in document order, with `document_index` set on each. Only models that support contextual embeddings accept this shape.'
44096+
example:
44097+
- - 'Paris is the capital of France.'
44098+
- 'It sits on the Seine.'
44099+
- - 'Berlin is the capital of Germany.'
44100+
items:
44101+
items:
44102+
minLength: 1
44103+
type: 'string'
44104+
minItems: 1
44105+
type: 'array'
44106+
minItems: 1
44107+
type: 'array'
4409144108
- items:
4409244109
type: 'number'
4409344110
type: 'array'
@@ -44141,7 +44158,7 @@ paths:
4414144158
description: 'Text, token, or multimodal input(s) to embed'
4414244159
example: 'The quick brown fox jumps over the lazy dog'
4414344160
input_type:
44144-
description: 'The type of input (e.g. search_query, search_document)'
44161+
description: 'The type of input (e.g. search_query, search_document). Document-chunk input (`string[][]`) is only valid with a document input type.'
4414544162
example: 'search_query'
4414644163
type: 'string'
4414744164
model:
@@ -44207,6 +44224,10 @@ paths:
4420744224
index: 0
4420844225
object: 'embedding'
4420944226
properties:
44227+
document_index:
44228+
description: 'Index of the source document when `input` was a list of documents (contextual embeddings). Absent otherwise.'
44229+
example: 0
44230+
type: 'integer'
4421044231
embedding:
4421144232
anyOf:
4421244233
- items:

β€Ž.speakeasy/workflow.lockβ€Ž

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ speakeasyVersion: 1.803.2
22
sources:
33
OpenRouter API:
44
sourceNamespace: open-router-chat-completions-api
5-
sourceRevisionDigest: sha256:bc44f0142393e2fcddd93b174e23993e9381679bc2d1e7a7d342d8a4bb7515c9
6-
sourceBlobDigest: sha256:100cf0bccc73a1774aae0b97327033104d08856cd30630a1264ebb0ac88bf863
5+
sourceRevisionDigest: sha256:535d9a7476c560df30f2f6e3503b0933212d5b613ea696d67a45ff8023b7ddba
6+
sourceBlobDigest: sha256:72e1a7e0e1cf5209c61f3d75ffe2fa4f69eb74b026703e1fa8fe46e473aa1ed1
77
tags:
88
- latest
99
- 1.0.0
1010
targets:
1111
open-router:
1212
source: OpenRouter API
1313
sourceNamespace: open-router-chat-completions-api
14-
sourceRevisionDigest: sha256:bc44f0142393e2fcddd93b174e23993e9381679bc2d1e7a7d342d8a4bb7515c9
15-
sourceBlobDigest: sha256:100cf0bccc73a1774aae0b97327033104d08856cd30630a1264ebb0ac88bf863
14+
sourceRevisionDigest: sha256:535d9a7476c560df30f2f6e3503b0933212d5b613ea696d67a45ff8023b7ddba
15+
sourceBlobDigest: sha256:72e1a7e0e1cf5209c61f3d75ffe2fa4f69eb74b026703e1fa8fe46e473aa1ed1
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:19e05057ce93aa0a9c83f8508484a345be2ff3d4a6dca71942bbe600bb8a9409
17+
codeSamplesRevisionDigest: sha256:fc4e277f20fea75d4a54b1fd66eeea24274542c5aa4075f48aff55fe9ab10f40
1818
workflow:
1919
workflowVersion: 1.0.0
2020
speakeasyVersion: 1.803.2

β€ŽRELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4409,4 +4409,14 @@ Based on:
44094409
### Generated
44104410
- [python v1.3.164] .
44114411
### Releases
4412-
- [PyPI v1.3.164] https://pypi.org/project/openrouter/1.3.164 - .
4412+
- [PyPI v1.3.164] https://pypi.org/project/openrouter/1.3.164 - .
4413+
4414+
## 2026-11-11 23:39:07
4415+
### Changes
4416+
Based on:
4417+
- OpenAPI Doc
4418+
- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy
4419+
### Generated
4420+
- [python v1.3.165] .
4421+
### Releases
4422+
- [PyPI v1.3.165] https://pypi.org/project/openrouter/1.3.165 - .

β€Ždocs/components/batchobjectdata.mdxβ€Ž

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ A single embedding object
77

88
## Fields
99

10-
| Field | Type | Required | Description | Example |
11-
| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- |
12-
| `embedding` | [components.Embedding](../components/embedding.mdx) | βœ”οΈ | Embedding vector as an array of floats or a base64 string | [<br/>0.0023064255,<br/>-0.009327292,<br/>0.015797347<br/>] |
13-
| `index` | *Optional[int]* | βž– | Index of the embedding in the input list | 0 |
14-
| `object` | [components.ObjectEmbedding](../components/objectembedding.mdx) | βœ”οΈ | N/A | |
10+
| Field | Type | Required | Description | Example |
11+
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
12+
| `document_index` | *Optional[int]* | βž– | Index of the source document when `input` was a list of documents (contextual embeddings). Absent otherwise. | 0 |
13+
| `embedding` | [components.Embedding](../components/embedding.mdx) | βœ”οΈ | Embedding vector as an array of floats or a base64 string | [<br/>0.0023064255,<br/>-0.009327292,<br/>0.015797347<br/>] |
14+
| `index` | *Optional[int]* | βž– | Index of the embedding in the input list | 0 |
15+
| `object` | [components.ObjectEmbedding](../components/objectembedding.mdx) | βœ”οΈ | N/A | |

0 commit comments

Comments
Β (0)