Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.382.0 (#4)
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 Aug 29, 2024
1 parent 1d51063 commit 5d51629
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 52 deletions.
12 changes: 6 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 98621ff3-f200-4a5c-9c69-bc1fe845e39c
management:
docChecksum: 83217fd4aabc3c12bd4c7c073283767b
docChecksum: 130845ee701d46932641282f72ec57ab
docVersion: v0.1.2
speakeasyVersion: 1.379.0
generationVersion: 2.404.3
releaseVersion: 0.1.4
configChecksum: 9ad36c8a785e866bb0e49bfe12667162
speakeasyVersion: 1.382.0
generationVersion: 2.404.11
releaseVersion: 0.1.5
configChecksum: 18700c84d68a27283df34d83c91b2eb0
repoURL: https://github.com/livepeer/livepeer-ai-go.git
installationURL: https://github.com/livepeer/livepeer-ai-go
features:
Expand All @@ -16,7 +16,7 @@ features:
core: 3.5.5
defaultEnabledRetries: 0.2.0
devContainers: 2.90.0
envVarSecurityUsage: 0.3.0
envVarSecurityUsage: 0.3.1
globalSecurity: 2.82.10
globalSecurityCallbacks: 0.1.0
globalSecurityFlattening: 0.1.0
Expand Down
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.4
version: 0.1.5
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
15 changes: 8 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
speakeasyVersion: 1.379.0
speakeasyVersion: 1.382.0
sources:
livepeerai-OAS:
sourceNamespace: livepeerai-oas
sourceRevisionDigest: sha256:a1d4d8ee9e58680698013d18cb2f5c021690edb42206f786495e1080a7e0666c
sourceBlobDigest: sha256:b5fd6a2637c962cec1dc87c6d3807ab6fab6fb34f7ed7f1138ab7508e1554352
sourceRevisionDigest: sha256:7690d9e9dfac96479db8fdc5eb7014b77e32e2b7cef614b906a37ccf0ef8a9b3
sourceBlobDigest: sha256:25056b91ebfc680137633064f5f3d767eb0bf6541a873d9e342013ed06a636ee
tags:
- latest
- main
targets:
livepeerai:
source: livepeerai-OAS
Expand All @@ -16,11 +17,11 @@ targets:
livepeerai-go:
source: livepeerai-OAS
sourceNamespace: livepeerai-oas
sourceRevisionDigest: sha256:a1d4d8ee9e58680698013d18cb2f5c021690edb42206f786495e1080a7e0666c
sourceBlobDigest: sha256:b5fd6a2637c962cec1dc87c6d3807ab6fab6fb34f7ed7f1138ab7508e1554352
sourceRevisionDigest: sha256:7690d9e9dfac96479db8fdc5eb7014b77e32e2b7cef614b906a37ccf0ef8a9b3
sourceBlobDigest: sha256:25056b91ebfc680137633064f5f3d767eb0bf6541a873d9e342013ed06a636ee
codeSamplesNamespace: code-samples-go-livepeerai-go
codeSamplesRevisionDigest: sha256:028b59c8bd8e7189167b97975e1fe683e0aa0dd178614dc408e94e4576228f87
outLocation: /home/ricks/development/livepeer/ai/livepeer-ai-go
codeSamplesRevisionDigest: sha256:b71b705aa7b47792b3fbb17e5f5b5259b9dc2822de3c05c3118acc55052a9d1d
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ You can override the default server globally using the `WithServerIndex` option
| # | Server | Variables |
| - | ------ | --------- |
| 0 | `https://dream-gateway.livepeer.cloud` | None |
| 1 | `https://livepeer.studio/api/beta/generate` | None |

#### Example

Expand All @@ -179,7 +180,7 @@ import (

func main() {
s := livepeeraigo.New(
livepeeraigo.WithServerIndex(0),
livepeeraigo.WithServerIndex(1),
livepeeraigo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
request := components.TextToImageParams{
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,14 @@ Based on:
### Generated
- [go v0.1.3] .
### Releases
- [Go v0.1.3] https://github.com/livepeer/livepeer-ai-go/releases/tag/v0.1.3 - .
- [Go v0.1.3] https://github.com/livepeer/livepeer-ai-go/releases/tag/v0.1.3 - .

## 2024-08-29 00:24:02
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.382.0 (2.404.11) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.1.5] .
### Releases
- [Go v0.1.5] https://github.com/livepeer/livepeer-ai-go/releases/tag/v0.1.5 - .
66 changes: 33 additions & 33 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ info:
title: CodeSamples overlay for go target
version: 0.0.0
actions:
- target: $["paths"]["/text-to-image"]["post"]
- target: $["paths"]["/audio-to-text"]["post"]
update:
x-codeSamples:
- lang: go
label: text_to_image
label: audio_to_text
source: |-
package main
Expand All @@ -22,23 +22,26 @@ actions:
s := livepeeraigo.New(
livepeeraigo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
request := components.TextToImageParams{
Prompt: "<value>",
request := components.BodyAudioToTextAudioToTextPost{
Audio: components.Audio{
FileName: "your_file_here",
Content: os.Open("<file_path>"),
},
}
ctx := context.Background()
res, err := s.TextToImage(ctx, request)
res, err := s.AudioToText(ctx, request)
if err != nil {
log.Fatal(err)
}
if res.ImageResponse != nil {
if res.TextResponse != nil {
// handle response
}
}
- target: $["paths"]["/image-to-image"]["post"]
- target: $["paths"]["/text-to-image"]["post"]
update:
x-codeSamples:
- lang: go
label: image_to_image
label: text_to_image
source: |-
package main
Expand All @@ -53,27 +56,23 @@ actions:
s := livepeeraigo.New(
livepeeraigo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
request := components.BodyImageToImageImageToImagePost{
request := components.TextToImageParams{
Prompt: "<value>",
Image: components.Image{
FileName: "your_file_here",
Content: os.Open("<file_path>"),
},
}
ctx := context.Background()
res, err := s.ImageToImage(ctx, request)
res, err := s.TextToImage(ctx, request)
if err != nil {
log.Fatal(err)
}
if res.ImageResponse != nil {
// handle response
}
}
- target: $["paths"]["/image-to-video"]["post"]
- target: $["paths"]["/image-to-image"]["post"]
update:
x-codeSamples:
- lang: go
label: image_to_video
label: image_to_image
source: |-
package main
Expand All @@ -88,26 +87,27 @@ actions:
s := livepeeraigo.New(
livepeeraigo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
request := components.BodyImageToVideoImageToVideoPost{
Image: components.BodyImageToVideoImageToVideoPostImage{
request := components.BodyImageToImageImageToImagePost{
Prompt: "<value>",
Image: components.Image{
FileName: "your_file_here",
Content: os.Open("<file_path>"),
},
}
ctx := context.Background()
res, err := s.ImageToVideo(ctx, request)
res, err := s.ImageToImage(ctx, request)
if err != nil {
log.Fatal(err)
}
if res.VideoResponse != nil {
if res.ImageResponse != nil {
// handle response
}
}
- target: $["paths"]["/upscale"]["post"]
- target: $["paths"]["/image-to-video"]["post"]
update:
x-codeSamples:
- lang: go
label: upscale
label: image_to_video
source: |-
package main
Expand All @@ -122,27 +122,26 @@ actions:
s := livepeeraigo.New(
livepeeraigo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
request := components.BodyUpscaleUpscalePost{
Prompt: "<value>",
Image: components.BodyUpscaleUpscalePostImage{
request := components.BodyImageToVideoImageToVideoPost{
Image: components.BodyImageToVideoImageToVideoPostImage{
FileName: "your_file_here",
Content: os.Open("<file_path>"),
},
}
ctx := context.Background()
res, err := s.Upscale(ctx, request)
res, err := s.ImageToVideo(ctx, request)
if err != nil {
log.Fatal(err)
}
if res.ImageResponse != nil {
if res.VideoResponse != nil {
// handle response
}
}
- target: $["paths"]["/audio-to-text"]["post"]
- target: $["paths"]["/upscale"]["post"]
update:
x-codeSamples:
- lang: go
label: audio_to_text
label: upscale
source: |-
package main
Expand All @@ -157,18 +156,19 @@ actions:
s := livepeeraigo.New(
livepeeraigo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
request := components.BodyAudioToTextAudioToTextPost{
Audio: components.Audio{
request := components.BodyUpscaleUpscalePost{
Prompt: "<value>",
Image: components.BodyUpscaleUpscalePostImage{
FileName: "your_file_here",
Content: os.Open("<file_path>"),
},
}
ctx := context.Background()
res, err := s.AudioToText(ctx, request)
res, err := s.Upscale(ctx, request)
if err != nil {
log.Fatal(err)
}
if res.TextResponse != nil {
if res.ImageResponse != nil {
// handle response
}
}
8 changes: 5 additions & 3 deletions livepeerai.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import (
var ServerList = []string{
// Livepeer Cloud Community Gateway
"https://dream-gateway.livepeer.cloud",
// Livepeer Studio Gateway
"https://livepeer.studio/api/beta/generate",
}

// HTTPClient provides an interface for suplying the SDK with a custom HTTP client
Expand Down Expand Up @@ -150,9 +152,9 @@ func New(opts ...SDKOption) *LivepeerAI {
sdkConfiguration: sdkConfiguration{
Language: "go",
OpenAPIDocVersion: "v0.1.2",
SDKVersion: "0.1.4",
GenVersion: "2.404.3",
UserAgent: "speakeasy-sdk/go 0.1.4 2.404.3 v0.1.2 github.com/livepeer/livepeer-ai-go",
SDKVersion: "0.1.5",
GenVersion: "2.404.11",
UserAgent: "speakeasy-sdk/go 0.1.5 2.404.11 v0.1.2 github.com/livepeer/livepeer-ai-go",
Hooks: hooks.New(),
},
}
Expand Down

0 comments on commit 5d51629

Please sign in to comment.