Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.396.6 (#6)
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 13, 2024
1 parent fac4ec8 commit 672f13f
Show file tree
Hide file tree
Showing 17 changed files with 1,019 additions and 178 deletions.
196 changes: 132 additions & 64 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: 24fe39a0fb7794800b7d995f98944b86
docVersion: v0.1.3
speakeasyVersion: 1.383.2
generationVersion: 2.407.0
releaseVersion: 0.1.6
configChecksum: b79d412bf611ded8132ffbd0799067b8
docChecksum: 57e99cb8e6e8b32242245c05aacb18c7
docVersion: v0.2.0
speakeasyVersion: 1.396.6
generationVersion: 2.415.6
releaseVersion: 0.2.0
configChecksum: 31041836967656151854b3e329d03919
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.5
core: 3.5.8
defaultEnabledRetries: 0.2.0
devContainers: 2.90.0
envVarSecurityUsage: 0.3.1
Expand All @@ -28,77 +28,145 @@ features:
unions: 2.85.9
uploadStreams: 0.1.0
generatedFiles:
- livepeerai.go
- go.mod
- models/sdkerrors/sdkerror.go
- retry/config.go
- types/bigint.go
- types/date.go
- types/datetime.go
- types/decimal.go
- types/pointers.go
- internal/utils/contenttype.go
- internal/utils/form.go
- internal/utils/headers.go
- internal/utils/json.go
- internal/utils/pathparams.go
- internal/utils/queryparams.go
- internal/utils/requestbody.go
- internal/utils/retries.go
- internal/utils/security.go
- internal/utils/utils.go
- /models/operations/texttoimage.go
- /models/operations/imagetoimage.go
- /models/operations/imagetovideo.go
- /models/operations/upscale.go
- /models/operations/audiototext.go
- /models/components/imageresponse.go
- /models/components/media.go
- /models/components/httpmetadata.go
- .devcontainer/README.md
- .devcontainer/devcontainer.json
- .devcontainer/setup.sh
- .gitattributes
- /models/components/apierror.go
- /models/components/validationerror.go
- /models/components/texttoimageparams.go
- /models/components/bodyaudiototextaudiototextpost.go
- /models/components/bodyimagetoimageimagetoimagepost.go
- /models/components/videoresponse.go
- /models/components/bodyimagetovideoimagetovideopost.go
- /models/components/bodysegmentanything2segmentanything2post.go
- /models/components/bodyupscaleupscalepost.go
- /models/components/textresponse.go
- /models/components/chunk.go
- /models/components/bodyaudiototextaudiototextpost.go
- /models/components/httpmetadata.go
- /models/components/imageresponse.go
- /models/components/masksresponse.go
- /models/components/media.go
- /models/components/security.go
- /models/components/textresponse.go
- /models/components/texttoimageparams.go
- /models/components/validationerror.go
- /models/components/videoresponse.go
- /models/operations/audiototext.go
- /models/operations/imagetoimage.go
- /models/operations/imagetovideo.go
- /models/operations/segmentanything2.go
- /models/operations/texttoimage.go
- /models/operations/upscale.go
- /models/sdkerrors/httperror.go
- /models/sdkerrors/httpvalidationerror.go
- docs/models/operations/texttoimageresponse.md
- docs/models/operations/imagetoimageresponse.md
- docs/models/operations/imagetovideoresponse.md
- docs/models/operations/upscaleresponse.md
- docs/models/operations/audiototextresponse.md
- docs/models/components/imageresponse.md
- docs/models/components/media.md
- docs/models/components/httpmetadata.md
- CONTRIBUTING.md
- USAGE.md
- docs/models/components/apierror.md
- docs/models/components/loc.md
- docs/models/components/validationerror.md
- docs/models/components/texttoimageparams.md
- docs/models/components/image.md
- docs/models/components/audio.md
- docs/models/components/bodyaudiototextaudiototextpost.md
- docs/models/components/bodyimagetoimageimagetoimagepost.md
- docs/models/components/videoresponse.md
- docs/models/components/bodyimagetovideoimagetovideopostimage.md
- docs/models/components/bodyimagetovideoimagetovideopost.md
- docs/models/components/bodyupscaleupscalepostimage.md
- docs/models/components/bodyimagetovideoimagetovideopostimage.md
- docs/models/components/bodysegmentanything2segmentanything2post.md
- docs/models/components/bodysegmentanything2segmentanything2postimage.md
- docs/models/components/bodyupscaleupscalepost.md
- docs/models/components/textresponse.md
- docs/models/components/bodyupscaleupscalepostimage.md
- docs/models/components/chunk.md
- docs/models/components/audio.md
- docs/models/components/bodyaudiototextaudiototextpost.md
- docs/models/components/httpmetadata.md
- docs/models/components/image.md
- docs/models/components/imageresponse.md
- docs/models/components/loc.md
- docs/models/components/masksresponse.md
- docs/models/components/media.md
- docs/models/components/security.md
- docs/models/components/textresponse.md
- docs/models/components/texttoimageparams.md
- docs/models/components/validationerror.md
- docs/models/components/videoresponse.md
- docs/models/operations/audiototextresponse.md
- docs/models/operations/imagetoimageresponse.md
- docs/models/operations/imagetovideoresponse.md
- docs/models/operations/segmentanything2response.md
- docs/models/operations/texttoimageresponse.md
- docs/models/operations/upscaleresponse.md
- docs/models/sdkerrors/httperror.md
- docs/models/sdkerrors/httpvalidationerror.md
- USAGE.md
- models/operations/options.go
- .gitattributes
- .devcontainer/README.md
- .devcontainer/devcontainer.json
- .devcontainer/setup.sh
- go.mod
- internal/hooks/hooks.go
- CONTRIBUTING.md
- internal/utils/contenttype.go
- internal/utils/form.go
- internal/utils/headers.go
- internal/utils/json.go
- internal/utils/pathparams.go
- internal/utils/queryparams.go
- internal/utils/requestbody.go
- internal/utils/retries.go
- internal/utils/security.go
- internal/utils/utils.go
- livepeerai.go
- models/operations/options.go
- models/sdkerrors/sdkerror.go
- retry/config.go
- types/bigint.go
- types/date.go
- types/datetime.go
- types/decimal.go
- types/pointers.go
examples:
text_to_image:
speakeasy-default-text-to-image:
requestBody:
application/json: {"prompt": "<value>"}
responses:
"200":
application/json: {"images": []}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
image_to_image:
speakeasy-default-image-to-image:
requestBody:
multipart/form-data: {"prompt": "<value>", "image": {}}
responses:
"200":
application/json: {"images": []}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
image_to_video:
speakeasy-default-image-to-video:
requestBody:
multipart/form-data: {"image": {}}
responses:
"200":
application/json: {"images": []}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
upscale:
speakeasy-default-upscale:
requestBody:
multipart/form-data: {"prompt": "<value>", "image": {}}
responses:
"200":
application/json: {"images": []}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
audio_to_text:
speakeasy-default-audio-to-text:
requestBody:
multipart/form-data: {"audio": {}}
responses:
"200":
application/json: {"text": "<value>", "chunks": []}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
segment_anything_2:
speakeasy-default-segment-anything-2:
requestBody:
multipart/form-data: {"image": {}}
responses:
"200":
application/json: {"masks": "<value>", "scores": "<value>", "logits": "<value>"}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
go:
version: 0.1.6
version: 0.2.0
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
48 changes: 24 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ func main() {
s := livepeeraigo.New(
livepeeraigo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
request := components.TextToImageParams{
Prompt: "<value>",
}

ctx := context.Background()
res, err := s.TextToImage(ctx, request, operations.WithRetries(
res, err := s.TextToImage(ctx, components.TextToImageParams{
Prompt: "<value>",
}, operations.WithRetries(
retry.Config{
Strategy: "backoff",
Backoff: &retry.BackoffStrategy{
Expand Down Expand Up @@ -79,11 +79,11 @@ func main() {
}),
livepeeraigo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
request := components.TextToImageParams{
Prompt: "<value>",
}

ctx := context.Background()
res, err := s.TextToImage(ctx, request)
res, err := s.TextToImage(ctx, components.TextToImageParams{
Prompt: "<value>",
})
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -124,11 +124,11 @@ func main() {
s := livepeeraigo.New(
livepeeraigo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
request := components.TextToImageParams{
Prompt: "<value>",
}

ctx := context.Background()
res, err := s.TextToImage(ctx, request)
res, err := s.TextToImage(ctx, components.TextToImageParams{
Prompt: "<value>",
})
if err != nil {

var e *sdkerrors.HTTPError
Expand Down Expand Up @@ -183,11 +183,11 @@ func main() {
livepeeraigo.WithServerIndex(1),
livepeeraigo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
request := components.TextToImageParams{
Prompt: "<value>",
}

ctx := context.Background()
res, err := s.TextToImage(ctx, request)
res, err := s.TextToImage(ctx, components.TextToImageParams{
Prompt: "<value>",
})
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -217,11 +217,11 @@ func main() {
livepeeraigo.WithServerURL("https://dream-gateway.livepeer.cloud"),
livepeeraigo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
request := components.TextToImageParams{
Prompt: "<value>",
}

ctx := context.Background()
res, err := s.TextToImage(ctx, request)
res, err := s.TextToImage(ctx, components.TextToImageParams{
Prompt: "<value>",
})
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -288,11 +288,11 @@ func main() {
s := livepeeraigo.New(
livepeeraigo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
request := components.TextToImageParams{
Prompt: "<value>",
}

ctx := context.Background()
res, err := s.TextToImage(ctx, request)
res, err := s.TextToImage(ctx, components.TextToImageParams{
Prompt: "<value>",
})
if err != nil {
log.Fatal(err)
}
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,14 @@ Based on:
### Generated
- [go v0.1.6] .
### Releases
- [Go v0.1.6] https://github.com/livepeer/livepeer-ai-go/releases/tag/v0.1.6 - .
- [Go v0.1.6] https://github.com/livepeer/livepeer-ai-go/releases/tag/v0.1.6 - .

## 2024-09-13 00:24:35
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.396.6 (2.415.6) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.2.0] .
### Releases
- [Go v0.2.0] https://github.com/livepeer/livepeer-ai-go/releases/tag/v0.2.0 - .
8 changes: 4 additions & 4 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ func main() {
s := livepeeraigo.New(
livepeeraigo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
request := components.TextToImageParams{
Prompt: "<value>",
}

ctx := context.Background()
res, err := s.TextToImage(ctx, request)
res, err := s.TextToImage(ctx, components.TextToImageParams{
Prompt: "<value>",
})
if err != nil {
log.Fatal(err)
}
Expand Down
Loading

0 comments on commit 672f13f

Please sign in to comment.