Skip to content

Commit cb0e1b1

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.501.0
1 parent 80214d1 commit cb0e1b1

File tree

18 files changed

+431
-398
lines changed

18 files changed

+431
-398
lines changed

.speakeasy/gen.lock

+16-14
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,32 @@
11
lockVersion: 2.0.0
22
id: 2d5dbf5a-62be-411a-9c7b-bc7b6dc79e13
33
management:
4-
docChecksum: 6657dd3e876a909472f364dc1fe34d72
4+
docChecksum: 28f323b6b1fd018dc3f78ab73e1cb6f8
55
docVersion: 0.0.0
6-
speakeasyVersion: 1.480.0
7-
generationVersion: 2.499.0
8-
releaseVersion: 0.10.0
9-
configChecksum: 2b2d2389ee9ff1be5cd354baf7c62739
6+
speakeasyVersion: 1.501.0
7+
generationVersion: 2.522.1
8+
releaseVersion: 0.11.0
9+
configChecksum: 7dc5d91a976db7fc235765e2b9a611a9
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.12.1
1818
defaultEnabledRetries: 0.2.0
1919
envVarSecurityUsage: 0.3.2
20-
globalSecurity: 3.0.2
20+
flattening: 3.1.1
21+
globalSecurity: 3.0.3
2122
globalSecurityCallbacks: 1.0.0
2223
globalSecurityFlattening: 1.0.0
2324
globalServerURLs: 3.1.0
2425
multipartFileContentType: 1.0.0
2526
nameOverrides: 3.0.1
2627
responseFormat: 1.0.1
2728
retries: 3.0.2
28-
sdkHooks: 1.0.0
29+
sdkHooks: 1.0.1
2930
unions: 3.0.4
3031
uploadStreams: 1.0.0
3132
generatedFiles:
@@ -75,6 +76,7 @@ generatedFiles:
7576
- docs/models/operations/genimagetoimageresponse.md
7677
- docs/models/operations/genimagetotextresponse.md
7778
- docs/models/operations/genimagetovideoresponse.md
79+
- docs/models/operations/genlivevideotovideorequest.md
7880
- docs/models/operations/genlivevideotovideoresponse.md
7981
- docs/models/operations/genllmresponse.md
8082
- docs/models/operations/gensegmentanything2response.md
@@ -179,7 +181,7 @@ examples:
179181
genImageToImage:
180182
speakeasy-default-gen-image-to-image:
181183
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}
184+
multipart/form-data: {"prompt": "<value>", "image": {}, "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}
183185
responses:
184186
"200":
185187
application/json: {"images": [{"url": "https://selfish-operating.name/", "seed": 976514, "nsfw": false}]}
@@ -192,7 +194,7 @@ examples:
192194
genImageToVideo:
193195
speakeasy-default-gen-image-to-video:
194196
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}
197+
multipart/form-data: {"image": {}, "model_id": "", "height": 576, "width": 1024, "fps": 6, "motion_bucket_id": 127, "noise_aug_strength": 0.02, "safety_check": true, "num_inference_steps": 25}
196198
responses:
197199
"200":
198200
application/json: {"images": [{"url": "https://low-handover.name/", "seed": 87160, "nsfw": true}]}
@@ -205,7 +207,7 @@ examples:
205207
genUpscale:
206208
speakeasy-default-gen-upscale:
207209
requestBody:
208-
multipart/form-data: {"prompt": "<value>", "image": {"": "x-file: example.file"}, "model_id": "", "safety_check": true, "num_inference_steps": 75}
210+
multipart/form-data: {"prompt": "<value>", "image": {}, "model_id": "", "safety_check": true, "num_inference_steps": 75}
209211
responses:
210212
"200":
211213
application/json: {"images": [{"url": "https://bogus-typewriter.net", "seed": 311567, "nsfw": false}]}
@@ -218,7 +220,7 @@ examples:
218220
genAudioToText:
219221
speakeasy-default-gen-audio-to-text:
220222
requestBody:
221-
multipart/form-data: {"audio": {"": "x-file: example.file"}, "model_id": "", "return_timestamps": "true"}
223+
multipart/form-data: {"audio": {}, "model_id": "", "return_timestamps": "true"}
222224
responses:
223225
"200":
224226
application/json: {"text": "<value>", "chunks": [{"timestamp": ["<value>", "<value>"], "text": "<value>"}, {"timestamp": [], "text": "<value>"}]}
@@ -231,7 +233,7 @@ examples:
231233
genSegmentAnything2:
232234
speakeasy-default-gen-segment-anything2:
233235
requestBody:
234-
multipart/form-data: {"image": {"": "x-file: example.file"}, "model_id": "", "multimask_output": true, "return_logits": true, "normalize_coords": true}
236+
multipart/form-data: {"image": {}, "model_id": "", "multimask_output": true, "return_logits": true, "normalize_coords": true}
235237
responses:
236238
"200":
237239
application/json: {"masks": "<value>", "scores": "<value>", "logits": "<value>"}
@@ -257,7 +259,7 @@ examples:
257259
genImageToText:
258260
speakeasy-default-gen-image-to-text:
259261
requestBody:
260-
multipart/form-data: {"image": {"": "x-file: example.file"}, "prompt": "", "model_id": ""}
262+
multipart/form-data: {"image": {}, "prompt": "", "model_id": ""}
261263
responses:
262264
"200":
263265
application/json: {"text": "<value>"}

