Skip to content

Commit 143af40

Browse files
committed
## Python SDK Changes Detected:
* `livepeer.generate.live_video_to_video()`: * `request` **Changed** * `response` **Changed**
1 parent 80214d1 commit 143af40

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1860
-1335
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
**/__pycache__/
2+
**/.speakeasy/temp/
3+
**/.speakeasy/logs/
4+
.env
5+
.env.local
16
.speakeasy/reports
27
# Speakeasy
38
.venv/

.speakeasy/gen.lock

Lines changed: 36 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,35 @@
11
lockVersion: 2.0.0
22
id: 2d5dbf5a-62be-411a-9c7b-bc7b6dc79e13
33
management:
4-
docChecksum: 6657dd3e876a909472f364dc1fe34d72
5-
docVersion: 0.0.0
6-
speakeasyVersion: 1.480.0
7-
generationVersion: 2.499.0
8-
releaseVersion: 0.10.0
9-
configChecksum: 2b2d2389ee9ff1be5cd354baf7c62739
4+
docChecksum: ccf6085748e452cf3e6a2d9f287f99de
5+
docVersion: 0.13.11
6+
speakeasyVersion: 1.649.0
7+
generationVersion: 2.739.1
8+
releaseVersion: 0.11.0
9+
configChecksum: a59e5784cfe2625ee65b0eeabb5994cb
1010
repoURL: https://github.com/livepeer/livepeer-ai-python.git
1111
installationURL: https://github.com/livepeer/livepeer-ai-python.git
1212
published: true
1313
features:
1414
python:
1515
additionalDependencies: 1.0.0
1616
constsAndDefaults: 1.0.5
17-
core: 5.10.7
17+
core: 5.23.4
1818
defaultEnabledRetries: 0.2.0
1919
envVarSecurityUsage: 0.3.2
20-
globalSecurity: 3.0.2
20+
globalSecurity: 3.0.4
2121
globalSecurityCallbacks: 1.0.0
2222
globalSecurityFlattening: 1.0.0
23-
globalServerURLs: 3.1.0
23+
globalServerURLs: 3.2.0
2424
multipartFileContentType: 1.0.0
2525
nameOverrides: 3.0.1
2626
responseFormat: 1.0.1
2727
retries: 3.0.2
28-
sdkHooks: 1.0.0
29-
unions: 3.0.4
28+
sdkHooks: 1.1.0
29+
unions: 3.1.0
3030
uploadStreams: 1.0.0
3131
generatedFiles:
3232
- .gitattributes
33-
- .python-version
3433
- .vscode/settings.json
3534
- USAGE.md
3635
- docs/models/components/apierror.md
@@ -83,12 +82,11 @@ generatedFiles:
8382
- docs/models/operations/genupscaleresponse.md
8483
- docs/models/utils/retryconfig.md
8584
- docs/sdks/generate/README.md
86-
- docs/sdks/livepeer/README.md
8785
- poetry.toml
8886
- py.typed
8987
- pylintrc
9088
- pyproject.toml
91-
- scripts/prepare-readme.py
89+
- scripts/prepare_readme.py
9290
- scripts/publish.sh
9391
- src/livepeer_ai/__init__.py
9492
- src/livepeer_ai/_hooks/__init__.py
@@ -98,6 +96,7 @@ generatedFiles:
9896
- src/livepeer_ai/basesdk.py
9997
- src/livepeer_ai/generate.py
10098
- src/livepeer_ai/httpclient.py
99+
- src/livepeer_ai/models/__init__.py
101100
- src/livepeer_ai/models/components/__init__.py
102101
- src/livepeer_ai/models/components/apierror.py
103102
- src/livepeer_ai/models/components/audioresponse.py
@@ -130,6 +129,9 @@ generatedFiles:
130129
- src/livepeer_ai/models/errors/__init__.py
131130
- src/livepeer_ai/models/errors/httperror.py
132131
- src/livepeer_ai/models/errors/httpvalidationerror.py
132+
- src/livepeer_ai/models/errors/livepeererror.py
133+
- src/livepeer_ai/models/errors/no_response_error.py
134+
- src/livepeer_ai/models/errors/responsevalidationerror.py
133135
- src/livepeer_ai/models/errors/sdkerror.py
134136
- src/livepeer_ai/models/operations/__init__.py
135137
- src/livepeer_ai/models/operations/genaudiototext.py
@@ -149,6 +151,7 @@ generatedFiles:
149151
- src/livepeer_ai/types/basemodel.py
150152
- src/livepeer_ai/utils/__init__.py
151153
- src/livepeer_ai/utils/annotations.py
154+
- src/livepeer_ai/utils/datetimes.py
152155
- src/livepeer_ai/utils/enums.py
153156
- src/livepeer_ai/utils/eventstreaming.py
154157
- src/livepeer_ai/utils/forms.py
@@ -160,6 +163,7 @@ generatedFiles:
160163
- src/livepeer_ai/utils/retries.py
161164
- src/livepeer_ai/utils/security.py
162165
- src/livepeer_ai/utils/serializers.py
166+
- src/livepeer_ai/utils/unmarshal_json_response.py
163167
- src/livepeer_ai/utils/url.py
164168
- src/livepeer_ai/utils/values.py
165169
examples:
@@ -169,7 +173,7 @@ examples:
169173
application/json: {"model_id": "", "loras": "", "prompt": "<value>", "height": 576, "width": 1024, "guidance_scale": 7.5, "negative_prompt": "", "safety_check": true, "num_inference_steps": 50, "num_images_per_prompt": 1}
170174
responses:
171175
"200":
172-
application/json: {"images": [{"url": "https://hateful-cruelty.name", "seed": 857392, "nsfw": true}]}
176+
application/json: {"images": []}
173177
"400":
174178
application/json: {"detail": {"msg": "<value>"}}
175179
"422":
@@ -179,10 +183,10 @@ examples:
179183
genImageToImage:
180184
speakeasy-default-gen-image-to-image:
181185
requestBody:
182-
multipart/form-data: {"prompt": "<value>", "image": {"": "x-file: example.file"}, "model_id": "", "loras": "", "strength": 0.8, "guidance_scale": 7.5, "image_guidance_scale": 1.5, "negative_prompt": "", "safety_check": true, "num_inference_steps": 100, "num_images_per_prompt": 1}
186+
multipart/form-data: {"prompt": "<value>", "image": "x-file: example.file", "model_id": "", "loras": "", "strength": 0.8, "guidance_scale": 7.5, "image_guidance_scale": 1.5, "negative_prompt": "", "safety_check": true, "num_inference_steps": 100, "num_images_per_prompt": 1}
183187
responses:
184188
"200":
185-
application/json: {"images": [{"url": "https://selfish-operating.name/", "seed": 976514, "nsfw": false}]}
189+
application/json: {"images": []}
186190
"400":
187191
application/json: {"detail": {"msg": "<value>"}}
188192
"422":
@@ -192,10 +196,10 @@ examples:
192196
genImageToVideo:
193197
speakeasy-default-gen-image-to-video:
194198
requestBody:
195-
multipart/form-data: {"image": {"": "x-file: example.file"}, "model_id": "", "height": 576, "width": 1024, "fps": 6, "motion_bucket_id": 127, "noise_aug_strength": 0.02, "safety_check": true, "num_inference_steps": 25}
199+
multipart/form-data: {"image": "x-file: example.file", "model_id": "", "height": 576, "width": 1024, "fps": 6, "motion_bucket_id": 127, "noise_aug_strength": 0.02, "safety_check": true, "num_inference_steps": 25}
196200
responses:
197201
"200":
198-
application/json: {"images": [{"url": "https://low-handover.name/", "seed": 87160, "nsfw": true}]}
202+
application/json: {"images": []}
199203
"400":
200204
application/json: {"detail": {"msg": "<value>"}}
201205
"422":
@@ -205,10 +209,10 @@ examples:
205209
genUpscale:
206210
speakeasy-default-gen-upscale:
207211
requestBody:
208-
multipart/form-data: {"prompt": "<value>", "image": {"": "x-file: example.file"}, "model_id": "", "safety_check": true, "num_inference_steps": 75}
212+
multipart/form-data: {"prompt": "<value>", "image": "x-file: example.file", "model_id": "", "safety_check": true, "num_inference_steps": 75}
209213
responses:
210214
"200":
211-
application/json: {"images": [{"url": "https://bogus-typewriter.net", "seed": 311567, "nsfw": false}]}
215+
application/json: {"images": []}
212216
"400":
213217
application/json: {"detail": {"msg": "<value>"}}
214218
"422":
@@ -218,10 +222,10 @@ examples:
218222
genAudioToText:
219223
speakeasy-default-gen-audio-to-text:
220224
requestBody:
221-
multipart/form-data: {"audio": {"": "x-file: example.file"}, "model_id": "", "return_timestamps": "true"}
225+
multipart/form-data: {"audio": "x-file: example.file", "model_id": "", "return_timestamps": "true"}
222226
responses:
223227
"200":
224-
application/json: {"text": "<value>", "chunks": [{"timestamp": ["<value>", "<value>"], "text": "<value>"}, {"timestamp": [], "text": "<value>"}]}
228+
application/json: {"text": "<value>", "chunks": []}
225229
"400":
226230
application/json: {"detail": {"msg": "<value>"}}
227231
"422":
@@ -231,7 +235,7 @@ examples:
231235
genSegmentAnything2:
232236
speakeasy-default-gen-segment-anything2:
233237
requestBody:
234-
multipart/form-data: {"image": {"": "x-file: example.file"}, "model_id": "", "multimask_output": true, "return_logits": true, "normalize_coords": true}
238+
multipart/form-data: {"image": "x-file: example.file", "model_id": "", "multimask_output": true, "return_logits": true, "normalize_coords": true}
235239
responses:
236240
"200":
237241
application/json: {"masks": "<value>", "scores": "<value>", "logits": "<value>"}
@@ -244,10 +248,10 @@ examples:
244248
genLLM:
245249
speakeasy-default-gen-LLM:
246250
requestBody:
247-
application/json: {"messages": [], "model": "", "temperature": 0.7, "max_tokens": 256, "top_p": 1, "top_k": -1, "stream": false}
251+
application/json: {"messages": [{"role": "<value>", "content": "<value>"}], "model": "", "temperature": 0.7, "max_tokens": 256, "top_p": 1, "top_k": -1, "stream": false}
248252
responses:
249253
"200":
250-
application/json: {"id": "<id>", "model": "Expedition", "created": 755586, "usage": {"prompt_tokens": 348799, "completion_tokens": 332397, "total_tokens": 528534}, "choices": []}
254+
application/json: {"id": "<id>", "model": "Explorer", "created": 166063, "usage": {"prompt_tokens": 213097, "completion_tokens": 185693, "total_tokens": 530500}, "choices": []}
251255
"400":
252256
application/json: {"detail": {"msg": "<value>"}}
253257
"422":
@@ -257,7 +261,7 @@ examples:
257261
genImageToText:
258262
speakeasy-default-gen-image-to-text:
259263
requestBody:
260-
multipart/form-data: {"image": {"": "x-file: example.file"}, "prompt": "", "model_id": ""}
264+
multipart/form-data: {"image": "x-file: example.file", "prompt": "", "model_id": ""}
261265
responses:
262266
"200":
263267
application/json: {"text": "<value>"}
@@ -270,10 +274,10 @@ examples:
270274
genLiveVideoToVideo:
271275
speakeasy-default-gen-live-video-to-video:
272276
requestBody:
273-
application/json: {"subscribe_url": "https://soulful-lava.org/", "publish_url": "https://vain-tabletop.biz", "control_url": "", "events_url": "", "model_id": ""}
277+
application/json: {"subscribe_url": "https://soulful-finding.biz", "publish_url": "https://monumental-representation.biz/", "control_url": "", "events_url": "", "model_id": "", "gateway_request_id": "", "manifest_id": "", "stream_id": ""}
274278
responses:
275279
"200":
276-
application/json: {"subscribe_url": "https://vain-kiss.name", "publish_url": "https://frail-duffel.com", "control_url": "", "events_url": ""}
280+
application/json: {"subscribe_url": "https://any-expense.com/", "publish_url": "https://early-abacus.org", "control_url": "", "events_url": "", "request_id": "", "manifest_id": ""}
277281
"400":
278282
application/json: {"detail": {"msg": "<value>"}}
279283
"422":
@@ -286,12 +290,13 @@ examples:
286290
application/json: {"model_id": "", "text": "", "description": "A male speaker delivers a slightly expressive and animated speech with a moderate speed and pitch."}
287291
responses:
288292
"200":
289-
application/json: {"audio": {"url": "https://accurate-parsnip.net/"}}
293+
application/json: {"audio": {"url": "https://slushy-elevation.net/"}}
290294
"400":
291295
application/json: {"detail": {"msg": "<value>"}}
292296
"422":
293297
application/json: {}
294298
"500":
295299
application/json: {"detail": {"msg": "<value>"}}
296-
examplesVersion: 1.0.0
300+
examplesVersion: 1.0.2
297301
generatedTests: {}
302+
releaseNotes: "## Python SDK Changes Detected:\n* `livepeer.generate.live_video_to_video()`: \n * `request` **Changed**\n * `response` **Changed**\n"

