Skip to content

Commit 1ec7cdb

Browse files
committed
## Python SDK Changes Detected:
* `open_router.chat.send()`: * `request.messages.[].[user_message].content.[array].[].[video_url]` **Added** * `response.choices.[].message.content.[array].[].[video_url]` **Added**
1 parent a1dae77 commit 1ec7cdb

26 files changed

+318
-60
lines changed

.speakeasy/gen.lock

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: cfd52247-6a25-4c6d-bbce-fe6fce0cd69d
33
management:
4-
docChecksum: 4cc4a9d9115d0eca9a5eb4786505579d
4+
docChecksum: af4ee10c38a7bdf697026203a5fb456d
55
docVersion: 1.0.0
6-
speakeasyVersion: 1.658.2
6+
speakeasyVersion: 1.659.0
77
generationVersion: 2.755.9
8-
releaseVersion: 0.0.19
9-
configChecksum: 834d5c1cea368e35ab6535ffb2bf9e7a
8+
releaseVersion: 0.1.0
9+
configChecksum: 31c563db2b5251b8ce4f3716a3e31e7d
1010
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
1111
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
1212
published: true
@@ -27,6 +27,7 @@ features:
2727
globalSecurityCallbacks: 1.0.0
2828
globalSecurityFlattening: 1.0.0
2929
globalServerURLs: 3.2.0
30+
globals: 3.0.0
3031
groups: 3.0.1
3132
methodArguments: 1.0.2
3233
methodSecurity: 3.0.1
@@ -67,12 +68,14 @@ generatedFiles:
6768
- docs/components/chatmessagecontentitemaudio.md
6869
- docs/components/chatmessagecontentitemaudioformat.md
6970
- docs/components/chatmessagecontentitemaudioinputaudio.md
71+
- docs/components/chatmessagecontentitemfile.md
7072
- docs/components/chatmessagecontentitemimage.md
7173
- docs/components/chatmessagecontentitemimagedetail.md
7274
- docs/components/chatmessagecontentitemtext.md
7375
- docs/components/chatmessagecontentitemvideo.md
7476
- docs/components/chatmessagecontentitemvideoinputvideo.md
7577
- docs/components/chatmessagecontentitemvideovideourl.md
78+
- docs/components/chatmessagecontentitemvideovideourlvideourl.md
7679
- docs/components/chatmessagetokenlogprob.md
7780
- docs/components/chatmessagetokenlogprobs.md
7881
- docs/components/chatmessagetoolcall.md
@@ -110,6 +113,7 @@ generatedFiles:
110113
- docs/components/effort.md
111114
- docs/components/endpointstatus.md
112115
- docs/components/engine.md
116+
- docs/components/file.md
113117
- docs/components/filecitation.md
114118
- docs/components/filecitationtype.md
115119
- docs/components/filepath.md
@@ -416,8 +420,7 @@ generatedFiles:
416420
- docs/components/usermessage.md
417421
- docs/components/usermessagecontent.md
418422
- docs/components/variables.md
419-
- docs/components/videourl1.md
420-
- docs/components/videourl2.md
423+
- docs/components/videourl.md
421424
- docs/components/websearchpreviewtooluserlocation.md
422425
- docs/components/websearchpreviewtooluserlocationtype.md
423426
- docs/components/websearchstatus.md
@@ -436,6 +439,7 @@ generatedFiles:
436439
- docs/errors/toomanyrequestsresponseerror.md
437440
- docs/errors/unauthorizedresponseerror.md
438441
- docs/errors/unprocessableentityresponseerror.md
442+
- docs/models/internal/globals.md
439443
- docs/models/utils/retryconfig.md
440444
- docs/operations/apitype.md
441445
- docs/operations/calldata.md
@@ -554,6 +558,7 @@ generatedFiles:
554558
- src/openrouter/components/chatgenerationtokenusage.py
555559
- src/openrouter/components/chatmessagecontentitem.py
556560
- src/openrouter/components/chatmessagecontentitemaudio.py
561+
- src/openrouter/components/chatmessagecontentitemfile.py
557562
- src/openrouter/components/chatmessagecontentitemimage.py
558563
- src/openrouter/components/chatmessagecontentitemtext.py
559564
- src/openrouter/components/chatmessagecontentitemvideo.py
@@ -684,6 +689,7 @@ generatedFiles:
684689
- src/openrouter/components/unprocessableentityresponseerrordata.py
685690
- src/openrouter/components/urlcitation.py
686691
- src/openrouter/components/usermessage.py
692+
- src/openrouter/components/videourl.py
687693
- src/openrouter/components/websearchpreviewtooluserlocation.py
688694
- src/openrouter/components/websearchstatus.py
689695
- src/openrouter/credits.py
@@ -711,6 +717,9 @@ generatedFiles:
711717
- src/openrouter/errors/unprocessableentityresponse_error.py
712718
- src/openrouter/generations.py
713719
- src/openrouter/httpclient.py
720+
- src/openrouter/models/__init__.py
721+
- src/openrouter/models/internal/__init__.py
722+
- src/openrouter/models/internal/globals.py
714723
- src/openrouter/models_.py
715724
- src/openrouter/oauth.py
716725
- src/openrouter/operations/__init__.py
@@ -1104,3 +1113,4 @@ examples:
11041113
"500":
11051114
application/json: {"error": {"code": "<value>", "message": "<value>"}}
11061115
examplesVersion: 1.0.2
1116+
releaseNotes: "## Python SDK Changes Detected:\n* `open_router.chat.send()`: \n * `request.messages.[].[user_message].content.[array].[].[video_url]` **Added**\n * `response.choices.[].message.content.[array].[].[video_url]` **Added**\n"

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ generation:
3030
generateNewTests: true
3131
skipResponseBodyAssertions: false
3232
python:
33-
version: 0.0.19
33+
version: 0.1.0
3434
additionalDependencies:
3535
dev: {}
3636
main: {}

