Skip to content

Commit 18bd942

Browse files
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.405.6 (#15)
Co-authored-by: speakeasybot <[email protected]>
1 parent e5754c7 commit 18bd942

File tree

20 files changed

+446
-52
lines changed

20 files changed

+446
-52
lines changed

.speakeasy/gen.lock

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
lockVersion: 2.0.0
22
id: 2d5dbf5a-62be-411a-9c7b-bc7b6dc79e13
33
management:
4-
docChecksum: 4a28bceb165adf1c1dd97bbc8fe41a27
5-
docVersion: v0.5.0
6-
speakeasyVersion: 1.401.2
7-
generationVersion: 2.421.3
8-
releaseVersion: 0.5.1
9-
configChecksum: 57016dfe6f67d305306547b9aa2c1601
4+
docChecksum: 21334b8071b6c8e28a5dda229ceafd7e
5+
speakeasyVersion: 1.405.6
6+
generationVersion: 2.428.1
7+
releaseVersion: 0.5.2
8+
configChecksum: 7327f5aa5f764c498c18bf07efe8face
109
repoURL: https://github.com/livepeer/livepeer-ai-python.git
1110
installationURL: https://github.com/livepeer/livepeer-ai-python.git
1211
published: true
1312
features:
1413
python:
1514
additionalDependencies: 1.0.0
1615
constsAndDefaults: 1.0.3
17-
core: 5.5.4
16+
core: 5.5.7
1817
defaultEnabledRetries: 0.2.0
1918
envVarSecurityUsage: 0.3.1
2019
globalSecurity: 3.0.2
@@ -23,7 +22,7 @@ features:
2322
globalServerURLs: 3.0.0
2423
multipartFileContentType: 1.0.0
2524
nameOverrides: 3.0.0
26-
responseFormat: 1.0.0
25+
responseFormat: 1.0.1
2726
retries: 3.0.2
2827
sdkHooks: 1.0.0
2928
unions: 3.0.2
@@ -39,6 +38,7 @@ generatedFiles:
3938
- docs/models/components/bodygenimagetoimage.md
4039
- docs/models/components/bodygenimagetovideo.md
4140
- docs/models/components/bodygenimagetovideoimage.md
41+
- docs/models/components/bodygenllm.md
4242
- docs/models/components/bodygensegmentanything2.md
4343
- docs/models/components/bodygensegmentanything2image.md
4444
- docs/models/components/bodygenupscale.md
@@ -47,6 +47,7 @@ generatedFiles:
4747
- docs/models/components/httpmetadata.md
4848
- docs/models/components/image.md
4949
- docs/models/components/imageresponse.md
50+
- docs/models/components/llmresponse.md
5051
- docs/models/components/loc.md
5152
- docs/models/components/masksresponse.md
5253
- docs/models/components/media.md
@@ -60,6 +61,7 @@ generatedFiles:
6061
- docs/models/operations/genaudiototextresponse.md
6162
- docs/models/operations/genimagetoimageresponse.md
6263
- docs/models/operations/genimagetovideoresponse.md
64+
- docs/models/operations/genllmresponse.md
6365
- docs/models/operations/gensegmentanything2response.md
6466
- docs/models/operations/gentexttoimageresponse.md
6567
- docs/models/operations/genupscaleresponse.md
@@ -85,11 +87,13 @@ generatedFiles:
8587
- src/livepeer_ai/models/components/body_genaudiototext.py
8688
- src/livepeer_ai/models/components/body_genimagetoimage.py
8789
- src/livepeer_ai/models/components/body_genimagetovideo.py
90+
- src/livepeer_ai/models/components/body_genllm.py
8891
- src/livepeer_ai/models/components/body_gensegmentanything2.py
8992
- src/livepeer_ai/models/components/body_genupscale.py
9093
- src/livepeer_ai/models/components/chunk.py
9194
- src/livepeer_ai/models/components/httpmetadata.py
9295
- src/livepeer_ai/models/components/imageresponse.py
96+
- src/livepeer_ai/models/components/llmresponse.py
9397
- src/livepeer_ai/models/components/masksresponse.py
9498
- src/livepeer_ai/models/components/media.py
9599
- src/livepeer_ai/models/components/security.py
@@ -105,6 +109,7 @@ generatedFiles:
105109
- src/livepeer_ai/models/operations/genaudiototext.py
106110
- src/livepeer_ai/models/operations/genimagetoimage.py
107111
- src/livepeer_ai/models/operations/genimagetovideo.py
112+
- src/livepeer_ai/models/operations/genllm.py
108113
- src/livepeer_ai/models/operations/gensegmentanything2.py
109114
- src/livepeer_ai/models/operations/gentexttoimage.py
110115
- src/livepeer_ai/models/operations/genupscale.py
@@ -189,3 +194,13 @@ examples:
189194
"400":
190195
application/json: {"detail": {"msg": "<value>"}}
191196
"422": {}
197+
genLLM:
198+
speakeasy-default-gen-LLM:
199+
requestBody:
200+
application/x-www-form-urlencoded: {"prompt": "<value>"}
201+
responses:
202+
"200":
203+
application/json: {"response": "<value>", "tokens_used": 60712}
204+
"400":
205+
application/json: {"detail": {"msg": "<value>"}}
206+
"422": {}

.speakeasy/gen.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ generation:
1212
auth:
1313
oAuth2ClientCredentialsEnabled: true
1414
python:
15-
version: 0.5.1
15+
version: 0.5.2
1616
additionalDependencies:
1717
dev: {}
1818
main: {}
@@ -22,6 +22,8 @@ python:
2222
clientServerStatusCodesAsErrors: true
2323
description: Python Client SDK for the Livepeer AI API.
2424
enumFormat: enum
25+
fixFlags:
26+
responseRequiredSep2024: false
2527
flattenGlobalSecurity: true
2628
flattenRequests: false
2729
imports:

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
speakeasyVersion: 1.401.2
1+
speakeasyVersion: 1.405.6
22
sources:
33
livepeer_ai-OAS:
44
sourceNamespace: livepeer-ai-oas
5-
sourceRevisionDigest: sha256:4f6e897095eeeb8d23e6ecc1421334cf273ffd96b45a1e6e79bf04b39d5ce543
6-
sourceBlobDigest: sha256:ffdfa01671cab29ecdb8b014925f080497ace7616108fe5a4b9153cc0e562f93
5+
sourceRevisionDigest: sha256:6c083bb976ce725193fa116da1525e922c5cc008dc6f138ca265003b272d1667
6+
sourceBlobDigest: sha256:1381f76cad0ec28b51d5559fdf87a0b14f39e2946fe25e0c21c0b8b0fe42cf99
77
tags:
88
- latest
99
- main
@@ -16,10 +16,10 @@ targets:
1616
livepeer-ai-python:
1717
source: livepeer_ai-OAS
1818
sourceNamespace: livepeer-ai-oas
19-
sourceRevisionDigest: sha256:4f6e897095eeeb8d23e6ecc1421334cf273ffd96b45a1e6e79bf04b39d5ce543
20-
sourceBlobDigest: sha256:ffdfa01671cab29ecdb8b014925f080497ace7616108fe5a4b9153cc0e562f93
19+
sourceRevisionDigest: sha256:6c083bb976ce725193fa116da1525e922c5cc008dc6f138ca265003b272d1667
20+
sourceBlobDigest: sha256:1381f76cad0ec28b51d5559fdf87a0b14f39e2946fe25e0c21c0b8b0fe42cf99
2121
codeSamplesNamespace: code-samples-python-livepeer-python
22-
codeSamplesRevisionDigest: sha256:196012791664b5a4437be3bf2d09ed1a3b6ee7bd83da508a3def8332836f5b31
22+
codeSamplesRevisionDigest: sha256:2a3c5eac4d47d04d2509592307bd0e451ce09ecacdba64a6638329f2f3286f76
2323
workflow:
2424
workflowVersion: 1.0.0
2525
speakeasyVersion: latest

README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ asyncio.run(main())
100100
* [upscale](docs/sdks/generate/README.md#upscale) - Upscale
101101
* [audio_to_text](docs/sdks/generate/README.md#audio_to_text) - Audio To Text
102102
* [segment_anything2](docs/sdks/generate/README.md#segment_anything2) - Segment Anything 2
103+
* [llm](docs/sdks/generate/README.md#llm) - LLM
103104

104105

105106
</details>
@@ -186,13 +187,24 @@ if res.image_response is not None:
186187
<!-- Start Error Handling [errors] -->
187188
## Error Handling
188189

189-
Handling errors in this SDK should largely match your expectations. All operations return a response object or raise an error. If Error objects are specified in your OpenAPI Spec, the SDK will raise the appropriate Error type.
190+
Handling errors in this SDK should largely match your expectations. All operations return a response object or raise an exception.
190191

191-
| Error Object | Status Code | Content Type |
192+
By default, an API error will raise a errors.SDKError exception, which has the following properties:
193+
194+
| Property | Type | Description |
195+
|-----------------|------------------|-----------------------|
196+
| `.status_code` | *int* | The HTTP status code |
197+
| `.message` | *str* | The error message |
198+
| `.raw_response` | *httpx.Response* | The raw HTTP response |
199+
| `.body` | *str* | The response content |
200+
201+
When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `text_to_image_async` method may raise the following exceptions:
202+
203+
| Error Type | Status Code | Content Type |
192204
| -------------------------- | -------------------------- | -------------------------- |
193-
| errors.HTTPError | 400,401,500 | application/json |
205+
| errors.HTTPError | 400, 401, 500 | application/json |
194206
| errors.HTTPValidationError | 422 | application/json |
195-
| errors.SDKError | 4xx-5xx | */* |
207+
| errors.SDKError | 4XX, 5XX | \*/\* |
196208

197209
### Example
198210

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,14 @@ Based on:
7878
### Generated
7979
- [python v0.5.1] .
8080
### Releases
81-
- [PyPI v0.5.1] https://pypi.org/project/livepeer-ai/0.5.1 - .
81+
- [PyPI v0.5.1] https://pypi.org/project/livepeer-ai/0.5.1 - .
82+
83+
## 2024-10-01 20:49:55
84+
### Changes
85+
Based on:
86+
- OpenAPI Doc
87+
- Speakeasy CLI 1.405.6 (2.428.1) https://github.com/speakeasy-api/speakeasy
88+
### Generated
89+
- [python v0.5.2] .
90+
### Releases
91+
- [PyPI v0.5.2] https://pypi.org/project/livepeer-ai/0.5.2 - .

codeSamples.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,25 @@ actions:
7070
if res.video_response is not None:
7171
# handle response
7272
pass
73+
- target: $["paths"]["/llm"]["post"]
74+
update:
75+
x-codeSamples:
76+
- lang: python
77+
label: genLLM
78+
source: |-
79+
from livepeer_ai import Livepeer
80+
81+
s = Livepeer(
82+
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
83+
)
84+
85+
res = s.generate.llm(request={
86+
"prompt": "<value>",
87+
})
88+
89+
if res.llm_response is not None:
90+
# handle response
91+
pass
7392
- target: $["paths"]["/segment-anything-2"]["post"]
7493
update:
7594
x-codeSamples:

docs/models/components/bodygenllm.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# BodyGenLLM
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------ | ------------------ | ------------------ | ------------------ |
8+
| `prompt` | *str* | :heavy_check_mark: | N/A |
9+
| `model_id` | *Optional[str]* | :heavy_minus_sign: | N/A |
10+
| `system_msg` | *Optional[str]* | :heavy_minus_sign: | N/A |
11+
| `temperature` | *Optional[float]* | :heavy_minus_sign: | N/A |
12+
| `max_tokens` | *Optional[int]* | :heavy_minus_sign: | N/A |
13+
| `history` | *Optional[str]* | :heavy_minus_sign: | N/A |
14+
| `stream` | *Optional[bool]* | :heavy_minus_sign: | N/A |

docs/models/components/llmresponse.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# LLMResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------ | ------------------ | ------------------ | ------------------ |
8+
| `response` | *str* | :heavy_check_mark: | N/A |
9+
| `tokens_used` | *int* | :heavy_check_mark: | N/A |

docs/models/errors/httpvalidationerror.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# HTTPValidationError
22

3-
Validation Error
4-
53

64
## Fields
75

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# GenLLMResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
8+
| `http_meta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A |
9+
| `llm_response` | [Optional[components.LLMResponse]](../../models/components/llmresponse.md) | :heavy_minus_sign: | Successful Response |

0 commit comments

Comments
 (0)