.speakeasy/gen.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ generation:
77
useClassNamesForArrayFields: true
88
fixes:
99
nameResolutionDec2023: true
10+
nameResolutionFeb2025: false
1011
parameterOrderingFeb2024: true
1112
requestResponseComponentNamesFeb2024: true
13+
securityFeb2025: false
1214
auth:
1315
oAuth2ClientCredentialsEnabled: true
1416
oAuth2PasswordEnabled: false
1517
python:
16-
version: 0.10.0
18+
version: 0.11.0
1719
additionalDependencies:
1820
dev: {}
1921
main: {}
@@ -44,5 +46,6 @@ python:
4446
outputModelSuffix: output
4547
packageName: livepeer-ai
4648
projectUrls: {}
49+
pytestTimeout: 0
4750
responseFormat: envelope-http
4851
templateVersion: v2

.speakeasy/workflow.lock

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
speakeasyVersion: 1.480.0
1+
speakeasyVersion: 1.501.0
22
sources:
33
livepeer_ai-OAS:
44
sourceNamespace: livepeer-ai-oas
5-
sourceRevisionDigest: sha256:0f47b792f474d38abc86f9276b065e4047dc61d6c0899a85a11008e48857db3a
6-
sourceBlobDigest: sha256:7c0df39c1c5f0ffe580b63f5dc6cb0f81181f5361a80f63f41314cf81d0f3bf4
5+
sourceRevisionDigest: sha256:28bc483a50c4ceecb74aa8c9291439b2fb64b2d1d10123077f5d852588d8f015
6+
sourceBlobDigest: sha256:d7b63ec19250fb9d37553957a76c5ee0248424b840bd12618205d8955bb47c8c
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1736900210
9+
- speakeasy-sdk-regen-1739751486
1010
- 0.0.0
1111
targets:
1212
livepeer-ai:
@@ -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:28bc483a50c4ceecb74aa8c9291439b2fb64b2d1d10123077f5d852588d8f015
21+
sourceBlobDigest: sha256:d7b63ec19250fb9d37553957a76c5ee0248424b840bd12618205d8955bb47c8c
2222
codeSamplesNamespace: code-samples-python-livepeer-python
23-
codeSamplesRevisionDigest: sha256:c8ec9be643b93d4a2f53b416df7270cf0cdb44cee849f5de6d2501edef3d2fa9
23+
codeSamplesRevisionDigest: sha256:ca938a3c56e14e6dc52e29d91db0ad17a97d9d30a8991f317146cae3cd95599b
2424
workflow:
2525
workflowVersion: 1.0.0
2626
speakeasyVersion: latest

README.md

+35-85
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,37 @@ pip install livepeer-ai
3434
```bash
3535
poetry add livepeer-ai
3636
```
37+
38+
### Shell and script usage with `uv`
39+
40+
You can use this SDK in a Python shell with [uv](https://docs.astral.sh/uv/) and the `uvx` command that comes with it like so:
41+
42+
```shell
43+
uvx --from livepeer-ai python
44+
```
45+
46+
It's also possible to write a standalone Python script without needing to set up a whole project like so:
47+
48+
```python
49+
#!/usr/bin/env -S uv run --script
50+
# /// script
51+
# requires-python = ">=3.9"
52+
# dependencies = [
53+
# "livepeer-ai",
54+
# ]
55+
# ///
56+
57+
from livepeer_ai import Livepeer
58+
59+
sdk = Livepeer(
60+
# SDK arguments
61+
)
62+
63+
# Rest of script here...
64+
```
65+
66+
Once that is saved to a file, you can run it with `uv run script.py` where
67+
`script.py` can be replaced with the actual file name.
3768
<!-- End SDK Installation [installation] -->
3869

3970
<!-- Start IDE Support [idesupport] -->
@@ -61,15 +92,6 @@ with Livepeer(
6192

6293
res = livepeer.generate.text_to_image(request={
6394
"prompt": "<value>",
64-
"model_id": "",
65-
"loras": "",
66-
"height": 576,
67-
"width": 1024,
68-
"guidance_scale": 7.5,
69-
"negative_prompt": "",
70-
"safety_check": True,
71-
"num_inference_steps": 50,
72-
"num_images_per_prompt": 1,
7395
})
7496

7597
assert res.image_response is not None
@@ -93,15 +115,6 @@ async def main():
93115

94116
res = await livepeer.generate.text_to_image_async(request={
95117
"prompt": "<value>",
96-
"model_id": "",
97-
"loras": "",
98-
"height": 576,
99-
"width": 1024,
100-
"guidance_scale": 7.5,
101-
"negative_prompt": "",
102-
"safety_check": True,
103-
"num_inference_steps": 50,
104-
"num_images_per_prompt": 1,
105118
})
106119

107120
assert res.image_response is not None
@@ -159,15 +172,6 @@ with Livepeer(
159172
"file_name": "example.file",
160173
"content": open("example.file", "rb"),
161174
},
162-
"model_id": "",
163-
"loras": "",
164-
"strength": 0.8,
165-
"guidance_scale": 7.5,
166-
"image_guidance_scale": 1.5,
167-
"negative_prompt": "",
168-
"safety_check": True,
169-
"num_inference_steps": 100,
170-
"num_images_per_prompt": 1,
171175
})
172176

