Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
lockVersion: 2.0.0
id: 2d5dbf5a-62be-411a-9c7b-bc7b6dc79e13
management:
docChecksum: 5649b2692e9b9f3c1065851a47fbba06
docChecksum: 4a28bceb165adf1c1dd97bbc8fe41a27
docVersion: v0.5.0
speakeasyVersion: 1.398.1
generationVersion: 2.415.8
releaseVersion: 0.5.0
configChecksum: 74c903afbd3de4d466f136bacf3525cd
speakeasyVersion: 1.401.2
generationVersion: 2.421.3
releaseVersion: 0.5.1
configChecksum: 57016dfe6f67d305306547b9aa2c1601
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
constsAndDefaults: 1.0.2
core: 5.5.3
constsAndDefaults: 1.0.3
core: 5.5.4
defaultEnabledRetries: 0.2.0
envVarSecurityUsage: 0.3.1
globalSecurity: 3.0.2
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
python:
version: 0.5.0
version: 0.5.1
additionalDependencies:
dev: {}
main: {}
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
speakeasyVersion: 1.398.1
speakeasyVersion: 1.401.2
sources:
livepeer_ai-OAS:
sourceNamespace: livepeer-ai-oas
sourceRevisionDigest: sha256:e610910470934c60c9a9003e4d7b811585eaf6857e8cf50ae53a779738a3eba2
sourceBlobDigest: sha256:84962d1cdd2b3ec311a1e3de4848a560478cefda5b3038810a518281c8032152
sourceRevisionDigest: sha256:4f6e897095eeeb8d23e6ecc1421334cf273ffd96b45a1e6e79bf04b39d5ce543
sourceBlobDigest: sha256:ffdfa01671cab29ecdb8b014925f080497ace7616108fe5a4b9153cc0e562f93
tags:
- latest
- main
Expand All @@ -16,10 +16,10 @@ targets:
livepeer-ai-python:
source: livepeer_ai-OAS
sourceNamespace: livepeer-ai-oas
sourceRevisionDigest: sha256:e610910470934c60c9a9003e4d7b811585eaf6857e8cf50ae53a779738a3eba2
sourceBlobDigest: sha256:84962d1cdd2b3ec311a1e3de4848a560478cefda5b3038810a518281c8032152
sourceRevisionDigest: sha256:4f6e897095eeeb8d23e6ecc1421334cf273ffd96b45a1e6e79bf04b39d5ce543
sourceBlobDigest: sha256:ffdfa01671cab29ecdb8b014925f080497ace7616108fe5a4b9153cc0e562f93
codeSamplesNamespace: code-samples-python-livepeer-python
codeSamplesRevisionDigest: sha256:ddcd8ce252c6f4d2c3159e8a844b3522b6d6eb28f25a56e166181e733beb0439
codeSamplesRevisionDigest: sha256:196012791664b5a4437be3bf2d09ed1a3b6ee7bd83da508a3def8332836f5b31
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,14 @@ Based on:
### Generated
- [python v0.5.0] .
### Releases
- [PyPI v0.5.0] https://pypi.org/project/livepeer-ai/0.5.0 - .
- [PyPI v0.5.0] https://pypi.org/project/livepeer-ai/0.5.0 - .

## 2024-09-23 00:22:56
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.401.2 (2.421.3) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.5.1] .
### Releases
- [PyPI v0.5.1] https://pypi.org/project/livepeer-ai/0.5.1 - .
27 changes: 14 additions & 13 deletions docs/models/components/bodygenimagetoimage.md

Large diffs are not rendered by default.

