Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.434.0 (#15)
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 Nov 7, 2024
1 parent e969561 commit 12fabf3
Show file tree
Hide file tree
Showing 25 changed files with 910 additions and 30 deletions.
50 changes: 42 additions & 8 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
lockVersion: 2.0.0
id: 98621ff3-f200-4a5c-9c69-bc1fe845e39c
management:
docChecksum: a140881cbcff74961991f5dfff13f0a0
docChecksum: c22f8c1b01f75ba608165e53e64fb450
docVersion: 0.0.0
speakeasyVersion: 1.421.2
generationVersion: 2.438.15
releaseVersion: 0.4.3
configChecksum: c6fd68f564c3f98964f8fd3bc391d9d4
speakeasyVersion: 1.434.0
generationVersion: 2.452.0
releaseVersion: 0.5.0
configChecksum: 650e15e081d1eb4ab47980ef37b6a151
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.13
core: 3.5.15
defaultEnabledRetries: 0.2.0
envVarSecurityUsage: 0.3.1
envVarSecurityUsage: 0.3.2
globalSecurity: 2.82.10
globalSecurityCallbacks: 0.1.0
globalSecurityFlattening: 0.1.0
Expand All @@ -25,11 +25,13 @@ features:
responseFormat: 0.1.2
retries: 2.83.0
sdkHooks: 0.1.0
unions: 2.85.9
tests: 0.6.0
unions: 2.85.10
uploadStreams: 0.1.0
generatedFiles:
- .gitattributes
- /models/components/apierror.go
- /models/components/audioresponse.go
- /models/components/bodygenaudiototext.go
- /models/components/bodygenimagetoimage.go
- /models/components/bodygenimagetotext.go
Expand All @@ -41,28 +43,35 @@ generatedFiles:
- /models/components/httpmetadata.go
- /models/components/imageresponse.go
- /models/components/imagetotextresponse.go
- /models/components/livevideotovideoparams.go
- /models/components/livevideotovideoresponse.go
- /models/components/llmresponse.go
- /models/components/masksresponse.go
- /models/components/media.go
- /models/components/mediaurl.go
- /models/components/security.go
- /models/components/textresponse.go
- /models/components/texttoimageparams.go
- /models/components/texttospeechparams.go
- /models/components/validationerror.go
- /models/components/videoresponse.go
- /models/operations/genaudiototext.go
- /models/operations/genimagetoimage.go
- /models/operations/genimagetotext.go
- /models/operations/genimagetovideo.go
- /models/operations/genlivevideotovideo.go
- /models/operations/genllm.go
- /models/operations/gensegmentanything2.go
- /models/operations/gentexttoimage.go
- /models/operations/gentexttospeech.go
- /models/operations/genupscale.go
- /models/sdkerrors/httperror.go
- /models/sdkerrors/httpvalidationerror.go
- CONTRIBUTING.md
- USAGE.md
- docs/models/components/apierror.md
- docs/models/components/audio.md
- docs/models/components/audioresponse.md
- docs/models/components/bodygenaudiototext.md
- docs/models/components/bodygenimagetoimage.md
- docs/models/components/bodygenimagetotext.md
Expand All @@ -79,22 +88,29 @@ generatedFiles:
- docs/models/components/image.md
- docs/models/components/imageresponse.md
- docs/models/components/imagetotextresponse.md
- docs/models/components/livevideotovideoparams.md
- docs/models/components/livevideotovideoresponse.md
- docs/models/components/llmresponse.md
- docs/models/components/loc.md
- docs/models/components/masksresponse.md
- docs/models/components/media.md
- docs/models/components/mediaurl.md
- docs/models/components/params.md
- docs/models/components/security.md
- docs/models/components/textresponse.md
- docs/models/components/texttoimageparams.md
- docs/models/components/texttospeechparams.md
- docs/models/components/validationerror.md
- docs/models/components/videoresponse.md
- docs/models/operations/genaudiototextresponse.md
- docs/models/operations/genimagetoimageresponse.md
- docs/models/operations/genimagetotextresponse.md
- docs/models/operations/genimagetovideoresponse.md
- docs/models/operations/genlivevideotovideoresponse.md
- docs/models/operations/genllmresponse.md
- docs/models/operations/gensegmentanything2response.md
- docs/models/operations/gentexttoimageresponse.md
- docs/models/operations/gentexttospeechresponse.md
- docs/models/operations/genupscaleresponse.md
- docs/models/sdkerrors/httperror.md
- docs/models/sdkerrors/httpvalidationerror.md
Expand Down Expand Up @@ -261,3 +277,21 @@ examples:
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
genLiveVideoToVideo:
speakeasy-default-gen-live-video-to-video:
requestBody:
application/json: {"subscribe_url": "https://soulful-lava.org/", "publish_url": "https://vain-tabletop.biz"}
responses:
"200":
application/json: {"subscribe_url": "https://vain-kiss.name", "publish_url": "https://frail-duffel.com"}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
genTextToSpeech:
speakeasy-default-gen-text-to-speech:
responses:
"200":
application/json: {"audio": {"url": "https://accurate-parsnip.net/"}}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
3 changes: 2 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ generation:
requestResponseComponentNamesFeb2024: true
auth:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
go:
version: 0.4.3
version: 0.5.0
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.421.2
speakeasyVersion: 1.434.0
sources:
livepeerai-OAS:
sourceNamespace: livepeerai-oas
sourceRevisionDigest: sha256:42e3e9a25622d367c70f1f200afa559ec6a2c4d9b65014dd76da56f8e1beb487
sourceBlobDigest: sha256:ad0b2e92bea306b60b1929309669cb1c3ca574325bb0ab4a2e44949fc8249a9f
sourceRevisionDigest: sha256:68a61825188a0a0d306025e6f6f18a573e5510932bdb5c8cdf64e2a3b0e97589
sourceBlobDigest: sha256:c56907fa67feba848782a2720c447e2d442b420d4c1feae871ac97b3476e2c08
tags:
- latest
- main
Expand All @@ -16,10 +16,10 @@ targets:
livepeerai-go:
source: livepeerai-OAS
sourceNamespace: livepeerai-oas
sourceRevisionDigest: sha256:42e3e9a25622d367c70f1f200afa559ec6a2c4d9b65014dd76da56f8e1beb487
sourceBlobDigest: sha256:ad0b2e92bea306b60b1929309669cb1c3ca574325bb0ab4a2e44949fc8249a9f
sourceRevisionDigest: sha256:68a61825188a0a0d306025e6f6f18a573e5510932bdb5c8cdf64e2a3b0e97589
sourceBlobDigest: sha256:c56907fa67feba848782a2720c447e2d442b420d4c1feae871ac97b3476e2c08
codeSamplesNamespace: code-samples-go-livepeerai-go
codeSamplesRevisionDigest: sha256:36bfad51481a38664404f8053d44846222f0d7fa53c6f1462a5bd1a1e284bd08
codeSamplesRevisionDigest: sha256:6f6f16aaab8d191a327c8fb379b53670198d7231a4c711afec0eb42edaa85cdb
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,6 @@ func main() {
```
<!-- End Authentication [security] -->

<!-- Start Special Types [types] -->
## Special Types


<!-- End Special Types [types] -->

<!-- Start Summary [summary] -->
## Summary

Expand All @@ -331,7 +325,6 @@ Livepeer AI Runner: An application to run AI pipelines
* [Server Selection](#server-selection)
* [Custom HTTP Client](#custom-http-client)
* [Authentication](#authentication)
* [Special Types](#special-types)
<!-- End Table of Contents [toc] -->

<!-- Placeholder for Future Speakeasy SDK Sections -->
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,14 @@ Based on:
### Generated
- [go v0.4.3] .
### Releases
- [Go v0.4.3] https://github.com/livepeer/livepeer-ai-go/releases/tag/v0.4.3 - .
- [Go v0.4.3] https://github.com/livepeer/livepeer-ai-go/releases/tag/v0.4.3 - .

## 2024-11-07 00:25:54
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.434.0 (2.452.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.5.0] .
### Releases
- [Go v0.5.0] https://github.com/livepeer/livepeer-ai-go/releases/tag/v0.5.0 - .
61 changes: 61 additions & 0 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,38 @@ actions:
// handle response
}
}
- target: $["paths"]["/live-video-to-video"]["post"]
update:
x-codeSamples:
- lang: go
label: genLiveVideoToVideo
source: |-
package main
import(
livepeeraigo "github.com/livepeer/livepeer-ai-go"
"context"
"github.com/livepeer/livepeer-ai-go/models/components"
"log"
)
func main() {
s := livepeeraigo.New(
livepeeraigo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
ctx := context.Background()
res, err := s.Generate.LiveVideoToVideo(ctx, components.LiveVideoToVideoParams{
SubscribeURL: "https://soulful-lava.org/",
PublishURL: "https://vain-tabletop.biz",
})
if err != nil {
log.Fatal(err)
}
if res.LiveVideoToVideoResponse != nil {
// handle response
}
}
- target: $["paths"]["/llm"]["post"]
update:
x-codeSamples:
Expand Down Expand Up @@ -266,6 +298,35 @@ actions:
// handle response
}
}
- target: $["paths"]["/text-to-speech"]["post"]
update:
x-codeSamples:
- lang: go
label: genTextToSpeech
source: |-
package main
import(
livepeeraigo "github.com/livepeer/livepeer-ai-go"
"context"
"github.com/livepeer/livepeer-ai-go/models/components"
"log"
)
func main() {
s := livepeeraigo.New(
livepeeraigo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
ctx := context.Background()
res, err := s.Generate.TextToSpeech(ctx, components.TextToSpeechParams{})
if err != nil {
log.Fatal(err)
}
if res.AudioResponse != nil {
// handle response
}
}
- target: $["paths"]["/upscale"]["post"]
update:
x-codeSamples:
Expand Down
10 changes: 10 additions & 0 deletions docs/models/components/audioresponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# AudioResponse

Response model for audio generation.


## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- |
| `Audio` | [components.MediaURL](../../models/components/mediaurl.md) | :heavy_check_mark: | The generated audio. |
9 changes: 5 additions & 4 deletions docs/models/components/bodygenaudiototext.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- |
| `Audio` | [components.Audio](../../models/components/audio.md) | :heavy_check_mark: | Uploaded audio file to be transcribed. |
| `ModelID` | **string* | :heavy_minus_sign: | Hugging Face model ID used for transcription. |
| Field | Type | Required | Description |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Audio` | [components.Audio](../../models/components/audio.md) | :heavy_check_mark: | Uploaded audio file to be transcribed. |
| `ModelID` | **string* | :heavy_minus_sign: | Hugging Face model ID used for transcription. |
| `ReturnTimestamps` | **string* | :heavy_minus_sign: | Return timestamps for the transcribed text. Supported values: 'sentence', 'word', or a string boolean ('true' or 'false'). Default is 'true' ('sentence'). 'false' means no timestamps. 'word' means word-based timestamps. |
11 changes: 11 additions & 0 deletions docs/models/components/livevideotovideoparams.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# LiveVideoToVideoParams


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- |
| `SubscribeURL` | *string* | :heavy_check_mark: | Source URL of the incoming stream to subscribe to. |
| `PublishURL` | *string* | :heavy_check_mark: | Destination URL of the outgoing stream to publish. |
| `ModelID` | **string* | :heavy_minus_sign: | Hugging Face model ID used for image generation. |
| `Params` | [*components.Params](../../models/components/params.md) | :heavy_minus_sign: | Initial parameters for the model. |
11 changes: 11 additions & 0 deletions docs/models/components/livevideotovideoresponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# LiveVideoToVideoResponse

Response model for live video-to-video generation.


## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- |
| `SubscribeURL` | *string* | :heavy_check_mark: | Source URL of the incoming stream to subscribe to |
| `PublishURL` | *string* | :heavy_check_mark: | Destination URL of the outgoing stream to publish to |
10 changes: 10 additions & 0 deletions docs/models/components/mediaurl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# MediaURL

A URL from which media can be accessed.


## Fields

| Field | Type | Required | Description |
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
| `URL` | *string* | :heavy_check_mark: | The URL where the media can be accessed. |
9 changes: 9 additions & 0 deletions docs/models/components/params.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Params

Initial parameters for the model.


## Fields

| Field | Type | Required | Description |
| ----------- | ----------- | ----------- | ----------- |
Loading

0 comments on commit 12fabf3

Please sign in to comment.