.speakeasy/out.openapi.yaml

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4669,12 +4669,7 @@ components:
46694669
type: string
46704670
const: input_video
46714671
video_url:
4672-
type: object
4673-
properties:
4674-
url:
4675-
type: string
4676-
required:
4677-
- url
4672+
$ref: '#/components/schemas/VideoURL'
46784673
required:
46794674
- type
46804675
- video_url
@@ -4694,12 +4689,40 @@ components:
46944689
- type
46954690
- video_url
46964691
type: object
4692+
VideoURL:
4693+
type: object
4694+
properties:
4695+
url:
4696+
type: string
4697+
required:
4698+
- url
4699+
ChatMessageContentItemFile:
4700+
type: object
4701+
properties:
4702+
type:
4703+
type: string
4704+
const: file
4705+
file:
4706+
type: object
4707+
properties:
4708+
file_data:
4709+
type: string
4710+
file_id:
4711+
type: string
4712+
filename:
4713+
type: string
4714+
required:
4715+
- file_data
4716+
required:
4717+
- type
4718+
- file
46974719
ChatMessageContentItem:
46984720
oneOf:
46994721
- $ref: '#/components/schemas/ChatMessageContentItemText'
47004722
- $ref: '#/components/schemas/ChatMessageContentItemImage'
47014723
- $ref: '#/components/schemas/ChatMessageContentItemAudio'
47024724
- $ref: '#/components/schemas/ChatMessageContentItemVideo'
4725+
- $ref: '#/components/schemas/ChatMessageContentItemFile'
47034726
type: object
47044727
discriminator:
47054728
propertyName: type
@@ -4709,6 +4732,7 @@ components:
47094732
input_audio: '#/components/schemas/ChatMessageContentItemAudio'
47104733
input_video: '#/components/schemas/ChatMessageContentItemVideo'
47114734
video_url: '#/components/schemas/ChatMessageContentItemVideo'
4735+
file: '#/components/schemas/ChatMessageContentItemFile'
47124736
ChatMessageToolCall:
47134737
type: object
47144738
properties:
@@ -5626,7 +5650,7 @@ components:
56265650
- model
56275651
- choices
56285652
additionalProperties: false
5629-
parameters: {}
5653+
parameters: {AppIdentifier: {name: HTTP-Referer, in: header, schema: {type: string}, description: "The app identifier should be your app's URL and is used as the primary identifier for rankings.\nThis is used to track API usage per application.\n"}, AppDisplayName: {name: X-Title, in: header, schema: {type: string}, description: "The app display name allows you to customize how your app appears in OpenRouter's dashboard.\n"}}
56305654
securitySchemes:
56315655
apiKey:
56325656
type: http
@@ -8385,3 +8409,7 @@ x-retry-strategy:
83858409
initialDelay: 500
83868410
maxDelay: 60000
83878411
maxAttempts: 3
8412+
x-speakeasy-globals:
8413+
parameters:
8414+
- $ref: "#/components/parameters/AppIdentifier"
8415+
- $ref: "#/components/parameters/AppDisplayName"

