@@ -41,8 +41,10 @@ export class Jimeng extends plugin {
4141 const helpMsg = isVideo ? `[sf插件][即梦视频API]帮助:
4242支持的ratio: 横图, 竖图, 方图, --1:1, --4:3, --3:4, --16:9, --9:16, --21:9
4343 注意:在图生视频模式下(有图片输入时),ratio参数将被忽略,视频比例由输入图片的实际比例决定。
44- 支持的时长:--5秒, --10秒
4544上传图片数: --upimgs 2
45+ 更换模型: --model [jimeng-video-4.0-pro|jimeng-video-4.0|jimeng-video-3.5-pro|jimeng-video-veo3|jimeng-video-sora2]
46+ 更改时长:--duration [5|8|10|15]
47+ 更改分辨率:--resolution [720p|1080p]
4648引用图片:
4749 无图片 → 文生视频模式
4850 1张图片 → 图生视频模式
@@ -122,8 +124,8 @@ export class Jimeng extends plugin {
122124 "model" : param . model || "jimeng-video-3.0" ,
123125 "prompt" : param . input || "一个女人在花园里跳舞" ,
124126 "ratio" : param . parameters . ratio || "16:9" ,
125- // "resolution": param.parameters.resolution || "720p",
126- "duration" : param . parameters . video_duration || undefined ,
127+ "resolution" : param . parameters . resolution || "720p" ,
128+ "duration" : param . parameters . duration || undefined ,
127129 "filePaths" : e . img && e . img . length > 0 ? e . img . slice ( 0 , 2 ) : undefined , // 最多支持2张图片
128130 }
129131 } else if ( isImg2Img ) {
@@ -160,14 +162,14 @@ export class Jimeng extends plugin {
160162 try {
161163 // 根据模型选择 sessionid
162164 let sessionid ;
163- if ( requestBody . model === "nanobanana" ) {
165+ if ( requestBody . model === "nanobanana" || requestBody . model === "jimeng-video-veo3" || requestBody . model === "jimeng-video-veo3.1" || requestBody . model === "jimeng-video-sora2" ) {
164166 // nanobanana 模型只使用 sessionid_ITN
165167 sessionid = Config . get_random_Str ( config_date . Jimeng . sessionid_ITN , "Jimeng-Sessionid-ITN" ) ;
166168 if ( ! sessionid ) {
167169 e . reply ( '请先使用锅巴设置即梦国际站 Sessionid' , true )
168170 return
169171 }
170- } else if ( requestBody . model === "jimeng-4.5" || requestBody . model === "jimeng-4.1" ) {
172+ } else if ( requestBody . model === "jimeng-4.5" || requestBody . model === "jimeng-4.1" || requestBody . model === "jimeng-video-4.0-pro" || requestBody . model === "jimeng-video-4.0" ) {
171173 // jimeng-4.5 模型只使用 sessionid
172174 sessionid = Config . get_random_Str ( config_date . Jimeng . sessionid , "Jimeng-Sessionid" ) ;
173175 if ( ! sessionid ) {
0 commit comments