Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.382.0 (#3)
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 9716da1 commit 9d48b50
Show file tree
Hide file tree
Showing 10 changed files with 714 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ python -m pip install --upgrade pip
pip install -e .

# Generate starter usage sample with speakeasy
speakeasy generate usage -s https://raw.githubusercontent.com/livepeer/ai-worker/main/runner/gateway.openapi.yaml -l python -o samples/root.py
speakeasy generate usage -s https://raw.githubusercontent.com/livepeer/ai-worker/main/runner/gateway.openapi.yaml -l python -o samples/root.py
10 changes: 5 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 2d5dbf5a-62be-411a-9c7b-bc7b6dc79e13
management:
docChecksum: cd6c43d2e31a6a23e22275e50c38d52e
docChecksum: 130845ee701d46932641282f72ec57ab
docVersion: v0.1.2
speakeasyVersion: 1.379.0
generationVersion: 2.404.3
releaseVersion: 0.1.5
configChecksum: 35690181912086c4003337e1ec0bd202
speakeasyVersion: 1.382.0
generationVersion: 2.404.11
releaseVersion: 0.1.6
configChecksum: 854f77d98a5a18662518beffbd1f9e41
repoURL: https://github.com/livepeer/livepeer-ai-python.git
installationURL: https://github.com/livepeer/livepeer-ai-python.git
features:
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
python:
version: 0.1.5
version: 0.1.6
additionalDependencies:
dev: {}
main: {}
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:
livepeer_ai-OAS:
sourceNamespace: livepeer-ai-oas
sourceRevisionDigest: sha256:6bd4223c4f6c0a9963663242f118035124c716e7c436049608219d24717cf099
sourceBlobDigest: sha256:a025967b0b9169763c785bb89478cb7716f70241d4e11d762734f3655b7fb0e5
sourceRevisionDigest: sha256:dbea8467cf8e1a0ef0cf767996b061733413ffc0b2a5857661ad41e0a51bd1b6
sourceBlobDigest: sha256:25056b91ebfc680137633064f5f3d767eb0bf6541a873d9e342013ed06a636ee
tags:
- latest
- main
targets:
livepeer-ai:
source: livepeer_ai-OAS
Expand All @@ -16,11 +17,11 @@ targets:
livepeer-ai-python:
source: livepeer_ai-OAS
sourceNamespace: livepeer-ai-oas
sourceRevisionDigest: sha256:6bd4223c4f6c0a9963663242f118035124c716e7c436049608219d24717cf099
sourceBlobDigest: sha256:a025967b0b9169763c785bb89478cb7716f70241d4e11d762734f3655b7fb0e5
sourceRevisionDigest: sha256:dbea8467cf8e1a0ef0cf767996b061733413ffc0b2a5857661ad41e0a51bd1b6
sourceBlobDigest: sha256:25056b91ebfc680137633064f5f3d767eb0bf6541a873d9e342013ed06a636ee
codeSamplesNamespace: code-samples-python-livepeer-python
codeSamplesRevisionDigest: sha256:901ab5f5b4d211b224c6482b451f186affa42c56cdf08c25f191f875146987d5
outLocation: /home/ricks/development/livepeer/ai/livepeer-ai-python
codeSamplesRevisionDigest: sha256:38b96e9022d981c971387eb31adab018ee4a6db659c8544a926b00533be515bf
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 @@ -225,14 +225,15 @@ You can override the default server globally by passing a server index to the `s
| # | Server | Variables |
| - | ------ | --------- |
| 0 | `https://dream-gateway.livepeer.cloud` | None |
| 1 | `https://livepeer.studio/api/beta/generate` | None |

#### Example

```python
from livepeer_ai import LivepeerAI

s = LivepeerAI(
server_idx=0,
server_idx=1,
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
)

Expand Down
10 changes: 9 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,12 @@ Based on:
- OpenAPI Doc
- Speakeasy CLI 1.377.0 (2.404.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.1.4] .
- [python v0.1.4] .

## 2024-08-29 00:15:09
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.382.0 (2.404.11) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.1.6] .
128 changes: 106 additions & 22 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,117 @@ info:
title: CodeSamples overlay for python target
version: 0.0.0
actions:
- target: $["paths"]["/audio-to-text"]["post"]
update:
"x-codeSamples":
- "lang": "python"
"label": "audio_to_text"
"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"
- target: $["paths"]["/text-to-image"]["post"]
update:
"x-codeSamples":
- "lang": "python"
"label": "text_to_image"
"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"
x-codeSamples:
- lang: python
label: text_to_image
source: |-
from livepeer_ai import LivepeerAI
s = LivepeerAI(
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
)
res = s.text_to_image(request={
"prompt": "<value>",
})
if res.image_response is not None:
# handle response
pass
- target: $["paths"]["/image-to-image"]["post"]
update:
"x-codeSamples":
- "lang": "python"
"label": "image_to_image"
"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"
x-codeSamples:
- lang: python
label: image_to_image
source: |-
from livepeer_ai import LivepeerAI
s = LivepeerAI(
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
)
res = s.image_to_image(request={
"prompt": "<value>",
"image": {
"file_name": "your_file_here",
"content": open("<file_path>", "rb"),
},
})
if res.image_response is not None:
# handle response
pass
- target: $["paths"]["/image-to-video"]["post"]
update:
"x-codeSamples":
- "lang": "python"
"label": "image_to_video"
"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"
x-codeSamples:
- lang: python
label: image_to_video
source: |-
from livepeer_ai import LivepeerAI
s = LivepeerAI(
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
)
res = s.image_to_video(request={
"image": {
"file_name": "your_file_here",
"content": open("<file_path>", "rb"),
},
})
if res.video_response is not None:
# handle response
pass
- target: $["paths"]["/upscale"]["post"]
update:
"x-codeSamples":
- "lang": "python"
"label": "upscale"
"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"
x-codeSamples:
- lang: python
label: upscale
source: |-
from livepeer_ai import LivepeerAI
s = LivepeerAI(
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
)
res = s.upscale(request={
"prompt": "<value>",
"image": {
"file_name": "your_file_here",
"content": open("<file_path>", "rb"),
},
})
if res.image_response is not None:
# handle response
pass
- target: $["paths"]["/audio-to-text"]["post"]
update:
x-codeSamples:
- lang: python
label: audio_to_text
source: |-
from livepeer_ai import LivepeerAI
s = LivepeerAI(
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
)
res = s.audio_to_text(request={
"audio": {
"file_name": "your_file_here",
"content": open("<file_path>", "rb"),
},
})
if res.text_response is not None:
# handle response
pass
Loading

0 comments on commit 9d48b50

Please sign in to comment.