Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.396.9 (#8)
Browse files Browse the repository at this point in the history
Co-authored-by: speakeasybot <[email protected]>
  • Loading branch information
github-actions[bot] and speakeasybot authored Sep 14, 2024
1 parent a4bf953 commit 0e7554a
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 75 deletions.
13 changes: 7 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
lockVersion: 2.0.0
id: 2d5dbf5a-62be-411a-9c7b-bc7b6dc79e13
management:
docChecksum: 2775d1951dcca4b639a37ac5b740fbd3
docVersion: v0.3.0
speakeasyVersion: 1.396.7
generationVersion: 2.415.6
releaseVersion: 0.3.0
configChecksum: 4732aa353327bb4a748460cf3d83f908
docChecksum: 5649b2692e9b9f3c1065851a47fbba06
docVersion: v0.5.0
speakeasyVersion: 1.396.9
generationVersion: 2.415.7
releaseVersion: 0.4.0
configChecksum: b7dcd27b0ebd95152fdf1bbc8709dca4
repoURL: https://github.com/livepeer/livepeer-ai-python.git
installationURL: https://github.com/livepeer/livepeer-ai-python.git
published: true
features:
python:
additionalDependencies: 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
python:
version: 0.3.0
version: 0.4.0
additionalDependencies:
dev: {}
main: {}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ The SDK can be installed with either *pip* or *poetry* package managers.
*PIP* is the default package installer for Python, enabling easy installation and management of packages from PyPI via the command line.

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

### Poetry

*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.

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

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,14 @@ Based on:
- OpenAPI Doc
- Speakeasy CLI 1.396.7 (2.415.6) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.3.0] .
- [python v0.3.0] .

