multi-modal-mcp 0.0.4 → 0.0.5
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/config.js
CHANGED
|
@@ -54,9 +54,9 @@ class VideoGenerationTool extends MCPTool {
|
|
|
54
54
|
.default('1024x1024')
|
|
55
55
|
.describe('视频分辨率,默认1024x1024'),
|
|
56
56
|
fps: z
|
|
57
|
-
.
|
|
57
|
+
.enum(['30', '60'])
|
|
58
58
|
.optional()
|
|
59
|
-
.default(30)
|
|
59
|
+
.default('30')
|
|
60
60
|
.describe('视频帧率(FPS),可选值为 30 或 60,默认30'),
|
|
61
61
|
});
|
|
62
62
|
/**
|
|
@@ -70,9 +70,9 @@ class VideoGenerationTool extends MCPTool {
|
|
|
70
70
|
quality: input.quality,
|
|
71
71
|
with_audio: input.withAudio,
|
|
72
72
|
watermark_enabled: input.watermarkEnabled,
|
|
73
|
-
image_url: input.imageUrl,
|
|
73
|
+
// image_url: input.imageUrl,
|
|
74
74
|
size: input.size,
|
|
75
|
-
fps: input.fps,
|
|
75
|
+
fps: parseInt(String(input.fps)),
|
|
76
76
|
};
|
|
77
77
|
const apiResponse = (await http.post('/videos/generations', requestData));
|
|
78
78
|
const taskId = apiResponse.id;
|
|
@@ -89,7 +89,7 @@ class VideoGenerationTool extends MCPTool {
|
|
|
89
89
|
*/
|
|
90
90
|
async pollTaskStatus(taskId) {
|
|
91
91
|
const startTime = Date.now();
|
|
92
|
-
const timeout = 60000;
|
|
92
|
+
const timeout = 60000 * 3;
|
|
93
93
|
while (true) {
|
|
94
94
|
const elapsedTime = Date.now() - startTime;
|
|
95
95
|
if (elapsedTime >= timeout)
|