.speakeasy/gen.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,38 @@ generation:
44
maintainOpenAPIOrder: true
55
usageSnippets:
66
optionalPropertyRendering: withExample
7+
sdkInitStyle: constructor
78
useClassNamesForArrayFields: true
89
fixes:
910
nameResolutionDec2023: true
11+
nameResolutionFeb2025: false
1012
parameterOrderingFeb2024: true
1113
requestResponseComponentNamesFeb2024: true
14+
securityFeb2025: false
15+
sharedErrorComponentsApr2025: false
1216
auth:
1317
oAuth2ClientCredentialsEnabled: true
1418
oAuth2PasswordEnabled: false
19+
hoistGlobalSecurity: true
20+
schemas:
21+
allOfMergeStrategy: shallowMerge
22+
tests:
23+
generateTests: true
24+
generateNewTests: false
25+
skipResponseBodyAssertions: false
1526
python:
16-
version: 0.10.0
27+
version: 0.11.0
1728
additionalDependencies:
1829
dev: {}
1930
main: {}
31+
allowedRedefinedBuiltins:
32+
- id
33+
- object
34+
asyncMode: both
2035
author: Livepeer
2136
authors:
2237
- Speakeasy
38+
baseErrorName: LivepeerError
2339
clientServerStatusCodesAsErrors: true
2440
defaultErrorName: SDKError
2541
description: Python Client SDK for the Livepeer AI API.
@@ -39,10 +55,16 @@ python:
3955
shared: models/components
4056
webhooks: models/webhooks
4157
inputModelSuffix: input
58+
legacyPyright: true
4259
maxMethodParams: 4
4360
methodArguments: require-security-and-request
61+
moduleName: ""
4462
outputModelSuffix: output
63+
packageManager: poetry
4564
packageName: livepeer-ai
4665
projectUrls: {}
66+
pytestFilterWarnings: []
67+
pytestTimeout: 0
4768
responseFormat: envelope-http
69+
sseFlatResponse: false
4870
templateVersion: v2

