From 32c8bf21d2bce121851868090cd8321acdd705ca Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Mon, 23 Sep 2024 00:23:40 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.401.2 --- .speakeasy/gen.lock | 14 +++++----- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 12 ++++----- RELEASES.md | 12 ++++++++- docs/models/components/bodygenimagetoimage.md | 27 ++++++++++--------- docs/models/components/texttoimageparams.md | 25 ++++++++--------- pyproject.toml | 2 +- .../models/components/body_genimagetoimage.py | 5 ++++ .../models/components/texttoimageparams.py | 5 ++++ src/livepeer_ai/sdkconfiguration.py | 6 ++--- 10 files changed, 66 insertions(+), 44 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 4e9ce2e..6110cdc 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -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 diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 15c9717..4346a2d 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: true python: - version: 0.5.0 + version: 0.5.1 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 56a545a..e711b12 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -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 @@ -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 diff --git a/RELEASES.md b/RELEASES.md index 56a6e2a..ea00be4 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -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 - . \ No newline at end of file +- [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 - . \ No newline at end of file diff --git a/docs/models/components/bodygenimagetoimage.md b/docs/models/components/bodygenimagetoimage.md index d79dc25..b285c88 100644 --- a/docs/models/components/bodygenimagetoimage.md +++ b/docs/models/components/bodygenimagetoimage.md @@ -3,16 +3,17 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `prompt` | *str* | :heavy_check_mark: | Text prompt(s) to guide image generation. | -| `image` | [components.Image](../../models/components/image.md) | :heavy_check_mark: | Uploaded image to modify with the pipeline. | -| `model_id` | *Optional[str]* | :heavy_minus_sign: | Hugging Face model ID used for image generation. | -| `strength` | *Optional[float]* | :heavy_minus_sign: | Degree of transformation applied to the reference image (0 to 1). | -| `guidance_scale` | *Optional[float]* | :heavy_minus_sign: | Encourages model to generate images closely linked to the text prompt (higher values may reduce image quality). | -| `image_guidance_scale` | *Optional[float]* | :heavy_minus_sign: | Degree to which the generated image is pushed towards the initial image. | -| `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. | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `prompt` | *str* | :heavy_check_mark: | Text prompt(s) to guide image generation. | +| `image` | [components.Image](../../models/components/image.md) | :heavy_check_mark: | Uploaded image to modify with the pipeline. | +| `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}. | +| `strength` | *Optional[float]* | :heavy_minus_sign: | Degree of transformation applied to the reference image (0 to 1). | +| `guidance_scale` | *Optional[float]* | :heavy_minus_sign: | Encourages model to generate images closely linked to the text prompt (higher values may reduce image quality). | +| `image_guidance_scale` | *Optional[float]* | :heavy_minus_sign: | Degree to which the generated image is pushed towards the initial image. | +| `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. | \ No newline at end of file diff --git a/docs/models/components/texttoimageparams.md b/docs/models/components/texttoimageparams.md index 4f55bb0..7abc04d 100644 --- a/docs/models/components/texttoimageparams.md +++ b/docs/models/components/texttoimageparams.md @@ -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. | \ No newline at end of file +| 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. | \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 649e5a4..afad163 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/src/livepeer_ai/models/components/body_genimagetoimage.py b/src/livepeer_ai/models/components/body_genimagetoimage.py index 53b5d49..7298ab4 100644 --- a/src/livepeer_ai/models/components/body_genimagetoimage.py +++ b/src/livepeer_ai/models/components/body_genimagetoimage.py @@ -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] @@ -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).""" diff --git a/src/livepeer_ai/models/components/texttoimageparams.py b/src/livepeer_ai/models/components/texttoimageparams.py index bdfd06e..2832a58 100644 --- a/src/livepeer_ai/models/components/texttoimageparams.py +++ b/src/livepeer_ai/models/components/texttoimageparams.py @@ -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] @@ -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.""" diff --git a/src/livepeer_ai/sdkconfiguration.py b/src/livepeer_ai/sdkconfiguration.py index 4e8bacd..ea2d376 100644 --- a/src/livepeer_ai/sdkconfiguration.py +++ b/src/livepeer_ai/sdkconfiguration.py @@ -31,9 +31,9 @@ class SDKConfiguration: server_idx: Optional[int] = 0 language: str = "python" openapi_doc_version: str = "v0.5.0" - sdk_version: str = "0.5.0" - gen_version: str = "2.415.8" - user_agent: str = "speakeasy-sdk/python 0.5.0 2.415.8 v0.5.0 livepeer-ai" + sdk_version: str = "0.5.1" + gen_version: str = "2.421.3" + user_agent: str = "speakeasy-sdk/python 0.5.1 2.421.3 v0.5.0 livepeer-ai" retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET) timeout_ms: Optional[int] = None