Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 34 additions & 21 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
lockVersion: 2.0.0
id: 2d5dbf5a-62be-411a-9c7b-bc7b6dc79e13
management:
docChecksum: a690daf53c97c95bb6c912a2c59f804d
docChecksum: 5162ce13f49e729b6efa20dd5cdf32be
docVersion: 0.0.0
speakeasyVersion: 1.454.0
generationVersion: 2.477.0
releaseVersion: 0.8.0
configChecksum: 404e2a546fe183c10067017df4896733
speakeasyVersion: 1.460.3
generationVersion: 2.484.0
releaseVersion: 0.9.0
configChecksum: 40760f888f8f869e4f9b83ad88469b3f
repoURL: https://github.com/livepeer/livepeer-ai-python.git
installationURL: https://github.com/livepeer/livepeer-ai-python.git
published: true
features:
python:
additionalDependencies: 1.0.0
constsAndDefaults: 1.0.5
core: 5.6.11
core: 5.7.4
defaultEnabledRetries: 0.2.0
envVarSecurityUsage: 0.3.2
globalSecurity: 3.0.2
globalSecurityCallbacks: 1.0.0
globalSecurityFlattening: 1.0.0
globalServerURLs: 3.0.0
globalServerURLs: 3.1.0
multipartFileContentType: 1.0.0
nameOverrides: 3.0.0
nameOverrides: 3.0.1
responseFormat: 1.0.1
retries: 3.0.2
sdkHooks: 1.0.0
Expand All @@ -43,7 +43,6 @@ generatedFiles:
- docs/models/components/bodygenimagetotextimage.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 @@ -55,6 +54,8 @@ generatedFiles:
- docs/models/components/imagetotextresponse.md
- docs/models/components/livevideotovideoparams.md
- docs/models/components/livevideotovideoresponse.md
- docs/models/components/llmmessage.md
- docs/models/components/llmrequest.md
- docs/models/components/llmresponse.md
- docs/models/components/loc.md
- docs/models/components/masksresponse.md
Expand Down Expand Up @@ -103,7 +104,6 @@ generatedFiles:
- src/livepeer_ai/models/components/body_genimagetoimage.py
- src/livepeer_ai/models/components/body_genimagetotext.py
- src/livepeer_ai/models/components/body_genimagetovideo.py
- src/livepeer_ai/models/components/body_genllm.py
- src/livepeer_ai/models/components/body_gensegmentanything2.py
- src/livepeer_ai/models/components/body_genupscale.py
- src/livepeer_ai/models/components/chunk.py
Expand All @@ -112,6 +112,8 @@ generatedFiles:
- src/livepeer_ai/models/components/imagetotextresponse.py
- src/livepeer_ai/models/components/livevideotovideoparams.py
- src/livepeer_ai/models/components/livevideotovideoresponse.py
- src/livepeer_ai/models/components/llmmessage.py
- src/livepeer_ai/models/components/llmrequest.py
- src/livepeer_ai/models/components/llmresponse.py
- src/livepeer_ai/models/components/masksresponse.py
- src/livepeer_ai/models/components/media.py
Expand Down Expand Up @@ -167,7 +169,8 @@ examples:
application/json: {"images": []}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
"422":
application/json: {}
genImageToImage:
speakeasy-default-gen-image-to-image:
requestBody:
Expand All @@ -177,7 +180,8 @@ examples:
application/json: {"images": []}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
"422":
application/json: {}
genImageToVideo:
speakeasy-default-gen-image-to-video:
requestBody:
Expand All @@ -187,7 +191,8 @@ examples:
application/json: {"images": []}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
"422":
application/json: {}
genUpscale:
speakeasy-default-gen-upscale:
requestBody:
Expand All @@ -197,7 +202,8 @@ examples:
application/json: {"images": []}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
"422":
application/json: {}
genAudioToText:
speakeasy-default-gen-audio-to-text:
requestBody:
Expand All @@ -207,7 +213,8 @@ examples:
application/json: {"text": "<value>", "chunks": []}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
"422":
application/json: {}
genSegmentAnything2:
speakeasy-default-gen-segment-anything2:
requestBody:
Expand All @@ -217,17 +224,20 @@ examples:
application/json: {"masks": "<value>", "scores": "<value>", "logits": "<value>"}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
"422":
application/json: {}
genLLM:
speakeasy-default-gen-LLM:
requestBody:
application/x-www-form-urlencoded: {"prompt": "<value>"}
application/json: {"messages": []}
responses:
"200":
application/json: {"response": "<value>", "tokens_used": 60712}
application/json: {"response": "<value>", "tokens_used": 60712, "id": "<id>", "model": "Expedition", "created": 755586}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
"422":
application/json: {}
genImageToText:
speakeasy-default-gen-image-to-text:
requestBody:
Expand All @@ -237,7 +247,8 @@ examples:
application/json: {"text": "<value>"}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
"422":
application/json: {}
genLiveVideoToVideo:
speakeasy-default-gen-live-video-to-video:
requestBody:
Expand All @@ -247,13 +258,15 @@ examples:
application/json: {"subscribe_url": "https://vain-kiss.name", "publish_url": "https://frail-duffel.com"}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
"422":
application/json: {}
genTextToSpeech:
speakeasy-default-gen-text-to-speech:
responses:
"200":
application/json: {"audio": {"url": "https://accurate-parsnip.net/"}}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422": {}
"422":
application/json: {}
generatedTests: {}
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
python:
version: 0.8.0
version: 0.9.0
additionalDependencies:
dev: {}
main: {}
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
speakeasyVersion: 1.454.0
speakeasyVersion: 1.460.3
sources:
livepeer_ai-OAS:
sourceNamespace: livepeer-ai-oas
sourceRevisionDigest: sha256:5576a967f5fc90918cde4ed9f62630a777c3693dcc4b7801ed595dd7d64b6ed8
sourceBlobDigest: sha256:96965175cd37993dd71c66039301a689b5a65b4068d704a3f31b91666c0df03b
sourceRevisionDigest: sha256:bfa0844cf9b7f6b2be182a8a8e3f5d074965a7216fbed68ab570f6e3b58587d5
sourceBlobDigest: sha256:3d8f629c40a46ffe8c1284434daf4e7dded2357d015c6f89f0e8ed8179c96d28
tags:
- latest
- speakeasy-sdk-regen-1732061831
- speakeasy-sdk-regen-1735258605
- 0.0.0
targets:
livepeer-ai:
Expand All @@ -17,10 +17,10 @@ targets:
livepeer-ai-python:
source: livepeer_ai-OAS
sourceNamespace: livepeer-ai-oas
sourceRevisionDigest: sha256:5576a967f5fc90918cde4ed9f62630a777c3693dcc4b7801ed595dd7d64b6ed8
sourceBlobDigest: sha256:96965175cd37993dd71c66039301a689b5a65b4068d704a3f31b91666c0df03b
sourceRevisionDigest: sha256:bfa0844cf9b7f6b2be182a8a8e3f5d074965a7216fbed68ab570f6e3b58587d5
sourceBlobDigest: sha256:3d8f629c40a46ffe8c1284434daf4e7dded2357d015c6f89f0e8ed8179c96d28
codeSamplesNamespace: code-samples-python-livepeer-python
codeSamplesRevisionDigest: sha256:9b2d5f4af79f063e244429955ad927a2efd670b5f9a114608eda2aec86c188ed
codeSamplesRevisionDigest: sha256:40ac599a7c83a23f422adee00f2427e8125723499dc86eb82b70ce7554adb481
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
63 changes: 36 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ with Livepeer(
"prompt": "<value>",
})

