Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: 🐝 Update SDK - Generate 0.6.2 #25

Merged
merged 1 commit into from
Jan 31, 2025
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
28 changes: 0 additions & 28 deletions .eslintrc.cjs

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/.eslintcache
/.speakeasy/reports
/react-query
/__tests__
# Speakeasy
Expand Down
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
!/REACT_QUERY.md
!/**/*.ts
!/**/*.js
!/**/*.json
!/**/*.map

/.eslintrc.js
/eslint.config.mjs
/cjs
/.tshy
/.tshy-*
Expand Down
74 changes: 50 additions & 24 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
lockVersion: 2.0.0
id: 8bd6d3b6-cae6-4e55-b72f-6fdc1dbce9a1
management:
docChecksum: 5162ce13f49e729b6efa20dd5cdf32be
docChecksum: 6657dd3e876a909472f364dc1fe34d72
docVersion: 0.0.0
speakeasyVersion: 1.460.3
generationVersion: 2.484.0
releaseVersion: 0.6.1
configChecksum: 3f7609e2eb7caeb1f44841b4805ed0c4
speakeasyVersion: 1.480.0
generationVersion: 2.499.0
releaseVersion: 0.6.2
configChecksum: f41c806c90a2fadee46578cb5e358e89
repoURL: https://github.com/livepeer/livepeer-ai-js.git
installationURL: https://github.com/livepeer/livepeer-ai-js
published: true
features:
typescript:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.11
core: 3.18.12
core: 3.18.20
defaultEnabledRetries: 0.1.0
envVarSecurityUsage: 0.1.2
globalSecurity: 2.82.12
Expand All @@ -28,7 +28,6 @@ features:
unions: 2.85.8
uploadStreams: 0.1.0
generatedFiles:
- .eslintrc.cjs
- .gitattributes
- .npmignore
- FUNCTIONS.md
Expand All @@ -54,9 +53,11 @@ generatedFiles:
- docs/models/components/imagetotextresponse.md
- docs/models/components/livevideotovideoparams.md
- docs/models/components/livevideotovideoresponse.md
- docs/models/components/llmchoice.md
- docs/models/components/llmmessage.md
- docs/models/components/llmrequest.md
- docs/models/components/llmresponse.md
- docs/models/components/llmtokenusage.md
- docs/models/components/loc.md
- docs/models/components/masksresponse.md
- docs/models/components/media.md
Expand All @@ -82,6 +83,7 @@ generatedFiles:
- docs/models/operations/genupscaleresponse.md
- docs/sdks/generate/README.md
- docs/sdks/livepeer/README.md
- eslint.config.mjs
- jsr.json
- package.json
- src/core.ts
Expand Down Expand Up @@ -128,9 +130,11 @@ generatedFiles:
- src/models/components/index.ts
- src/models/components/livevideotovideoparams.ts
- src/models/components/livevideotovideoresponse.ts
- src/models/components/llmchoice.ts
- src/models/components/llmmessage.ts
- src/models/components/llmrequest.ts
- src/models/components/llmresponse.ts
- src/models/components/llmtokenusage.ts
- src/models/components/masksresponse.ts
- src/models/components/media.ts
- src/models/components/mediaurl.ts
Expand Down Expand Up @@ -173,110 +177,132 @@ examples:
genTextToImage:
speakeasy-default-gen-text-to-image:
requestBody:
application/json: {"prompt": "<value>"}
application/json: {"model_id": "", "loras": "", "prompt": "<value>", "height": 576, "width": 1024, "guidance_scale": 7.5, "negative_prompt": "", "safety_check": true, "num_inference_steps": 50, "num_images_per_prompt": 1}
responses:
"200":
application/json: {"images": []}
application/json: {"images": [{"url": "https://hateful-cruelty.name", "seed": 857392, "nsfw": true}]}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422":
application/json: {}
"500":
application/json: {"detail": {"msg": "<value>"}}
genImageToImage:
speakeasy-default-gen-image-to-image:
requestBody:
multipart/form-data: {"prompt": "<value>", "image": {}}
multipart/form-data: {"prompt": "<value>", "image": {"": "x-file: example.file"}, "model_id": "", "loras": "", "strength": 0.8, "guidance_scale": 7.5, "image_guidance_scale": 1.5, "negative_prompt": "", "safety_check": true, "num_inference_steps": 100, "num_images_per_prompt": 1}
responses:
"200":
application/json: {"images": []}
application/json: {"images": [{"url": "https://selfish-operating.name/", "seed": 976514, "nsfw": false}]}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422":
application/json: {}
"500":
application/json: {"detail": {"msg": "<value>"}}
genImageToVideo:
speakeasy-default-gen-image-to-video:
requestBody:
multipart/form-data: {"image": {}}
multipart/form-data: {"image": {"": "x-file: example.file"}, "model_id": "", "height": 576, "width": 1024, "fps": 6, "motion_bucket_id": 127, "noise_aug_strength": 0.02, "safety_check": true, "num_inference_steps": 25}
responses:
"200":
application/json: {"images": []}
application/json: {"images": [{"url": "https://low-handover.name/", "seed": 87160, "nsfw": true}]}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422":
application/json: {}
"500":
application/json: {"detail": {"msg": "<value>"}}
genUpscale:
speakeasy-default-gen-upscale:
requestBody:
multipart/form-data: {"prompt": "<value>", "image": {}}
multipart/form-data: {"prompt": "<value>", "image": {"": "x-file: example.file"}, "model_id": "", "safety_check": true, "num_inference_steps": 75}
responses:
"200":
application/json: {"images": []}
application/json: {"images": [{"url": "https://bogus-typewriter.net", "seed": 311567, "nsfw": false}]}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422":
application/json: {}
"500":
application/json: {"detail": {"msg": "<value>"}}
genAudioToText:
speakeasy-default-gen-audio-to-text:
requestBody:
multipart/form-data: {"audio": {}}
multipart/form-data: {"audio": {"": "x-file: example.file"}, "model_id": "", "return_timestamps": "true"}
responses:
"200":
application/json: {"text": "<value>", "chunks": []}
application/json: {"text": "<value>", "chunks": [{"timestamp": ["<value>", "<value>"], "text": "<value>"}, {"timestamp": [], "text": "<value>"}]}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422":
application/json: {}
"500":
application/json: {"detail": {"msg": "<value>"}}
genSegmentAnything2:
speakeasy-default-gen-segment-anything2:
requestBody:
multipart/form-data: {"image": {}}
multipart/form-data: {"image": {"": "x-file: example.file"}, "model_id": "", "multimask_output": true, "return_logits": true, "normalize_coords": true}
responses:
"200":
application/json: {"masks": "<value>", "scores": "<value>", "logits": "<value>"}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422":
application/json: {}
"500":
application/json: {"detail": {"msg": "<value>"}}
genLLM:
speakeasy-default-gen-LLM:
requestBody:
application/x-www-form-urlencoded: {"prompt": "<value>"}
application/json: {"messages": []}
application/json: {"messages": [], "model": "", "temperature": 0.7, "max_tokens": 256, "top_p": 1, "top_k": -1, "stream": false}
responses:
"200":
application/json: {"response": "<value>", "tokens_used": 60712, "id": "<id>", "model": "Expedition", "created": 755586}
application/json: {"id": "<id>", "model": "Expedition", "created": 755586, "usage": {"prompt_tokens": 348799, "completion_tokens": 332397, "total_tokens": 528534}, "choices": []}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422":
application/json: {}
"500":
application/json: {"detail": {"msg": "<value>"}}
genImageToText:
speakeasy-default-gen-image-to-text:
requestBody:
multipart/form-data: {"image": {}}
multipart/form-data: {"image": {"": "x-file: example.file"}, "prompt": "", "model_id": ""}
responses:
"200":
application/json: {"text": "<value>"}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422":
application/json: {}
"500":
application/json: {"detail": {"msg": "<value>"}}
genLiveVideoToVideo:
speakeasy-default-gen-live-video-to-video:
requestBody:
application/json: {"subscribe_url": "https://soulful-lava.org/", "publish_url": "https://vain-tabletop.biz"}
application/json: {"subscribe_url": "https://soulful-lava.org/", "publish_url": "https://vain-tabletop.biz", "control_url": "", "events_url": "", "model_id": ""}
responses:
"200":
application/json: {"subscribe_url": "https://vain-kiss.name", "publish_url": "https://frail-duffel.com"}
application/json: {"subscribe_url": "https://vain-kiss.name", "publish_url": "https://frail-duffel.com", "control_url": "", "events_url": ""}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422":
application/json: {}
"500":
application/json: {"detail": {"msg": "<value>"}}
genTextToSpeech:
speakeasy-default-gen-text-to-speech:
requestBody:
application/json: {"model_id": "", "text": "", "description": "A male speaker delivers a slightly expressive and animated speech with a moderate speed and pitch."}
responses:
"200":
application/json: {"audio": {"url": "https://accurate-parsnip.net/"}}
"400":
application/json: {"detail": {"msg": "<value>"}}
"422":
application/json: {}
"500":
application/json: {"detail": {"msg": "<value>"}}
examplesVersion: 1.0.0
generatedTests: {}
3 changes: 2 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
typescript:
version: 0.6.1
version: 0.6.2
additionalDependencies:
dependencies:
jest: ^29.7.0
Expand All @@ -25,6 +25,7 @@ typescript:
author: Livepeer
clientServerStatusCodesAsErrors: true
defaultErrorName: SDKError
enableCustomCodeRegions: false
enableReactQuery: false
enumFormat: enum
flattenGlobalSecurity: true
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.460.3
speakeasyVersion: 1.480.0
sources:
livepeer-ai-OAS:
sourceNamespace: livepeer-ai-oas
sourceRevisionDigest: sha256:55ae25143686ab2932be31cf92c1554a5a79646c739274d4600b449cc5206cce
sourceBlobDigest: sha256:3d8f629c40a46ffe8c1284434daf4e7dded2357d015c6f89f0e8ed8179c96d28
sourceRevisionDigest: sha256:3f780bb89b27b717229bf3fb0cc8eafe6ca754e3da17e0f65d6cf8deabcb95e8
sourceBlobDigest: sha256:7c0df39c1c5f0ffe580b63f5dc6cb0f81181f5361a80f63f41314cf81d0f3bf4
tags:
- latest
- speakeasy-sdk-regen-1735257676
- speakeasy-sdk-regen-1736899286
- 0.0.0
targets:
livepeer-ai-ts:
source: livepeer-ai-OAS
sourceNamespace: livepeer-ai-oas
sourceRevisionDigest: sha256:55ae25143686ab2932be31cf92c1554a5a79646c739274d4600b449cc5206cce
sourceBlobDigest: sha256:3d8f629c40a46ffe8c1284434daf4e7dded2357d015c6f89f0e8ed8179c96d28
sourceRevisionDigest: sha256:3f780bb89b27b717229bf3fb0cc8eafe6ca754e3da17e0f65d6cf8deabcb95e8
sourceBlobDigest: sha256:7c0df39c1c5f0ffe580b63f5dc6cb0f81181f5361a80f63f41314cf81d0f3bf4
codeSamplesNamespace: code-samples-typescript-livepeer-ts
codeSamplesRevisionDigest: sha256:c06ade29f551f339be714da92fb09857889be9d6ce3b742795d2d79aad1e924b
codeSamplesRevisionDigest: sha256:b095b4fd79d259a27df817458a7f17eb84321fad3599de4460aa913719fae2b6
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
9 changes: 9 additions & 0 deletions FUNCTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,16 @@ const livepeer = new LivepeerCore({

async function run() {
const res = await generateTextToImage(livepeer, {
modelId: "",
loras: "",
prompt: "<value>",
height: 576,
width: 1024,
guidanceScale: 7.5,
negativePrompt: "",
safetyCheck: true,
numInferenceSteps: 50,
numImagesPerPrompt: 1,
});

switch (true) {
Expand Down
Loading