Skip to content

Commit 9d48b50

Browse files
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.382.0 (#3)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent 9716da1 commit 9d48b50

10 files changed

Lines changed: 714 additions & 42 deletions

File tree

.devcontainer/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ python -m pip install --upgrade pip
1111
pip install -e .
1212

1313
# Generate starter usage sample with speakeasy
14-
speakeasy generate usage -s https://raw.githubusercontent.com/livepeer/ai-worker/main/runner/gateway.openapi.yaml -l python -o samples/root.py
14+
speakeasy generate usage -s https://raw.githubusercontent.com/livepeer/ai-worker/main/runner/gateway.openapi.yaml -l python -o samples/root.py

.speakeasy/gen.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 2d5dbf5a-62be-411a-9c7b-bc7b6dc79e13
33
management:
4-
docChecksum: cd6c43d2e31a6a23e22275e50c38d52e
4+
docChecksum: 130845ee701d46932641282f72ec57ab
55
docVersion: v0.1.2
6-
speakeasyVersion: 1.379.0
7-
generationVersion: 2.404.3
8-
releaseVersion: 0.1.5
9-
configChecksum: 35690181912086c4003337e1ec0bd202
6+
speakeasyVersion: 1.382.0
7+
generationVersion: 2.404.11
8+
releaseVersion: 0.1.6
9+
configChecksum: 854f77d98a5a18662518beffbd1f9e41
1010
repoURL: https://github.com/livepeer/livepeer-ai-python.git
1111
installationURL: https://github.com/livepeer/livepeer-ai-python.git
1212
features:

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ generation:
1515
auth:
1616
oAuth2ClientCredentialsEnabled: false
1717
python:
18-
version: 0.1.5
18+
version: 0.1.6
1919
additionalDependencies:
2020
dev: {}
2121
main: {}

.speakeasy/workflow.lock

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
speakeasyVersion: 1.379.0
1+
speakeasyVersion: 1.382.0
22
sources:
33
livepeer_ai-OAS:
44
sourceNamespace: livepeer-ai-oas
5-
sourceRevisionDigest: sha256:6bd4223c4f6c0a9963663242f118035124c716e7c436049608219d24717cf099
6-
sourceBlobDigest: sha256:a025967b0b9169763c785bb89478cb7716f70241d4e11d762734f3655b7fb0e5
5+
sourceRevisionDigest: sha256:dbea8467cf8e1a0ef0cf767996b061733413ffc0b2a5857661ad41e0a51bd1b6
6+
sourceBlobDigest: sha256:25056b91ebfc680137633064f5f3d767eb0bf6541a873d9e342013ed06a636ee
77
tags:
88
- latest
9+
- main
910
targets:
1011
livepeer-ai:
1112
source: livepeer_ai-OAS
@@ -16,11 +17,11 @@ targets:
1617
livepeer-ai-python:
1718
source: livepeer_ai-OAS
1819
sourceNamespace: livepeer-ai-oas
19-
sourceRevisionDigest: sha256:6bd4223c4f6c0a9963663242f118035124c716e7c436049608219d24717cf099
20-
sourceBlobDigest: sha256:a025967b0b9169763c785bb89478cb7716f70241d4e11d762734f3655b7fb0e5
20+
sourceRevisionDigest: sha256:dbea8467cf8e1a0ef0cf767996b061733413ffc0b2a5857661ad41e0a51bd1b6
21+
sourceBlobDigest: sha256:25056b91ebfc680137633064f5f3d767eb0bf6541a873d9e342013ed06a636ee
2122
codeSamplesNamespace: code-samples-python-livepeer-python
22-
codeSamplesRevisionDigest: sha256:901ab5f5b4d211b224c6482b451f186affa42c56cdf08c25f191f875146987d5
23-
outLocation: /home/ricks/development/livepeer/ai/livepeer-ai-python
23+
codeSamplesRevisionDigest: sha256:38b96e9022d981c971387eb31adab018ee4a6db659c8544a926b00533be515bf
24+
outLocation: /github/workspace/repo
2425
workflow:
2526
workflowVersion: 1.0.0
2627
speakeasyVersion: latest

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,14 +225,15 @@ You can override the default server globally by passing a server index to the `s
225225
| # | Server | Variables |
226226
| - | ------ | --------- |
227227
| 0 | `https://dream-gateway.livepeer.cloud` | None |
228+
| 1 | `https://livepeer.studio/api/beta/generate` | None |
228229

229230
#### Example
230231

231232
```python
232233
from livepeer_ai import LivepeerAI
233234

234235
s = LivepeerAI(
235-
server_idx=0,
236+
server_idx=1,
236237
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
237238
)
238239

RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,12 @@ Based on:
66
- OpenAPI Doc
77
- Speakeasy CLI 1.377.0 (2.404.0) https://github.com/speakeasy-api/speakeasy
88
### Generated
9-
- [python v0.1.4] .
9+
- [python v0.1.4] .
10+
11+
## 2024-08-29 00:15:09
12+
### Changes
13+
Based on:
14+
- OpenAPI Doc
15+
- Speakeasy CLI 1.382.0 (2.404.11) https://github.com/speakeasy-api/speakeasy
16+
### Generated
17+
- [python v0.1.6] .

codeSamples.yaml

Lines changed: 106 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,117 @@ info:
33
title: CodeSamples overlay for python target
44
version: 0.0.0
55
actions:
6-
- target: $["paths"]["/audio-to-text"]["post"]
7-
update:
8-
"x-codeSamples":
9-
- "lang": "python"
10-
"label": "audio_to_text"
11-
"source": "from livepeer_ai import LivepeerAI\n\ns = LivepeerAI(\n http_bearer=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\n\nres = s.audio_to_text(request={\n \"audio\": {\n \"file_name\": \"your_file_here\",\n \"content\": open(\"<file_path>\", \"rb\"),\n },\n})\n\nif res.text_response is not None:\n # handle response\n pass"
126
- target: $["paths"]["/text-to-image"]["post"]
137
update:
14-
"x-codeSamples":
15-
- "lang": "python"
16-
"label": "text_to_image"
17-
"source": "from livepeer_ai import LivepeerAI\n\ns = LivepeerAI(\n http_bearer=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\n\nres = s.text_to_image(request={\n \"prompt\": \"<value>\",\n})\n\nif res.image_response is not None:\n # handle response\n pass"
8+
x-codeSamples:
9+
- lang: python
10+
label: text_to_image
11+
source: |-
12+
from livepeer_ai import LivepeerAI
13+
14+
s = LivepeerAI(
15+
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
16+
)
17+
18+
19+
res = s.text_to_image(request={
20+
"prompt": "<value>",
21+
})
22+
23+
if res.image_response is not None:
24+
# handle response
25+
pass
1826
- target: $["paths"]["/image-to-image"]["post"]
1927
update:
20-
"x-codeSamples":
21-
- "lang": "python"
22-
"label": "image_to_image"
23-
"source": "from livepeer_ai import LivepeerAI\n\ns = LivepeerAI(\n http_bearer=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\n\nres = s.image_to_image(request={\n \"prompt\": \"<value>\",\n \"image\": {\n \"file_name\": \"your_file_here\",\n \"content\": open(\"<file_path>\", \"rb\"),\n },\n})\n\nif res.image_response is not None:\n # handle response\n pass"
28+
x-codeSamples:
29+
- lang: python
30+
label: image_to_image
31+
source: |-
32+
from livepeer_ai import LivepeerAI
33+
34+
s = LivepeerAI(
35+
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
36+
)
37+
38+
39+
res = s.image_to_image(request={
40+
"prompt": "<value>",
41+
"image": {
42+
"file_name": "your_file_here",
43+
"content": open("<file_path>", "rb"),
44+
},
45+
})
46+
47+
if res.image_response is not None:
48+
# handle response
49+
pass
2450
- target: $["paths"]["/image-to-video"]["post"]
2551
update:
26-
"x-codeSamples":
27-
- "lang": "python"
28-
"label": "image_to_video"
29-
"source": "from livepeer_ai import LivepeerAI\n\ns = LivepeerAI(\n http_bearer=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\n\nres = s.image_to_video(request={\n \"image\": {\n \"file_name\": \"your_file_here\",\n \"content\": open(\"<file_path>\", \"rb\"),\n },\n})\n\nif res.video_response is not None:\n # handle response\n pass"
52+
x-codeSamples:
53+
- lang: python
54+
label: image_to_video
55+
source: |-
56+
from livepeer_ai import LivepeerAI
57+
58+
s = LivepeerAI(
59+
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
60+
)
61+
62+
63+
res = s.image_to_video(request={
64+
"image": {
65+
"file_name": "your_file_here",
66+
"content": open("<file_path>", "rb"),
67+
},
68+
})
69+
70+
if res.video_response is not None:
71+
# handle response
72+
pass
3073
- target: $["paths"]["/upscale"]["post"]
3174
update:
32-
"x-codeSamples":
33-
- "lang": "python"
34-
"label": "upscale"
35-
"source": "from livepeer_ai import LivepeerAI\n\ns = LivepeerAI(\n http_bearer=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\n\nres = s.upscale(request={\n \"prompt\": \"<value>\",\n \"image\": {\n \"file_name\": \"your_file_here\",\n \"content\": open(\"<file_path>\", \"rb\"),\n },\n})\n\nif res.image_response is not None:\n # handle response\n pass"
75+
x-codeSamples:
76+
- lang: python
77+
label: upscale
78+
source: |-
79+
from livepeer_ai import LivepeerAI
80+
81+
s = LivepeerAI(
82+
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
83+
)
84+
85+
86+
res = s.upscale(request={
87+
"prompt": "<value>",
88+
"image": {
89+
"file_name": "your_file_here",
90+
"content": open("<file_path>", "rb"),
91+
},
92+
})
93+
94+
if res.image_response is not None:
95+
# handle response
96+
pass
97+
- target: $["paths"]["/audio-to-text"]["post"]
98+
update:
99+
x-codeSamples:
100+
- lang: python
101+
label: audio_to_text
102+
source: |-
103+
from livepeer_ai import LivepeerAI
104+
105+
s = LivepeerAI(
106+
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
107+
)
108+
109+
110+
res = s.audio_to_text(request={
111+
"audio": {
112+
"file_name": "your_file_here",
113+
"content": open("<file_path>", "rb"),
114+
},
115+
})
116+
117+
if res.text_response is not None:
118+
# handle response
119+
pass

0 commit comments

Comments
 (0)