.speakeasy/workflow.lock

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
speakeasyVersion: 1.658.2
1+
speakeasyVersion: 1.659.0
22
sources:
33
-OAS:
44
sourceNamespace: open-router-chat-completions-api
5-
sourceRevisionDigest: sha256:fc0c90dc8ebb69ef4a571e4e63dcd7f8f33c3254c17ad2583b628fbbf3d1ac05
6-
sourceBlobDigest: sha256:635d63fd18db468c1dcc23700382af788de76594ba3b8292fae9b14c0e5c22c4
5+
sourceRevisionDigest: sha256:ffe0e925561a55a1b403667fe33bb3158e05892ef1e66f56211544c9a890b301
6+
sourceBlobDigest: sha256:18aa7b22686c2f559af1062fea408a9f80146231027ed1fd62b68df38c71f65d
77
tags:
88
- latest
9+
- speakeasy-sdk-regen-1763684529
910
targets:
1011
open-router:
1112
source: -OAS
1213
sourceNamespace: open-router-chat-completions-api
13-
sourceRevisionDigest: sha256:fc0c90dc8ebb69ef4a571e4e63dcd7f8f33c3254c17ad2583b628fbbf3d1ac05
14-
sourceBlobDigest: sha256:635d63fd18db468c1dcc23700382af788de76594ba3b8292fae9b14c0e5c22c4
14+
sourceRevisionDigest: sha256:ffe0e925561a55a1b403667fe33bb3158e05892ef1e66f56211544c9a890b301
15+
sourceBlobDigest: sha256:18aa7b22686c2f559af1062fea408a9f80146231027ed1fd62b68df38c71f65d
1516
workflow:
1617
workflowVersion: 1.0.0
1718
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,14 @@ Based on:
88
### Generated
99
- [python v0.0.16] .
1010
### Releases
11-
- [PyPI v0.0.16] https://pypi.org/project/openrouter/0.0.16 - .
11+
- [PyPI v0.0.16] https://pypi.org/project/openrouter/0.0.16 - .
12+
13+
## 2025-11-21 00:21:47
14+
### Changes
15+
Based on:
16+
- OpenAPI Doc
17+
- Speakeasy CLI 1.659.0 (2.755.9) https://github.com/speakeasy-api/speakeasy
18+
### Generated
19+
- [python v0.1.0] .
20+
### Releases
21+
- [PyPI v0.1.0] https://pypi.org/project/openrouter/0.1.0 - .

docs/components/chatmessagecontentitem.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,9 @@ value: components.ChatMessageContentItemVideo = /* values here */
3333
value: components.ChatMessageContentItemVideo = /* values here */
3434
```
3535

36+
### `components.ChatMessageContentItemFile`
37+
38+
```python
39+
value: components.ChatMessageContentItemFile = /* values here */
40+
```
41+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# ChatMessageContentItemFile
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
8+
| `type` | *Literal["file"]* | :heavy_check_mark: | N/A |
9+
| `file` | [components.File](../components/file.md) | :heavy_check_mark: | N/A |

docs/components/chatmessagecontentitemvideoinputvideo.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- |
8-
| `type` | *Literal["input_video"]* | :heavy_check_mark: | N/A |
9-
| `video_url` | [components.VideoURL1](../components/videourl1.md) | :heavy_check_mark: | N/A |
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ |
8+
| `type` | *Literal["input_video"]* | :heavy_check_mark: | N/A |
9+
| `video_url` | [components.VideoURL](../components/videourl.md) | :heavy_check_mark: | N/A |

docs/components/chatmessagecontentitemvideovideourl.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- |
8-
| `type` | *Literal["video_url"]* | :heavy_check_mark: | N/A |
9-
| `video_url` | [components.VideoURL2](../components/videourl2.md) | :heavy_check_mark: | N/A |
6+
| Field | Type | Required | Description |
7+
| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
8+
| `type` | *Literal["video_url"]* | :heavy_check_mark: | N/A |
9+
| `video_url` | [components.ChatMessageContentItemVideoVideoURLVideoURL](../components/chatmessagecontentitemvideovideourlvideourl.md) | :heavy_check_mark: | N/A |

docs/components/videourl2.md renamed to docs/components/chatmessagecontentitemvideovideourlvideourl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# VideoURL2
1+
# ChatMessageContentItemVideoVideoURLVideoURL
22

33

44
## Fields

0 commit comments

Comments
 (0)