Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

RaeaCloud.job() casts its upload to Uint8Array<ArrayBuffer> instead of the DOM-only BlobPart, so the client type-checks under Cloudflare Workers' types too (raea-bot drives a box from a Worker); the rest of that change is on cloud-shell.

shinyobjectz4a9646d2ff42
diff --git a/sdk/cloud/src/index.ts b/sdk/cloud/src/index.ts
index c4d34e3f..cf8b0ea1 100644
--- a/sdk/cloud/src/index.ts
+++ b/sdk/cloud/src/index.ts
@@ -132,7 +132,7 @@ export class RaeaCloud {
if (farm.gpu) q.set("gpu", farm.gpu)
if (farm.maxUsd !== undefined) q.set("max_usd", String(farm.maxUsd))
if (farm.media) q.set("media", "1")
- const r = await this.call(`/v1/jobs?${q}`, { method: "POST", body: new Blob([folder as BlobPart]), headers: { "content-type": "application/octet-stream" }, signal })
+ const r = await this.call(`/v1/jobs?${q}`, { method: "POST", body: new Blob([folder as Uint8Array<ArrayBuffer>]), headers: { "content-type": "application/octet-stream" }, signal })
return ((await r.json()) as { id: string }).id
}