.speakeasy/workflow.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
speakeasyVersion: 1.480.0
1+
speakeasyVersion: 1.649.0
22
sources:
33
livepeer_ai-OAS:
44
sourceNamespace: livepeer-ai-oas
5-
sourceRevisionDigest: sha256:0f47b792f474d38abc86f9276b065e4047dc61d6c0899a85a11008e48857db3a
6-
sourceBlobDigest: sha256:7c0df39c1c5f0ffe580b63f5dc6cb0f81181f5361a80f63f41314cf81d0f3bf4
5+
sourceRevisionDigest: sha256:8e99fdc55b750db963079293d391dec5168c325a849ee9a52ef1dda1952b8917
6+
sourceBlobDigest: sha256:3268e3640001fb0f0582a9328448f3235d0fe88448fa7a1249a4524ebdd452c8
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1736900210
10-
- 0.0.0
9+
- speakeasy-sdk-regen-1758759499
10+
- 0.13.11
1111
targets:
1212
livepeer-ai:
1313
source: livepeer_ai-OAS
@@ -17,10 +17,10 @@ targets:
1717
livepeer-ai-python:
1818
source: livepeer_ai-OAS
1919
sourceNamespace: livepeer-ai-oas
20-
sourceRevisionDigest: sha256:0f47b792f474d38abc86f9276b065e4047dc61d6c0899a85a11008e48857db3a
21-
sourceBlobDigest: sha256:7c0df39c1c5f0ffe580b63f5dc6cb0f81181f5361a80f63f41314cf81d0f3bf4
20+
sourceRevisionDigest: sha256:8e99fdc55b750db963079293d391dec5168c325a849ee9a52ef1dda1952b8917
21+
sourceBlobDigest: sha256:3268e3640001fb0f0582a9328448f3235d0fe88448fa7a1249a4524ebdd452c8
2222
codeSamplesNamespace: code-samples-python-livepeer-python
23-
codeSamplesRevisionDigest: sha256:c8ec9be643b93d4a2f53b416df7270cf0cdb44cee849f5de6d2501edef3d2fa9
23+
codeSamplesRevisionDigest: sha256:ca1fc2cc6a53b17accde367f06c45f433585476dea501153cd1b2fc122d1d92f
2424
workflow:
2525
workflowVersion: 1.0.0
2626
speakeasyVersion: latest

0 commit comments

Comments
 (0)