173177
assert res.image_response is not None
@@ -194,15 +198,6 @@ with Livepeer(
194198

195199
res = livepeer.generate.text_to_image(request={
196200
"prompt": "<value>",
197-
"model_id": "",
198-
"loras": "",
199-
"height": 576,
200-
"width": 1024,
201-
"guidance_scale": 7.5,
202-
"negative_prompt": "",
203-
"safety_check": True,
204-
"num_inference_steps": 50,
205-
"num_images_per_prompt": 1,
206201
},
207202
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
208203

@@ -225,15 +220,6 @@ with Livepeer(
225220

226221
res = livepeer.generate.text_to_image(request={
227222
"prompt": "<value>",
228-
"model_id": "",
229-
"loras": "",
230-
"height": 576,
231-
"width": 1024,
232-
"guidance_scale": 7.5,
233-
"negative_prompt": "",
234-
"safety_check": True,
235-
"num_inference_steps": 50,
236-
"num_images_per_prompt": 1,
237223
})
238224

239225
assert res.image_response is not None
@@ -281,15 +267,6 @@ with Livepeer(
281267

282268
res = livepeer.generate.text_to_image(request={
283269
"prompt": "<value>",
284-
"model_id": "",
285-
"loras": "",
286-
"height": 576,
287-
"width": 1024,
288-
"guidance_scale": 7.5,
289-
"negative_prompt": "",
290-
"safety_check": True,
291-
"num_inference_steps": 50,
292-
"num_images_per_prompt": 1,
293270
})
294271

295272
assert res.image_response is not None
@@ -319,10 +296,10 @@ with Livepeer(
319296

320297
You can override the default server globally by passing a server index to the `server_idx: int` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
321298

322-
| # | Server |
323-
| --- | ------------------------------------------- |
324-
| 0 | `https://dream-gateway.livepeer.cloud` |
325-
| 1 | `https://livepeer.studio/api/beta/generate` |
299+
| # | Server | Description |
300+
| --- | ------------------------------------------- | -------------------------------- |
301+
| 0 | `https://dream-gateway.livepeer.cloud` | Livepeer Cloud Community Gateway |
302+
| 1 | `https://livepeer.studio/api/beta/generate` | Livepeer Studio Gateway |
326303

327304
#### Example
328305

@@ -336,15 +313,6 @@ with Livepeer(
336313

337314
res = livepeer.generate.text_to_image(request={
338315
"prompt": "<value>",
339-
"model_id": "",
340-
"loras": "",
341-
"height": 576,
342-
"width": 1024,
343-
"guidance_scale": 7.5,
344-
"negative_prompt": "",
345-
"safety_check": True,
346-
"num_inference_steps": 50,
347-
"num_images_per_prompt": 1,
348316
})
349317

350318
assert res.image_response is not None
@@ -367,15 +335,6 @@ with Livepeer(
367335

368336
res = livepeer.generate.text_to_image(request={
369337
"prompt": "<value>",
370-
"model_id": "",
371-
"loras": "",
372-
"height": 576,
373-
"width": 1024,
374-
"guidance_scale": 7.5,
375-
"negative_prompt": "",
376-
"safety_check": True,
377-
"num_inference_steps": 50,
378-
"num_images_per_prompt": 1,
379338
})
380339

381340
assert res.image_response is not None
@@ -488,15 +447,6 @@ with Livepeer(
488447

489448
res = livepeer.generate.text_to_image(request={
490449
"prompt": "<value>",
491-
"model_id": "",
492-
"loras": "",
493-
"height": 576,
494-
"width": 1024,
495-
"guidance_scale": 7.5,
496-
"negative_prompt": "",
497-
"safety_check": True,
498-
"num_inference_steps": 50,
499-
"num_images_per_prompt": 1,
500450
})
501451

502452
assert res.image_response is not None

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,14 @@ Based on:
138138
### Generated
139139
- [python v0.10.0] .
140140
### Releases
141-
- [PyPI v0.10.0] https://pypi.org/project/livepeer-ai/0.10.0 - .
141+
- [PyPI v0.10.0] https://pypi.org/project/livepeer-ai/0.10.0 - .
142+
143+
## 2025-02-23 00:18:03
144+
### Changes
145+
Based on:
146+
- OpenAPI Doc
147+
- Speakeasy CLI 1.501.0 (2.522.1) https://github.com/speakeasy-api/speakeasy
148+
### Generated
149+
- [python v0.11.0] .
150+
### Releases
151+
- [PyPI v0.11.0] https://pypi.org/project/livepeer-ai/0.11.0 - .

0 commit comments

Comments
 (0)