@decartai/sdk 0.0.41 → 0.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/process/types.d.ts
CHANGED
|
@@ -158,12 +158,6 @@ interface ProcessInputs {
|
|
|
158
158
|
* @default true
|
|
159
159
|
*/
|
|
160
160
|
enhance_prompt?: boolean;
|
|
161
|
-
/**
|
|
162
|
-
* The number of inference steps.
|
|
163
|
-
*
|
|
164
|
-
* @default 50
|
|
165
|
-
*/
|
|
166
|
-
num_inference_steps?: number;
|
|
167
161
|
}
|
|
168
162
|
/**
|
|
169
163
|
* ProcessInputs combined with model-specific inputs.
|
|
@@ -3,7 +3,7 @@ import mitt from "mitt";
|
|
|
3
3
|
|
|
4
4
|
//#region src/realtime/webrtc-connection.ts
|
|
5
5
|
const ICE_SERVERS = [{ urls: "stun:stun.l.google.com:19302" }];
|
|
6
|
-
const AVATAR_SETUP_TIMEOUT_MS =
|
|
6
|
+
const AVATAR_SETUP_TIMEOUT_MS = 3e4;
|
|
7
7
|
var WebRTCConnection = class {
|
|
8
8
|
pc = null;
|
|
9
9
|
ws = null;
|
|
@@ -14,7 +14,7 @@ var WebRTCConnection = class {
|
|
|
14
14
|
constructor(callbacks = {}) {
|
|
15
15
|
this.callbacks = callbacks;
|
|
16
16
|
}
|
|
17
|
-
async connect(url, localStream, timeout
|
|
17
|
+
async connect(url, localStream, timeout, integration) {
|
|
18
18
|
const deadline = Date.now() + timeout;
|
|
19
19
|
this.localStream = localStream;
|
|
20
20
|
const userAgent = encodeURIComponent(buildUserAgent(integration));
|
|
@@ -29,7 +29,7 @@ var WebRTCManager = class {
|
|
|
29
29
|
}
|
|
30
30
|
async connect(localStream) {
|
|
31
31
|
return pRetry(async () => {
|
|
32
|
-
await this.connection.connect(this.config.webrtcUrl, localStream, 6e4, this.config.integration);
|
|
32
|
+
await this.connection.connect(this.config.webrtcUrl, localStream, 6e4 * 5, this.config.integration);
|
|
33
33
|
return true;
|
|
34
34
|
}, {
|
|
35
35
|
retries: 5,
|
package/dist/shared/model.d.ts
CHANGED
|
@@ -69,7 +69,6 @@ declare const modelInputSchemas: {
|
|
|
69
69
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
70
70
|
resolution: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"720p">>>;
|
|
71
71
|
enhance_prompt: z.ZodOptional<z.ZodBoolean>;
|
|
72
|
-
num_inference_steps: z.ZodOptional<z.ZodNumber>;
|
|
73
72
|
}, z.core.$strip>;
|
|
74
73
|
readonly "lucy-fast-v2v": z.ZodObject<{
|
|
75
74
|
prompt: z.ZodString;
|
package/dist/shared/model.js
CHANGED
|
@@ -96,8 +96,7 @@ const modelInputSchemas = {
|
|
|
96
96
|
reference_image: fileInputSchema.optional().describe("Optional reference image to guide what to add to the video (File, Blob, ReadableStream, URL, or string URL)"),
|
|
97
97
|
seed: z.number().optional().describe("The seed to use for the generation"),
|
|
98
98
|
resolution: proV2vResolutionSchema,
|
|
99
|
-
enhance_prompt: z.boolean().optional().describe("Whether to enhance the prompt")
|
|
100
|
-
num_inference_steps: z.number().optional().describe("The number of inference steps")
|
|
99
|
+
enhance_prompt: z.boolean().optional().describe("Whether to enhance the prompt")
|
|
101
100
|
}),
|
|
102
101
|
"lucy-fast-v2v": z.object({
|
|
103
102
|
prompt: z.string().min(1).max(1e3).describe("The prompt to use for the generation"),
|