if res.image_response is not None:
# handle response
pass
assert res.image_response is not None

# Handle response
print(res.image_response)
```

</br>
Expand All @@ -80,9 +81,10 @@ async def main():
"prompt": "<value>",
})

if res.image_response is not None:
# handle response
pass
assert res.image_response is not None

# Handle response
print(res.image_response)

asyncio.run(main())
```
Expand Down Expand Up @@ -136,9 +138,10 @@ with Livepeer(
},
})

if res.image_response is not None:
# handle response
pass
assert res.image_response is not None

# Handle response
print(res.image_response)

```
<!-- End File uploads [file-upload] -->
Expand All @@ -162,9 +165,10 @@ with Livepeer(
},
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))

if res.image_response is not None:
# handle response
pass
assert res.image_response is not None

# Handle response
print(res.image_response)

```

Expand All @@ -182,9 +186,10 @@ with Livepeer(
"prompt": "<value>",
})

if res.image_response is not None:
# handle response
pass
assert res.image_response is not None

# Handle response
print(res.image_response)

```
<!-- End Retries [retries] -->
Expand Down Expand Up @@ -227,9 +232,10 @@ with Livepeer(
"prompt": "<value>",
})

if res.image_response is not None:
# handle response
pass
assert res.image_response is not None

# Handle response
print(res.image_response)

except errors.HTTPError as e:
# handle e.data: errors.HTTPErrorData
Expand Down Expand Up @@ -269,9 +275,10 @@ with Livepeer(
"prompt": "<value>",
})

if res.image_response is not None:
# handle response
pass
assert res.image_response is not None

# Handle response
print(res.image_response)

```

Expand All @@ -290,9 +297,10 @@ with Livepeer(
"prompt": "<value>",
})

if res.image_response is not None:
# handle response
pass
assert res.image_response is not None

# Handle response
print(res.image_response)

```
<!-- End Server Selection [server] -->
Expand Down Expand Up @@ -401,9 +409,10 @@ with Livepeer(
"prompt": "<value>",
})

if res.image_response is not None:
# handle response
pass
assert res.image_response is not None

# Handle response
print(res.image_response)

```
<!-- End Authentication [security] -->
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,14 @@ Based on:
### Generated
- [python v0.8.0] .
### Releases
- [PyPI v0.8.0] https://pypi.org/project/livepeer-ai/0.8.0 - .
- [PyPI v0.8.0] https://pypi.org/project/livepeer-ai/0.8.0 - .

## 2024-12-31 00:16:39
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.460.3 (2.484.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.9.0] .
### Releases
- [PyPI v0.9.0] https://pypi.org/project/livepeer-ai/0.9.0 - .
14 changes: 8 additions & 6 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ with Livepeer(
"prompt": "<value>",
})

if res.image_response is not None:
# handle response
pass
assert res.image_response is not None

# Handle response
print(res.image_response)
```

</br>
Expand All @@ -33,9 +34,10 @@ async def main():
"prompt": "<value>",
})

if res.image_response is not None:
# handle response
pass
assert res.image_response is not None

# Handle response
print(res.image_response)

asyncio.run(main())
```
Expand Down
Loading