Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.405.6 (#12)
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 Oct 1, 2024
1 parent cb96cee commit 13a4456
Show file tree
Hide file tree
Showing 16 changed files with 492 additions and 26 deletions.
29 changes: 22 additions & 7 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
lockVersion: 2.0.0
id: 98621ff3-f200-4a5c-9c69-bc1fe845e39c
management:
docChecksum: 4a28bceb165adf1c1dd97bbc8fe41a27
docVersion: v0.5.0
speakeasyVersion: 1.401.2
generationVersion: 2.421.3
releaseVersion: 0.4.1
configChecksum: 03ee27e9ab450aa2c6a8f0affa474e36
docChecksum: 21334b8071b6c8e28a5dda229ceafd7e
speakeasyVersion: 1.405.6
generationVersion: 2.428.1
releaseVersion: 0.4.2
configChecksum: d3dbfe289ca80fa4bf7e37f2d53d1f2f
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.9
core: 3.5.12
defaultEnabledRetries: 0.2.0
envVarSecurityUsage: 0.3.1
globalSecurity: 2.82.10
Expand All @@ -33,11 +32,13 @@ generatedFiles:
- /models/components/bodygenaudiototext.go
- /models/components/bodygenimagetoimage.go
- /models/components/bodygenimagetovideo.go
- /models/components/bodygenllm.go
- /models/components/bodygensegmentanything2.go
- /models/components/bodygenupscale.go
- /models/components/chunk.go
- /models/components/httpmetadata.go
- /models/components/imageresponse.go
- /models/components/llmresponse.go
- /models/components/masksresponse.go
- /models/components/media.go
- /models/components/security.go
Expand All @@ -48,6 +49,7 @@ generatedFiles:
- /models/operations/genaudiototext.go
- /models/operations/genimagetoimage.go
- /models/operations/genimagetovideo.go
- /models/operations/genllm.go
- /models/operations/gensegmentanything2.go
- /models/operations/gentexttoimage.go
- /models/operations/genupscale.go
Expand All @@ -61,6 +63,7 @@ generatedFiles:
- docs/models/components/bodygenimagetoimage.md
- docs/models/components/bodygenimagetovideo.md
- docs/models/components/bodygenimagetovideoimage.md
- docs/models/components/bodygenllm.md
- docs/models/components/bodygensegmentanything2.md
- docs/models/components/bodygensegmentanything2image.md
- docs/models/components/bodygenupscale.md
Expand All @@ -69,6 +72,7 @@ generatedFiles:
- docs/models/components/httpmetadata.md
- docs/models/components/image.md
- docs/models/components/imageresponse.md
- docs/models/components/llmresponse.md
- docs/models/components/loc.md
- docs/models/components/masksresponse.md
- docs/models/components/media.md
Expand All @@ -80,6 +84,7 @@ generatedFiles:
- docs/models/operations/genaudiototextresponse.md
- docs/models/operations/genimagetoimageresponse.md
- docs/models/operations/genimagetovideoresponse.md
- docs/models/operations/genllmresponse.md
- docs/models/operations/gensegmentanything2response.md
- docs/models/operations/gentexttoimageresponse.md
- docs/models/operations/genupscaleresponse.md
Expand Down Expand Up @@ -228,3 +233,13 @@ examples:
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
genLLM:
speakeasy-default-gen-LLM:
requestBody:
application/x-www-form-urlencoded: {"prompt": "<value>"}
responses:
"200":
application/json: {"response": "<value>", "tokens_used": 60712}
"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 @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
go:
version: 0.4.1
version: 0.4.2
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.401.2
speakeasyVersion: 1.405.6
sources:
livepeerai-OAS:
sourceNamespace: livepeerai-oas
sourceRevisionDigest: sha256:8a885b9f63c7f5e08e85c473145d9adb7797b76f1f1e23a77d0cd142cafb01c6
sourceBlobDigest: sha256:ffdfa01671cab29ecdb8b014925f080497ace7616108fe5a4b9153cc0e562f93
sourceRevisionDigest: sha256:ce56b1741c39f98c5d10419ed7aa8c1cf07891fbae7603bffaf06e9d26887f6f
sourceBlobDigest: sha256:1381f76cad0ec28b51d5559fdf87a0b14f39e2946fe25e0c21c0b8b0fe42cf99
tags:
- latest
- main
Expand All @@ -16,10 +16,10 @@ targets:
livepeerai-go:
source: livepeerai-OAS
sourceNamespace: livepeerai-oas
sourceRevisionDigest: sha256:8a885b9f63c7f5e08e85c473145d9adb7797b76f1f1e23a77d0cd142cafb01c6
sourceBlobDigest: sha256:ffdfa01671cab29ecdb8b014925f080497ace7616108fe5a4b9153cc0e562f93
sourceRevisionDigest: sha256:ce56b1741c39f98c5d10419ed7aa8c1cf07891fbae7603bffaf06e9d26887f6f
sourceBlobDigest: sha256:1381f76cad0ec28b51d5559fdf87a0b14f39e2946fe25e0c21c0b8b0fe42cf99
codeSamplesNamespace: code-samples-go-livepeerai-go
codeSamplesRevisionDigest: sha256:42423d4ba3c0a6e9f59e6a851ce108be6a0047d7d8bf6fb992ee1fb431d692ea
codeSamplesRevisionDigest: sha256:3d64aa7d5bea2f7f5de1d27ed652fea89c378343d47c113ee35aca504f954ecd
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,17 @@ func main() {
<!-- Start Error Handling [errors] -->
## Error Handling

Handling errors in this SDK should largely match your expectations. All operations return a response object or an error, they will never return both. When specified by the OpenAPI spec document, the SDK will return the appropriate subclass.
Handling errors in this SDK should largely match your expectations. All operations return a response object or an error, they will never return both.

| Error Object | Status Code | Content Type |
By Default, an API error will return `sdkerrors.SDKError`. When custom error responses are specified for an operation, the SDK may also return their associated error. You can refer to respective *Errors* tables in SDK docs for more details on possible error types for each operation.

For example, the `TextToImage` function may return the following errors:

| Error Type | Status Code | Content Type |
| ----------------------------- | ----------------------------- | ----------------------------- |
| sdkerrors.HTTPError | 400,401,500 | application/json |
| sdkerrors.HTTPError | 400, 401, 500 | application/json |
| sdkerrors.HTTPValidationError | 422 | application/json |
| sdkerrors.SDKError | 4xx-5xx | */* |
| sdkerrors.SDKError | 4XX, 5XX | \*/\* |

### Example

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,14 @@ Based on:
### Generated
- [go v0.4.1] .
### Releases
- [Go v0.4.1] https://github.com/livepeer/livepeer-ai-go/releases/tag/v0.4.1 - .
- [Go v0.4.1] https://github.com/livepeer/livepeer-ai-go/releases/tag/v0.4.1 - .

## 2024-10-01 20:52:21
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.405.6 (2.428.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.4.2] .
### Releases
- [Go v0.4.2] https://github.com/livepeer/livepeer-ai-go/releases/tag/v0.4.2 - .
31 changes: 31 additions & 0 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,37 @@ actions:
// handle response
}
}
- target: $["paths"]["/llm"]["post"]
update:
x-codeSamples:
- lang: go
label: genLLM
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.Llm(ctx, components.BodyGenLLM{
Prompt: "<value>",
})
if err != nil {
log.Fatal(err)
}
if res.LLMResponse != nil {
// handle response
}
}
- target: $["paths"]["/segment-anything-2"]["post"]
update:
x-codeSamples:
Expand Down
14 changes: 14 additions & 0 deletions docs/models/components/bodygenllm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# BodyGenLLM


