| | |
| | | setHistory( |
| | | sessions.map((s: any) => ({ |
| | | id: s.id, |
| | | idea: (s.idea || 'Untitled').slice(0, 60), |
| | | idea: (s.title || s.idea || 'Untitled').slice(0, 60), |
| | | style: s.style || '', |
| | | date: s.date |
| | | ? new Date(s.date * 1000).toLocaleDateString('zh-CN') |
| | |
| | | file_path: params.file_path, // 修复:将上传的文件路径传给后端 |
| | | style: params.style, |
| | | video_ratio: params.video_ratio, |
| | | video_resolution: params.video_resolution, |
| | | llm_model: params.llm_model, |
| | | vlm_model: params.vlm_model, |
| | | image_t2i_model: params.image_t2i_model, |
| | |
| | | session_id: result.session_id, |
| | | style: params.style, |
| | | video_ratio: params.video_ratio, |
| | | video_resolution: params.video_resolution, |
| | | llm_model: params.llm_model, |
| | | vlm_model: params.vlm_model, |
| | | image_t2i_model: params.image_t2i_model, |
| | |
| | | image_it2i_model: projectParams?.image_it2i_model, |
| | | video_model: projectParams?.video_model, |
| | | video_ratio: projectParams?.video_ratio, |
| | | video_resolution: projectParams?.video_resolution, |
| | | video_sound: videoSound, |
| | | video_shot_type: videoShotType, |
| | | }; |
| | |
| | | session_id: sessionId, |
| | | style: projectParams?.style, |
| | | video_ratio: projectParams?.video_ratio, |
| | | video_resolution: projectParams?.video_resolution, |
| | | llm_model: projectParams?.llm_model, |
| | | vlm_model: projectParams?.vlm_model, |
| | | image_t2i_model: projectParams?.image_t2i_model, |
| | |
| | | image_t2i_model: projectParams?.image_t2i_model, |
| | | image_it2i_model: projectParams?.image_it2i_model, |
| | | video_model: projectParams?.video_model, |
| | | video_ratio: projectParams?.video_ratio, |
| | | video_ratio: projectParams?.video_ratio, |
| | | video_resolution: projectParams?.video_resolution, |
| | | }; |
| | | |
| | | // 尝试获取场景数 |
| | |
| | | idea: s.idea || '', |
| | | style: s.style || '', |
| | | video_ratio: s.video_ratio || '16:9', |
| | | video_resolution: s.video_resolution || '720P', |
| | | llm_model: s.llm_model || '', |
| | | vlm_model: s.vlm_model || '', |
| | | image_t2i_model: s.image_t2i_model || '', |
| | |
| | | image_it2i_model: projectParams.image_it2i_model, |
| | | video_model: projectParams.video_model, |
| | | video_ratio: projectParams.video_ratio, |
| | | video_resolution: projectParams.video_resolution || '720P', |
| | | enable_concurrency: projectParams.enable_concurrency || false, |
| | | // web_search: projectParams.web_search || false, |
| | | // expand_idea: projectParams.expand_idea || false, |