25 changes: 13 additions & 12 deletions docs/models/components/texttoimageparams.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
| `prompt` | *str* | :heavy_check_mark: | Text prompt(s) to guide image generation. Separate multiple prompts with '\|' if supported by the model. |
| `model_id` | *Optional[str]* | :heavy_minus_sign: | Hugging Face model ID used for image generation. |
| `height` | *Optional[int]* | :heavy_minus_sign: | The height in pixels of the generated image. |
| `width` | *Optional[int]* | :heavy_minus_sign: | The width in pixels of the generated image. |
| `guidance_scale` | *Optional[float]* | :heavy_minus_sign: | Encourages model to generate images closely linked to the text prompt (higher values may reduce image quality). |
| `negative_prompt` | *Optional[str]* | :heavy_minus_sign: | Text prompt(s) to guide what to exclude from image generation. Ignored if guidance_scale < 1. |
| `safety_check` | *Optional[bool]* | :heavy_minus_sign: | Perform a safety check to estimate if generated images could be offensive or harmful. |
| `seed` | *Optional[int]* | :heavy_minus_sign: | Seed for random number generation. |
| `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. |
| `num_images_per_prompt` | *Optional[int]* | :heavy_minus_sign: | Number of images to generate per prompt. |
| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `prompt` | *str* | :heavy_check_mark: | Text prompt(s) to guide image generation. Separate multiple prompts with '\|' if supported by the model. |
| `model_id` | *Optional[str]* | :heavy_minus_sign: | Hugging Face model ID used for image generation. |
| `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}. |
| `height` | *Optional[int]* | :heavy_minus_sign: | The height in pixels of the generated image. |
| `width` | *Optional[int]* | :heavy_minus_sign: | The width in pixels of the generated image. |
| `guidance_scale` | *Optional[float]* | :heavy_minus_sign: | Encourages model to generate images closely linked to the text prompt (higher values may reduce image quality). |
| `negative_prompt` | *Optional[str]* | :heavy_minus_sign: | Text prompt(s) to guide what to exclude from image generation. Ignored if guidance_scale < 1. |
| `safety_check` | *Optional[bool]* | :heavy_minus_sign: | Perform a safety check to estimate if generated images could be offensive or harmful. |
| `seed` | *Optional[int]* | :heavy_minus_sign: | Seed for random number generation. |
| `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. |
| `num_images_per_prompt` | *Optional[int]* | :heavy_minus_sign: | Number of images to generate per prompt. |
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.5.0"
version = "0.5.1"
description = "Python Client SDK for the Livepeer AI API."
authors = ["Speakeasy",]
readme = "README-PYPI.md"
Expand Down
5 changes: 5 additions & 0 deletions src/livepeer_ai/models/components/body_genimagetoimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ class BodyGenImageToImageTypedDict(TypedDict):
r"""Uploaded image to modify with the pipeline."""
model_id: NotRequired[str]
r"""Hugging Face model ID used for image generation."""
loras: NotRequired[str]
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}."""
strength: NotRequired[float]
r"""Degree of transformation applied to the reference image (0 to 1)."""
guidance_scale: NotRequired[float]
Expand Down Expand Up @@ -72,6 +74,9 @@ class BodyGenImageToImage(BaseModel):
model_id: Annotated[Optional[str], FieldMetadata(multipart=True)] = ""
r"""Hugging Face model ID used for image generation."""

loras: Annotated[Optional[str], FieldMetadata(multipart=True)] = ""
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}."""

strength: Annotated[Optional[float], FieldMetadata(multipart=True)] = 0.8
r"""Degree of transformation applied to the reference image (0 to 1)."""

Expand Down
5 changes: 5 additions & 0 deletions src/livepeer_ai/models/components/texttoimageparams.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class TextToImageParamsTypedDict(TypedDict):
r"""Text prompt(s) to guide image generation. Separate multiple prompts with '|' if supported by the model."""
model_id: NotRequired[str]
r"""Hugging Face model ID used for image generation."""
loras: NotRequired[str]
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}."""
height: NotRequired[int]
r"""The height in pixels of the generated image."""
width: NotRequired[int]
Expand All @@ -36,6 +38,9 @@ class TextToImageParams(BaseModel):
model_id: Optional[str] = ""
r"""Hugging Face model ID used for image generation."""

loras: Optional[str] = ""
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}."""

height: Optional[int] = 576
r"""The height in pixels of the generated image."""

Expand Down
Loading