Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.396.7 (#6)
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 13, 2024
1 parent 82b09fd commit faa5b8e
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 22 deletions.
8 changes: 4 additions & 4 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 2d5dbf5a-62be-411a-9c7b-bc7b6dc79e13
management:
docChecksum: 70055d9d9e295ae56748a3199911f0a9
docVersion: v0.2.0
docChecksum: 2775d1951dcca4b639a37ac5b740fbd3
docVersion: v0.3.0
speakeasyVersion: 1.396.7
generationVersion: 2.415.6
releaseVersion: 0.2.0
configChecksum: 2f8283e5b4c1c431f32d02ad93c21d41
releaseVersion: 0.3.0
configChecksum: 4732aa353327bb4a748460cf3d83f908
repoURL: https://github.com/livepeer/livepeer-ai-python.git
installationURL: https://github.com/livepeer/livepeer-ai-python.git
features:
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.2.0
version: 0.3.0
additionalDependencies:
dev: {}
main: {}
Expand Down
10 changes: 9 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,12 @@ Based on:
- OpenAPI Doc
- Speakeasy CLI 1.396.7 (2.415.6) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.2.0] .
- [python v0.2.0] .

## 2024-09-13 15:43:50
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.396.7 (2.415.6) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.3.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.2.0"
version = "0.3.0"
description = "Python Client SDK for the Livepeer AI API."
authors = ["Livepeer",]
readme = "README-PYPI.md"
Expand Down
72 changes: 60 additions & 12 deletions src/livepeer_ai/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,14 @@ 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, ["429", "500", "502", "503", "504"])
retry_config = (retries, ["503"])

http_res = self.do_request(
hook_ctx=HookContext(
Expand Down Expand Up @@ -153,10 +157,14 @@ 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, ["429", "500", "502", "503", "504"])
retry_config = (retries, ["503"])

http_res = await self.do_request_async(
hook_ctx=HookContext(
Expand Down Expand Up @@ -248,10 +256,14 @@ 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, ["429", "500", "502", "503", "504"])
retry_config = (retries, ["503"])

http_res = self.do_request(
hook_ctx=HookContext(
Expand Down Expand Up @@ -343,10 +355,14 @@ 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, ["429", "500", "502", "503", "504"])
retry_config = (retries, ["503"])

http_res = await self.do_request_async(
hook_ctx=HookContext(
Expand Down Expand Up @@ -438,10 +454,14 @@ 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, ["429", "500", "502", "503", "504"])
retry_config = (retries, ["503"])

http_res = self.do_request(
hook_ctx=HookContext(
Expand Down Expand Up @@ -533,10 +553,14 @@ 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, ["429", "500", "502", "503", "504"])
retry_config = (retries, ["503"])

http_res = await self.do_request_async(
hook_ctx=HookContext(
Expand Down Expand Up @@ -628,10 +652,14 @@ 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, ["429", "500", "502", "503", "504"])
retry_config = (retries, ["503"])

http_res = self.do_request(
hook_ctx=HookContext(
Expand Down Expand Up @@ -723,10 +751,14 @@ 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, ["429", "500", "502", "503", "504"])
retry_config = (retries, ["503"])

http_res = await self.do_request_async(
hook_ctx=HookContext(
Expand Down Expand Up @@ -818,10 +850,14 @@ 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, ["429", "500", "502", "503", "504"])
retry_config = (retries, ["503"])

http_res = self.do_request(
hook_ctx=HookContext(
Expand Down Expand Up @@ -915,10 +951,14 @@ 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, ["429", "500", "502", "503", "504"])
retry_config = (retries, ["503"])

http_res = await self.do_request_async(
hook_ctx=HookContext(
Expand Down Expand Up @@ -1014,10 +1054,14 @@ 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, ["429", "500", "502", "503", "504"])
retry_config = (retries, ["503"])

http_res = self.do_request(
hook_ctx=HookContext(
Expand Down Expand Up @@ -1111,10 +1155,14 @@ 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, ["429", "500", "502", "503", "504"])
retry_config = (retries, ["503"])

http_res = await self.do_request_async(
hook_ctx=HookContext(
Expand Down
6 changes: 3 additions & 3 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.2.0"
sdk_version: str = "0.2.0"
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.2.0 2.415.6 v0.2.0 livepeer-ai"
user_agent: str = "speakeasy-sdk/python 0.3.0 2.415.6 v0.3.0 livepeer-ai"
retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET)
timeout_ms: Optional[int] = None

Expand Down

0 comments on commit faa5b8e

Please sign in to comment.