Skip to content

Commit 0e7554a

Browse files
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.396.9 (#8)
Co-authored-by: speakeasybot <[email protected]>
1 parent a4bf953 commit 0e7554a

File tree

7 files changed

+38
-75
lines changed

7 files changed

+38
-75
lines changed

.speakeasy/gen.lock

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
lockVersion: 2.0.0
22
id: 2d5dbf5a-62be-411a-9c7b-bc7b6dc79e13
33
management:
4-
docChecksum: 2775d1951dcca4b639a37ac5b740fbd3
5-
docVersion: v0.3.0
6-
speakeasyVersion: 1.396.7
7-
generationVersion: 2.415.6
8-
releaseVersion: 0.3.0
9-
configChecksum: 4732aa353327bb4a748460cf3d83f908
4+
docChecksum: 5649b2692e9b9f3c1065851a47fbba06
5+
docVersion: v0.5.0
6+
speakeasyVersion: 1.396.9
7+
generationVersion: 2.415.7
8+
releaseVersion: 0.4.0
9+
configChecksum: b7dcd27b0ebd95152fdf1bbc8709dca4
1010
repoURL: https://github.com/livepeer/livepeer-ai-python.git
1111
installationURL: https://github.com/livepeer/livepeer-ai-python.git
12+
published: true
1213
features:
1314
python:
1415
additionalDependencies: 1.0.0

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ generation:
1515
auth:
1616
oAuth2ClientCredentialsEnabled: false
1717
python:
18-
version: 0.3.0
18+
version: 0.4.0
1919
additionalDependencies:
2020
dev: {}
2121
main: {}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ The SDK can be installed with either *pip* or *poetry* package managers.
1919
*PIP* is the default package installer for Python, enabling easy installation and management of packages from PyPI via the command line.
2020

2121
```bash
22-
pip install git+https://github.com/livepeer/livepeer-ai-python.git
22+
pip install livepeer-ai
2323
```
2424

2525
### Poetry
2626

2727
*Poetry* is a modern tool that simplifies dependency management and package publishing by using a single `pyproject.toml` file to handle project metadata and dependencies.
2828

2929
```bash
30-
poetry add git+https://github.com/livepeer/livepeer-ai-python.git
30+
poetry add livepeer-ai
3131
```
3232
<!-- End SDK Installation [installation] -->
3333

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,14 @@ Based on:
3838
- OpenAPI Doc
3939
- Speakeasy CLI 1.396.7 (2.415.6) https://github.com/speakeasy-api/speakeasy
4040
### Generated
41-
- [python v0.3.0] .
41+
- [python v0.3.0] .
42+
43+
## 2024-09-14 00:01:38
44+
### Changes
45+
Based on:
46+
- OpenAPI Doc
47+
- Speakeasy CLI 1.396.9 (2.415.7) https://github.com/speakeasy-api/speakeasy
48+
### Generated
49+
- [python v0.4.0] .
50+
### Releases
51+
- [PyPI v0.4.0] https://pypi.org/project/livepeer-ai/0.4.0 - .

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "livepeer-ai"
3-
version = "0.3.0"
3+
version = "0.4.0"
44
description = "Python Client SDK for the Livepeer AI API."
55
authors = ["Livepeer",]
66
readme = "README-PYPI.md"

src/livepeer_ai/generate.py

Lines changed: 12 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,10 @@ def text_to_image(
5858
if retries == UNSET:
5959
if self.sdk_configuration.retry_config is not UNSET:
6060
retries = self.sdk_configuration.retry_config
61-
else:
62-
retries = utils.RetryConfig(
63-
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
64-
)
6561

6662
retry_config = None
6763
if isinstance(retries, utils.RetryConfig):
68-
retry_config = (retries, ["503"])
64+
retry_config = (retries, ["429", "500", "502", "503", "504"])
6965

7066
http_res = self.do_request(
7167
hook_ctx=HookContext(
@@ -157,14 +153,10 @@ async def text_to_image_async(
157153
if retries == UNSET:
158154
if self.sdk_configuration.retry_config is not UNSET:
159155
retries = self.sdk_configuration.retry_config
160-
else:
161-
retries = utils.RetryConfig(
162-
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
163-
)
164156

165157
retry_config = None
166158
if isinstance(retries, utils.RetryConfig):
167-
retry_config = (retries, ["503"])
159+
retry_config = (retries, ["429", "500", "502", "503", "504"])
168160

169161
http_res = await self.do_request_async(
170162
hook_ctx=HookContext(
@@ -256,14 +248,10 @@ def image_to_image(
256248
if retries == UNSET:
257249
if self.sdk_configuration.retry_config is not UNSET:
258250
retries = self.sdk_configuration.retry_config
259-
else:
260-
retries = utils.RetryConfig(
261-
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
262-
)
263251

264252
retry_config = None
265253
if isinstance(retries, utils.RetryConfig):
266-
retry_config = (retries, ["503"])
254+
retry_config = (retries, ["429", "500", "502", "503", "504"])
267255

268256
http_res = self.do_request(
269257
hook_ctx=HookContext(
@@ -355,14 +343,10 @@ async def image_to_image_async(
355343
if retries == UNSET:
356344
if self.sdk_configuration.retry_config is not UNSET:
357345
retries = self.sdk_configuration.retry_config
358-
else:
359-
retries = utils.RetryConfig(
360-
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
361-
)
362346

363347
retry_config = None
364348
if isinstance(retries, utils.RetryConfig):
365-
retry_config = (retries, ["503"])
349+
retry_config = (retries, ["429", "500", "502", "503", "504"])
366350

367351
http_res = await self.do_request_async(
368352
hook_ctx=HookContext(
@@ -454,14 +438,10 @@ def image_to_video(
454438
if retries == UNSET:
455439
if self.sdk_configuration.retry_config is not UNSET:
456440
retries = self.sdk_configuration.retry_config
457-
else:
458-
retries = utils.RetryConfig(
459-
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
460-
)
461441

462442
retry_config = None
463443
if isinstance(retries, utils.RetryConfig):
464-
retry_config = (retries, ["503"])
444+
retry_config = (retries, ["429", "500", "502", "503", "504"])
465445

466446
http_res = self.do_request(
467447
hook_ctx=HookContext(
@@ -553,14 +533,10 @@ async def image_to_video_async(
553533
if retries == UNSET:
554534
if self.sdk_configuration.retry_config is not UNSET:
555535
retries = self.sdk_configuration.retry_config
556-
else:
557-
retries = utils.RetryConfig(
558-
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
559-
)
560536

561537
retry_config = None
562538
if isinstance(retries, utils.RetryConfig):
563-
retry_config = (retries, ["503"])
539+
retry_config = (retries, ["429", "500", "502", "503", "504"])
564540

565541
http_res = await self.do_request_async(
566542
hook_ctx=HookContext(
@@ -652,14 +628,10 @@ def upscale(
652628
if retries == UNSET:
653629
if self.sdk_configuration.retry_config is not UNSET:
654630
retries = self.sdk_configuration.retry_config
655-
else:
656-
retries = utils.RetryConfig(
657-
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
658-
)
659631

660632
retry_config = None
661633
if isinstance(retries, utils.RetryConfig):
662-
retry_config = (retries, ["503"])
634+
retry_config = (retries, ["429", "500", "502", "503", "504"])
663635

664636
http_res = self.do_request(
665637
hook_ctx=HookContext(
@@ -751,14 +723,10 @@ async def upscale_async(
751723
if retries == UNSET:
752724
if self.sdk_configuration.retry_config is not UNSET:
753725
retries = self.sdk_configuration.retry_config
754-
else:
755-
retries = utils.RetryConfig(
756-
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
757-
)
758726

759727
retry_config = None
760728
if isinstance(retries, utils.RetryConfig):
761-
retry_config = (retries, ["503"])
729+
retry_config = (retries, ["429", "500", "502", "503", "504"])
762730

763731
http_res = await self.do_request_async(
764732
hook_ctx=HookContext(
@@ -850,14 +818,10 @@ def audio_to_text(
850818
if retries == UNSET:
851819
if self.sdk_configuration.retry_config is not UNSET:
852820
retries = self.sdk_configuration.retry_config
853-
else:
854-
retries = utils.RetryConfig(
855-
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
856-
)
857821

858822
retry_config = None
859823
if isinstance(retries, utils.RetryConfig):
860-
retry_config = (retries, ["503"])
824+
retry_config = (retries, ["429", "500", "502", "503", "504"])
861825

862826
http_res = self.do_request(
863827
hook_ctx=HookContext(
@@ -951,14 +915,10 @@ async def audio_to_text_async(
951915
if retries == UNSET:
952916
if self.sdk_configuration.retry_config is not UNSET:
953917
retries = self.sdk_configuration.retry_config
954-
else:
955-
retries = utils.RetryConfig(
956-
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
957-
)
958918

959919
retry_config = None
960920
if isinstance(retries, utils.RetryConfig):
961-
retry_config = (retries, ["503"])
921+
retry_config = (retries, ["429", "500", "502", "503", "504"])
962922

963923
http_res = await self.do_request_async(
964924
hook_ctx=HookContext(
@@ -1054,14 +1014,10 @@ def segment_anything2(
10541014
if retries == UNSET:
10551015
if self.sdk_configuration.retry_config is not UNSET:
10561016
retries = self.sdk_configuration.retry_config
1057-
else:
1058-
retries = utils.RetryConfig(
1059-
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
1060-
)
10611017

10621018
retry_config = None
10631019
if isinstance(retries, utils.RetryConfig):
1064-
retry_config = (retries, ["503"])
1020+
retry_config = (retries, ["429", "500", "502", "503", "504"])
10651021

10661022
http_res = self.do_request(
10671023
hook_ctx=HookContext(
@@ -1155,14 +1111,10 @@ async def segment_anything2_async(
11551111
if retries == UNSET:
11561112
if self.sdk_configuration.retry_config is not UNSET:
11571113
retries = self.sdk_configuration.retry_config
1158-
else:
1159-
retries = utils.RetryConfig(
1160-
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
1161-
)
11621114

11631115
retry_config = None
11641116
if isinstance(retries, utils.RetryConfig):
1165-
retry_config = (retries, ["503"])
1117+
retry_config = (retries, ["429", "500", "502", "503", "504"])
11661118

11671119
http_res = await self.do_request_async(
11681120
hook_ctx=HookContext(

src/livepeer_ai/sdkconfiguration.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ class SDKConfiguration:
2828
server_url: Optional[str] = ""
2929
server_idx: Optional[int] = 0
3030
language: str = "python"
31-
openapi_doc_version: str = "v0.3.0"
32-
sdk_version: str = "0.3.0"
33-
gen_version: str = "2.415.6"
34-
user_agent: str = "speakeasy-sdk/python 0.3.0 2.415.6 v0.3.0 livepeer-ai"
31+
openapi_doc_version: str = "v0.5.0"
32+
sdk_version: str = "0.4.0"
33+
gen_version: str = "2.415.7"
34+
user_agent: str = "speakeasy-sdk/python 0.4.0 2.415.7 v0.5.0 livepeer-ai"
3535
retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET)
3636
timeout_ms: Optional[int] = None
3737

0 commit comments

Comments
 (0)