From cb96ceeb308a073e6dcf6c5ddfd3c3ac4b7ad020 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 23 Sep 2024 02:40:56 +0200 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.401.2 (#11) Co-authored-by: speakeasybot --- .speakeasy/gen.lock | 12 ++++----- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 12 ++++----- RELEASES.md | 12 ++++++++- docs/models/components/bodygenimagetoimage.md | 27 ++++++++++--------- docs/models/components/texttoimageparams.md | 25 ++++++++--------- livepeer.go | 6 ++--- models/components/bodygenimagetoimage.go | 9 +++++++ models/components/texttoimageparams.go | 9 +++++++ 9 files changed, 72 insertions(+), 42 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 25ab66a..c00564a 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: 98621ff3-f200-4a5c-9c69-bc1fe845e39c management: - docChecksum: 5649b2692e9b9f3c1065851a47fbba06 + docChecksum: 4a28bceb165adf1c1dd97bbc8fe41a27 docVersion: v0.5.0 - speakeasyVersion: 1.398.1 - generationVersion: 2.415.8 - releaseVersion: 0.4.0 - configChecksum: ac3dd6cddc96b972e6ca8108e686e6a7 + speakeasyVersion: 1.401.2 + generationVersion: 2.421.3 + releaseVersion: 0.4.1 + configChecksum: 03ee27e9ab450aa2c6a8f0affa474e36 repoURL: https://github.com/livepeer/livepeer-ai-go.git installationURL: https://github.com/livepeer/livepeer-ai-go features: go: additionalDependencies: 0.1.0 constsAndDefaults: 0.1.6 - core: 3.5.8 + core: 3.5.9 defaultEnabledRetries: 0.2.0 envVarSecurityUsage: 0.3.1 globalSecurity: 2.82.10 diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 58d3464..a625e6f 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: true go: - version: 0.4.0 + version: 0.4.1 additionalDependencies: {} allowUnknownFieldsInWeakUnions: false clientServerStatusCodesAsErrors: true diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index fa39d3b..afae102 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.398.1 +speakeasyVersion: 1.401.2 sources: livepeerai-OAS: sourceNamespace: livepeerai-oas - sourceRevisionDigest: sha256:3076fe48ebeac5e7f4ac1bc2dbb39f3c7c3cf93d02570881dc3e26c17644e7ad - sourceBlobDigest: sha256:84962d1cdd2b3ec311a1e3de4848a560478cefda5b3038810a518281c8032152 + sourceRevisionDigest: sha256:8a885b9f63c7f5e08e85c473145d9adb7797b76f1f1e23a77d0cd142cafb01c6 + sourceBlobDigest: sha256:ffdfa01671cab29ecdb8b014925f080497ace7616108fe5a4b9153cc0e562f93 tags: - latest - main @@ -16,10 +16,10 @@ targets: livepeerai-go: source: livepeerai-OAS sourceNamespace: livepeerai-oas - sourceRevisionDigest: sha256:3076fe48ebeac5e7f4ac1bc2dbb39f3c7c3cf93d02570881dc3e26c17644e7ad - sourceBlobDigest: sha256:84962d1cdd2b3ec311a1e3de4848a560478cefda5b3038810a518281c8032152 + sourceRevisionDigest: sha256:8a885b9f63c7f5e08e85c473145d9adb7797b76f1f1e23a77d0cd142cafb01c6 + sourceBlobDigest: sha256:ffdfa01671cab29ecdb8b014925f080497ace7616108fe5a4b9153cc0e562f93 codeSamplesNamespace: code-samples-go-livepeerai-go - codeSamplesRevisionDigest: sha256:ef940f3b3a922a45b296cb368853fb259387b9bf81f54288c29439655f30d3a5 + codeSamplesRevisionDigest: sha256:42423d4ba3c0a6e9f59e6a851ce108be6a0047d7d8bf6fb992ee1fb431d692ea workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index c33200f..0216178 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -58,4 +58,14 @@ Based on: ### Generated - [go v0.4.0] . ### Releases -- [Go v0.4.0] https://github.com/livepeer/livepeer-ai-go/releases/tag/v0.4.0 - . \ No newline at end of file +- [Go v0.4.0] https://github.com/livepeer/livepeer-ai-go/releases/tag/v0.4.0 - . + +## 2024-09-23 00:26:19 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.401.2 (2.421.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [go v0.4.1] . +### Releases +- [Go v0.4.1] https://github.com/livepeer/livepeer-ai-go/releases/tag/v0.4.1 - . \ No newline at end of file diff --git a/docs/models/components/bodygenimagetoimage.md b/docs/models/components/bodygenimagetoimage.md index f40a6bb..a393b76 100644 --- a/docs/models/components/bodygenimagetoimage.md +++ b/docs/models/components/bodygenimagetoimage.md @@ -3,16 +3,17 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `Prompt` | *string* | :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. | -| `ModelID` | **string* | :heavy_minus_sign: | Hugging Face model ID used for image generation. | -| `Strength` | **float64* | :heavy_minus_sign: | Degree of transformation applied to the reference image (0 to 1). | -| `GuidanceScale` | **float64* | :heavy_minus_sign: | Encourages model to generate images closely linked to the text prompt (higher values may reduce image quality). | -| `ImageGuidanceScale` | **float64* | :heavy_minus_sign: | Degree to which the generated image is pushed towards the initial image. | -| `NegativePrompt` | **string* | :heavy_minus_sign: | Text prompt(s) to guide what to exclude from image generation. Ignored if guidance_scale < 1. | -| `SafetyCheck` | **bool* | :heavy_minus_sign: | Perform a safety check to estimate if generated images could be offensive or harmful. | -| `Seed` | **int64* | :heavy_minus_sign: | Seed for random number generation. | -| `NumInferenceSteps` | **int64* | :heavy_minus_sign: | Number of denoising steps. More steps usually lead to higher quality images but slower inference. Modulated by strength. | -| `NumImagesPerPrompt` | **int64* | :heavy_minus_sign: | Number of images to generate per prompt. | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Prompt` | *string* | :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. | +| `ModelID` | **string* | :heavy_minus_sign: | Hugging Face model ID used for image generation. | +| `Loras` | **string* | :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` | **float64* | :heavy_minus_sign: | Degree of transformation applied to the reference image (0 to 1). | +| `GuidanceScale` | **float64* | :heavy_minus_sign: | Encourages model to generate images closely linked to the text prompt (higher values may reduce image quality). | +| `ImageGuidanceScale` | **float64* | :heavy_minus_sign: | Degree to which the generated image is pushed towards the initial image. | +| `NegativePrompt` | **string* | :heavy_minus_sign: | Text prompt(s) to guide what to exclude from image generation. Ignored if guidance_scale < 1. | +| `SafetyCheck` | **bool* | :heavy_minus_sign: | Perform a safety check to estimate if generated images could be offensive or harmful. | +| `Seed` | **int64* | :heavy_minus_sign: | Seed for random number generation. | +| `NumInferenceSteps` | **int64* | :heavy_minus_sign: | Number of denoising steps. More steps usually lead to higher quality images but slower inference. Modulated by strength. | +| `NumImagesPerPrompt` | **int64* | :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 48ed5e1..f79d7d1 100644 --- a/docs/models/components/texttoimageparams.md +++ b/docs/models/components/texttoimageparams.md @@ -3,15 +3,16 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `ModelID` | **string* | :heavy_minus_sign: | Hugging Face model ID used for image generation. | -| `Prompt` | *string* | :heavy_check_mark: | Text prompt(s) to guide image generation. Separate multiple prompts with '\|' if supported by the model. | -| `Height` | **int64* | :heavy_minus_sign: | The height in pixels of the generated image. | -| `Width` | **int64* | :heavy_minus_sign: | The width in pixels of the generated image. | -| `GuidanceScale` | **float64* | :heavy_minus_sign: | Encourages model to generate images closely linked to the text prompt (higher values may reduce image quality). | -| `NegativePrompt` | **string* | :heavy_minus_sign: | Text prompt(s) to guide what to exclude from image generation. Ignored if guidance_scale < 1. | -| `SafetyCheck` | **bool* | :heavy_minus_sign: | Perform a safety check to estimate if generated images could be offensive or harmful. | -| `Seed` | **int64* | :heavy_minus_sign: | Seed for random number generation. | -| `NumInferenceSteps` | **int64* | :heavy_minus_sign: | Number of denoising steps. More steps usually lead to higher quality images but slower inference. Modulated by strength. | -| `NumImagesPerPrompt` | **int64* | :heavy_minus_sign: | Number of images to generate per prompt. | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ModelID` | **string* | :heavy_minus_sign: | Hugging Face model ID used for image generation. | +| `Loras` | **string* | :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}. | +| `Prompt` | *string* | :heavy_check_mark: | Text prompt(s) to guide image generation. Separate multiple prompts with '\|' if supported by the model. | +| `Height` | **int64* | :heavy_minus_sign: | The height in pixels of the generated image. | +| `Width` | **int64* | :heavy_minus_sign: | The width in pixels of the generated image. | +| `GuidanceScale` | **float64* | :heavy_minus_sign: | Encourages model to generate images closely linked to the text prompt (higher values may reduce image quality). | +| `NegativePrompt` | **string* | :heavy_minus_sign: | Text prompt(s) to guide what to exclude from image generation. Ignored if guidance_scale < 1. | +| `SafetyCheck` | **bool* | :heavy_minus_sign: | Perform a safety check to estimate if generated images could be offensive or harmful. | +| `Seed` | **int64* | :heavy_minus_sign: | Seed for random number generation. | +| `NumInferenceSteps` | **int64* | :heavy_minus_sign: | Number of denoising steps. More steps usually lead to higher quality images but slower inference. Modulated by strength. | +| `NumImagesPerPrompt` | **int64* | :heavy_minus_sign: | Number of images to generate per prompt. | \ No newline at end of file diff --git a/livepeer.go b/livepeer.go index 90148b4..cf2f438 100644 --- a/livepeer.go +++ b/livepeer.go @@ -151,9 +151,9 @@ func New(opts ...SDKOption) *Livepeer { sdkConfiguration: sdkConfiguration{ Language: "go", OpenAPIDocVersion: "v0.5.0", - SDKVersion: "0.4.0", - GenVersion: "2.415.8", - UserAgent: "speakeasy-sdk/go 0.4.0 2.415.8 v0.5.0 github.com/livepeer/livepeer-ai-go", + SDKVersion: "0.4.1", + GenVersion: "2.421.3", + UserAgent: "speakeasy-sdk/go 0.4.1 2.421.3 v0.5.0 github.com/livepeer/livepeer-ai-go", Hooks: hooks.New(), }, } diff --git a/models/components/bodygenimagetoimage.go b/models/components/bodygenimagetoimage.go index c62ecc4..6bac8cb 100644 --- a/models/components/bodygenimagetoimage.go +++ b/models/components/bodygenimagetoimage.go @@ -33,6 +33,8 @@ type BodyGenImageToImage struct { Image Image `multipartForm:"file"` // Hugging Face model ID used for image generation. ModelID *string `default:"" multipartForm:"name=model_id"` + // 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}. + Loras *string `default:"" multipartForm:"name=loras"` // Degree of transformation applied to the reference image (0 to 1). Strength *float64 `default:"0.8" multipartForm:"name=strength"` // Encourages model to generate images closely linked to the text prompt (higher values may reduce image quality). @@ -83,6 +85,13 @@ func (o *BodyGenImageToImage) GetModelID() *string { return o.ModelID } +func (o *BodyGenImageToImage) GetLoras() *string { + if o == nil { + return nil + } + return o.Loras +} + func (o *BodyGenImageToImage) GetStrength() *float64 { if o == nil { return nil diff --git a/models/components/texttoimageparams.go b/models/components/texttoimageparams.go index 2fd79ed..206b3c6 100644 --- a/models/components/texttoimageparams.go +++ b/models/components/texttoimageparams.go @@ -9,6 +9,8 @@ import ( type TextToImageParams struct { // Hugging Face model ID used for image generation. ModelID *string `default:"" json:"model_id"` + // 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}. + Loras *string `default:"" json:"loras"` // Text prompt(s) to guide image generation. Separate multiple prompts with '|' if supported by the model. Prompt string `json:"prompt"` // The height in pixels of the generated image. @@ -47,6 +49,13 @@ func (o *TextToImageParams) GetModelID() *string { return o.ModelID } +func (o *TextToImageParams) GetLoras() *string { + if o == nil { + return nil + } + return o.Loras +} + func (o *TextToImageParams) GetPrompt() string { if o == nil { return ""