## Fields

| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `Prompt` | *string* | :heavy_check_mark: | N/A |
| `ModelID` | **string* | :heavy_minus_sign: | N/A |
| `SystemMsg` | **string* | :heavy_minus_sign: | N/A |
| `Temperature` | **float64* | :heavy_minus_sign: | N/A |
| `MaxTokens` | **int64* | :heavy_minus_sign: | N/A |
| `History` | **string* | :heavy_minus_sign: | N/A |
| `Stream` | **bool* | :heavy_minus_sign: | N/A |
9 changes: 9 additions & 0 deletions docs/models/components/llmresponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# LLMResponse


## Fields

| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `Response` | *string* | :heavy_check_mark: | N/A |
| `TokensUsed` | *int64* | :heavy_check_mark: | N/A |
9 changes: 9 additions & 0 deletions docs/models/operations/genllmresponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# GenLLMResponse


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ |
| `HTTPMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A |
| `LLMResponse` | [*components.LLMResponse](../../models/components/llmresponse.md) | :heavy_minus_sign: | Successful Response |
2 changes: 0 additions & 2 deletions docs/models/sdkerrors/httpvalidationerror.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# HTTPValidationError

Validation Error


## Fields

Expand Down
Loading

0 comments on commit 13a4456

Please sign in to comment.