## 2024-09-14 00:01:38
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.396.9 (2.415.7) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.4.0] .
### Releases
- [PyPI v0.4.0] https://pypi.org/project/livepeer-ai/0.4.0 - .
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "livepeer-ai"
version = "0.3.0"
version = "0.4.0"
description = "Python Client SDK for the Livepeer AI API."
authors = ["Livepeer",]
readme = "README-PYPI.md"
Expand Down
72 changes: 12 additions & 60 deletions src/livepeer_ai/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,10 @@ def text_to_image(
if retries == UNSET:
if self.sdk_configuration.retry_config is not UNSET:
retries = self.sdk_configuration.retry_config
else:
retries = utils.RetryConfig(
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
)

retry_config = None
if isinstance(retries, utils.RetryConfig):
retry_config = (retries, ["503"])
retry_config = (retries, ["429", "500", "502", "503", "504"])

http_res = self.do_request(
hook_ctx=HookContext(
Expand Down Expand Up @@ -157,14 +153,10 @@ async def text_to_image_async(
if retries == UNSET:
if self.sdk_configuration.retry_config is not UNSET:
retries = self.sdk_configuration.retry_config
else:
retries = utils.RetryConfig(
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
)

retry_config = None
if isinstance(retries, utils.RetryConfig):
retry_config = (retries, ["503"])
retry_config = (retries, ["429", "500", "502", "503", "504"])

http_res = await self.do_request_async(
hook_ctx=HookContext(
Expand Down Expand Up @@ -256,14 +248,10 @@ def image_to_image(
if retries == UNSET:
if self.sdk_configuration.retry_config is not UNSET:
retries = self.sdk_configuration.retry_config
else:
retries = utils.RetryConfig(
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
)

retry_config = None
if isinstance(retries, utils.RetryConfig):
retry_config = (retries, ["503"])
retry_config = (retries, ["429", "500", "502", "503", "504"])

http_res = self.do_request(
hook_ctx=HookContext(
Expand Down Expand Up @@ -355,14 +343,10 @@ async def image_to_image_async(
if retries == UNSET:
if self.sdk_configuration.retry_config is not UNSET:
retries = self.sdk_configuration.retry_config
else:
retries = utils.RetryConfig(
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
)

retry_config = None
if isinstance(retries, utils.RetryConfig):
retry_config = (retries, ["503"])
retry_config = (retries, ["429", "500", "502", "503", "504"])

http_res = await self.do_request_async(
hook_ctx=HookContext(
Expand Down Expand Up @@ -454,14 +438,10 @@ def image_to_video(
if retries == UNSET:
if self.sdk_configuration.retry_config is not UNSET:
retries = self.sdk_configuration.retry_config
else:
retries = utils.RetryConfig(
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
)

retry_config = None
if isinstance(retries, utils.RetryConfig):
retry_config = (retries, ["503"])
retry_config = (retries, ["429", "500", "502", "503", "504"])

http_res = self.do_request(
hook_ctx=HookContext(
Expand Down Expand Up @@ -553,14 +533,10 @@ async def image_to_video_async(
if retries == UNSET:
if self.sdk_configuration.retry_config is not UNSET:
retries = self.sdk_configuration.retry_config
else:
retries = utils.RetryConfig(
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
)

retry_config = None
if isinstance(retries, utils.RetryConfig):
retry_config = (retries, ["503"])
retry_config = (retries, ["429", "500", "502", "503", "504"])

http_res = await self.do_request_async(
hook_ctx=HookContext(
Expand Down Expand Up @@ -652,14 +628,10 @@ def upscale(
if retries == UNSET:
if self.sdk_configuration.retry_config is not UNSET:
retries = self.sdk_configuration.retry_config
else:
retries = utils.RetryConfig(
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
)

retry_config = None
if isinstance(retries, utils.RetryConfig):
retry_config = (retries, ["503"])
retry_config = (retries, ["429", "500", "502", "503", "504"])

http_res = self.do_request(
hook_ctx=HookContext(
Expand Down Expand Up @@ -751,14 +723,10 @@ async def upscale_async(
if retries == UNSET:
if self.sdk_configuration.retry_config is not UNSET:
retries = self.sdk_configuration.retry_config
else:
retries = utils.RetryConfig(
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
)

retry_config = None
if isinstance(retries, utils.RetryConfig):
retry_config = (retries, ["503"])
retry_config = (retries, ["429", "500", "502", "503", "504"])

http_res = await self.do_request_async(
hook_ctx=HookContext(
Expand Down Expand Up @@ -850,14 +818,10 @@ def audio_to_text(
if retries == UNSET:
if self.sdk_configuration.retry_config is not UNSET:
retries = self.sdk_configuration.retry_config
else:
retries = utils.RetryConfig(
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
)

retry_config = None
if isinstance(retries, utils.RetryConfig):
retry_config = (retries, ["503"])
retry_config = (retries, ["429", "500", "502", "503", "504"])

http_res = self.do_request(
hook_ctx=HookContext(
Expand Down Expand Up @@ -951,14 +915,10 @@ async def audio_to_text_async(
if retries == UNSET:
if self.sdk_configuration.retry_config is not UNSET:
retries = self.sdk_configuration.retry_config
else:
retries = utils.RetryConfig(
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
)

retry_config = None
if isinstance(retries, utils.RetryConfig):
retry_config = (retries, ["503"])
retry_config = (retries, ["429", "500", "502", "503", "504"])

http_res = await self.do_request_async(
hook_ctx=HookContext(
Expand Down Expand Up @@ -1054,14 +1014,10 @@ def segment_anything2(
if retries == UNSET:
if self.sdk_configuration.retry_config is not UNSET:
retries = self.sdk_configuration.retry_config
else:
retries = utils.RetryConfig(
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
)

retry_config = None
if isinstance(retries, utils.RetryConfig):
retry_config = (retries, ["503"])
retry_config = (retries, ["429", "500", "502", "503", "504"])

http_res = self.do_request(
hook_ctx=HookContext(
Expand Down Expand Up @@ -1155,14 +1111,10 @@ async def segment_anything2_async(
if retries == UNSET:
if self.sdk_configuration.retry_config is not UNSET:
retries = self.sdk_configuration.retry_config
else:
retries = utils.RetryConfig(
"backoff", utils.BackoffStrategy(500, 60000, 1.5, 3600000), True
)

retry_config = None
if isinstance(retries, utils.RetryConfig):
retry_config = (retries, ["503"])
retry_config = (retries, ["429", "500", "502", "503", "504"])

http_res = await self.do_request_async(
hook_ctx=HookContext(
Expand Down
8 changes: 4 additions & 4 deletions src/livepeer_ai/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ class SDKConfiguration:
server_url: Optional[str] = ""
server_idx: Optional[int] = 0
language: str = "python"
openapi_doc_version: str = "v0.3.0"
sdk_version: str = "0.3.0"
gen_version: str = "2.415.6"
user_agent: str = "speakeasy-sdk/python 0.3.0 2.415.6 v0.3.0 livepeer-ai"
openapi_doc_version: str = "v0.5.0"
sdk_version: str = "0.4.0"
gen_version: str = "2.415.7"
user_agent: str = "speakeasy-sdk/python 0.4.0 2.415.7 v0.5.0 livepeer-ai"
retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET)
timeout_ms: Optional[int] = None

Expand Down

0 comments on commit 0e7554a

Please sign in to comment.