Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.401.2 (#11)
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 23, 2024
1 parent f87586c commit cb96cee
Show file tree
Hide file tree
Showing 9 changed files with 72 additions and 42 deletions.
12 changes: 6 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -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
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
go:
version: 0.4.0
version: 0.4.1
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
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:
livepeerai-OAS:
sourceNamespace: livepeerai-oas
sourceRevisionDigest: sha256:3076fe48ebeac5e7f4ac1bc2dbb39f3c7c3cf93d02570881dc3e26c17644e7ad
sourceBlobDigest: sha256:84962d1cdd2b3ec311a1e3de4848a560478cefda5b3038810a518281c8032152
sourceRevisionDigest: sha256:8a885b9f63c7f5e08e85c473145d9adb7797b76f1f1e23a77d0cd142cafb01c6
sourceBlobDigest: sha256:ffdfa01671cab29ecdb8b014925f080497ace7616108fe5a4b9153cc0e562f93
tags:
- latest
- main
Expand All @@ -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
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 - .
- [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 - .
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 |
| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
| `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. |
| 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. |
6 changes: 3 additions & 3 deletions livepeer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
},
}
Expand Down
9 changes: 9 additions & 0 deletions models/components/bodygenimagetoimage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions models/components/texttoimageparams.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 ""
Expand Down

0 comments on commit cb96cee

Please sign in to comment.