Skip to content

Commit e5754c7

Browse files
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.401.2 (#14)
Co-authored-by: speakeasybot <[email protected]>
1 parent 65440fd commit e5754c7

File tree

10 files changed

+66
-44
lines changed

10 files changed

+66
-44
lines changed

.speakeasy/gen.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
lockVersion: 2.0.0
22
id: 2d5dbf5a-62be-411a-9c7b-bc7b6dc79e13
33
management:
4-
docChecksum: 5649b2692e9b9f3c1065851a47fbba06
4+
docChecksum: 4a28bceb165adf1c1dd97bbc8fe41a27
55
docVersion: v0.5.0
6-
speakeasyVersion: 1.398.1
7-
generationVersion: 2.415.8
8-
releaseVersion: 0.5.0
9-
configChecksum: 74c903afbd3de4d466f136bacf3525cd
6+
speakeasyVersion: 1.401.2
7+
generationVersion: 2.421.3
8+
releaseVersion: 0.5.1
9+
configChecksum: 57016dfe6f67d305306547b9aa2c1601
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
16-
constsAndDefaults: 1.0.2
17-
core: 5.5.3
16+
constsAndDefaults: 1.0.3
17+
core: 5.5.4
1818
defaultEnabledRetries: 0.2.0
1919
envVarSecurityUsage: 0.3.1
2020
globalSecurity: 3.0.2

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ generation:
1212
auth:
1313
oAuth2ClientCredentialsEnabled: true
1414
python:
15-
version: 0.5.0
15+
version: 0.5.1
1616
additionalDependencies:
1717
dev: {}
1818
main: {}

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
speakeasyVersion: 1.398.1
1+
speakeasyVersion: 1.401.2
22
sources:
33
livepeer_ai-OAS:
44
sourceNamespace: livepeer-ai-oas
5-
sourceRevisionDigest: sha256:e610910470934c60c9a9003e4d7b811585eaf6857e8cf50ae53a779738a3eba2
6-
sourceBlobDigest: sha256:84962d1cdd2b3ec311a1e3de4848a560478cefda5b3038810a518281c8032152
5+
sourceRevisionDigest: sha256:4f6e897095eeeb8d23e6ecc1421334cf273ffd96b45a1e6e79bf04b39d5ce543
6+
sourceBlobDigest: sha256:ffdfa01671cab29ecdb8b014925f080497ace7616108fe5a4b9153cc0e562f93
77
tags:
88
- latest
99
- main
@@ -16,10 +16,10 @@ targets:
1616
livepeer-ai-python:
1717
source: livepeer_ai-OAS
1818
sourceNamespace: livepeer-ai-oas
19-
sourceRevisionDigest: sha256:e610910470934c60c9a9003e4d7b811585eaf6857e8cf50ae53a779738a3eba2
20-
sourceBlobDigest: sha256:84962d1cdd2b3ec311a1e3de4848a560478cefda5b3038810a518281c8032152
19+
sourceRevisionDigest: sha256:4f6e897095eeeb8d23e6ecc1421334cf273ffd96b45a1e6e79bf04b39d5ce543
20+
sourceBlobDigest: sha256:ffdfa01671cab29ecdb8b014925f080497ace7616108fe5a4b9153cc0e562f93
2121
codeSamplesNamespace: code-samples-python-livepeer-python
22-
codeSamplesRevisionDigest: sha256:ddcd8ce252c6f4d2c3159e8a844b3522b6d6eb28f25a56e166181e733beb0439
22+
codeSamplesRevisionDigest: sha256:196012791664b5a4437be3bf2d09ed1a3b6ee7bd83da508a3def8332836f5b31
2323
workflow:
2424
workflowVersion: 1.0.0
2525
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,14 @@ Based on:
6868
### Generated
6969
- [python v0.5.0] .
7070
### Releases
71-
- [PyPI v0.5.0] https://pypi.org/project/livepeer-ai/0.5.0 - .
71+
- [PyPI v0.5.0] https://pypi.org/project/livepeer-ai/0.5.0 - .
72+
73+
## 2024-09-23 00:22:56
74+
### Changes
75+
Based on:
76+
- OpenAPI Doc
77+
- Speakeasy CLI 1.401.2 (2.421.3) https://github.com/speakeasy-api/speakeasy
78+
### Generated
79+
- [python v0.5.1] .
80+
### Releases
81+
- [PyPI v0.5.1] https://pypi.org/project/livepeer-ai/0.5.1 - .

docs/models/components/bodygenimagetoimage.md

Lines changed: 14 additions & 13 deletions
Large diffs are not rendered by default.

docs/models/components/texttoimageparams.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
8-
| `prompt` | *str* | :heavy_check_mark: | Text prompt(s) to guide image generation. Separate multiple prompts with '\|' if supported by the model. |
9-
| `model_id` | *Optional[str]* | :heavy_minus_sign: | Hugging Face model ID used for image generation. |
10-
| `height` | *Optional[int]* | :heavy_minus_sign: | The height in pixels of the generated image. |
11-
| `width` | *Optional[int]* | :heavy_minus_sign: | The width in pixels of the generated image. |
12-
| `guidance_scale` | *Optional[float]* | :heavy_minus_sign: | Encourages model to generate images closely linked to the text prompt (higher values may reduce image quality). |
13-
| `negative_prompt` | *Optional[str]* | :heavy_minus_sign: | Text prompt(s) to guide what to exclude from image generation. Ignored if guidance_scale < 1. |
14-
| `safety_check` | *Optional[bool]* | :heavy_minus_sign: | Perform a safety check to estimate if generated images could be offensive or harmful. |
15-
| `seed` | *Optional[int]* | :heavy_minus_sign: | Seed for random number generation. |
16-
| `num_inference_steps` | *Optional[int]* | :heavy_minus_sign: | Number of denoising steps. More steps usually lead to higher quality images but slower inference. Modulated by strength. |
17-
| `num_images_per_prompt` | *Optional[int]* | :heavy_minus_sign: | Number of images to generate per prompt. |
6+
| Field | Type | Required | Description |
7+
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
8+
| `prompt` | *str* | :heavy_check_mark: | Text prompt(s) to guide image generation. Separate multiple prompts with '\|' if supported by the model. |
9+
| `model_id` | *Optional[str]* | :heavy_minus_sign: | Hugging Face model ID used for image generation. |
10+
| `loras` | *Optional[str]* | :heavy_minus_sign: | A LoRA (Low-Rank Adaptation) model and its corresponding weight for image generation. Example: { "latent-consistency/lcm-lora-sdxl": 1.0, "nerijs/pixel-art-xl": 1.2}. |
11+
| `height` | *Optional[int]* | :heavy_minus_sign: | The height in pixels of the generated image. |
12+
| `width` | *Optional[int]* | :heavy_minus_sign: | The width in pixels of the generated image. |
13+
| `guidance_scale` | *Optional[float]* | :heavy_minus_sign: | Encourages model to generate images closely linked to the text prompt (higher values may reduce image quality). |
14+
| `negative_prompt` | *Optional[str]* | :heavy_minus_sign: | Text prompt(s) to guide what to exclude from image generation. Ignored if guidance_scale < 1. |
15+
| `safety_check` | *Optional[bool]* | :heavy_minus_sign: | Perform a safety check to estimate if generated images could be offensive or harmful. |
16+
| `seed` | *Optional[int]* | :heavy_minus_sign: | Seed for random number generation. |
17+
| `num_inference_steps` | *Optional[int]* | :heavy_minus_sign: | Number of denoising steps. More steps usually lead to higher quality images but slower inference. Modulated by strength. |
18+
| `num_images_per_prompt` | *Optional[int]* | :heavy_minus_sign: | Number of images to generate per prompt. |

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.5.0"
3+
version = "0.5.1"
44
description = "Python Client SDK for the Livepeer AI API."
55
authors = ["Speakeasy",]
66
readme = "README-PYPI.md"

src/livepeer_ai/models/components/body_genimagetoimage.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ class BodyGenImageToImageTypedDict(TypedDict):
4040
r"""Uploaded image to modify with the pipeline."""
4141
model_id: NotRequired[str]
4242
r"""Hugging Face model ID used for image generation."""
43+
loras: NotRequired[str]
44+
r"""A LoRA (Low-Rank Adaptation) model and its corresponding weight for image generation. Example: { \"latent-consistency/lcm-lora-sdxl\": 1.0, \"nerijs/pixel-art-xl\": 1.2}."""
4345
strength: NotRequired[float]
4446
r"""Degree of transformation applied to the reference image (0 to 1)."""
4547
guidance_scale: NotRequired[float]
@@ -72,6 +74,9 @@ class BodyGenImageToImage(BaseModel):
7274
model_id: Annotated[Optional[str], FieldMetadata(multipart=True)] = ""
7375
r"""Hugging Face model ID used for image generation."""
7476

77+
loras: Annotated[Optional[str], FieldMetadata(multipart=True)] = ""
78+
r"""A LoRA (Low-Rank Adaptation) model and its corresponding weight for image generation. Example: { \"latent-consistency/lcm-lora-sdxl\": 1.0, \"nerijs/pixel-art-xl\": 1.2}."""
79+
7580
strength: Annotated[Optional[float], FieldMetadata(multipart=True)] = 0.8
7681
r"""Degree of transformation applied to the reference image (0 to 1)."""
7782

src/livepeer_ai/models/components/texttoimageparams.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ class TextToImageParamsTypedDict(TypedDict):
1111
r"""Text prompt(s) to guide image generation. Separate multiple prompts with '|' if supported by the model."""
1212
model_id: NotRequired[str]
1313
r"""Hugging Face model ID used for image generation."""
14+
loras: NotRequired[str]
15+
r"""A LoRA (Low-Rank Adaptation) model and its corresponding weight for image generation. Example: { \"latent-consistency/lcm-lora-sdxl\": 1.0, \"nerijs/pixel-art-xl\": 1.2}."""
1416
height: NotRequired[int]
1517
r"""The height in pixels of the generated image."""
1618
width: NotRequired[int]
@@ -36,6 +38,9 @@ class TextToImageParams(BaseModel):
3638
model_id: Optional[str] = ""
3739
r"""Hugging Face model ID used for image generation."""
3840

41+
loras: Optional[str] = ""
42+
r"""A LoRA (Low-Rank Adaptation) model and its corresponding weight for image generation. Example: { \"latent-consistency/lcm-lora-sdxl\": 1.0, \"nerijs/pixel-art-xl\": 1.2}."""
43+
3944
height: Optional[int] = 576
4045
r"""The height in pixels of the generated image."""
4146

0 commit comments

Comments
 (0)