From 6268f4025b8636966a5051a6b03fd29553f5c17b Mon Sep 17 00:00:00 2001 From: Dooy Date: Wed, 4 Sep 2024 23:39:23 +0800 Subject: [PATCH] v2.20.7 --- changlog.md | 4 +++ package.json | 2 +- src-tauri/tauri.conf.json | 2 +- src/views/luma/runwayInput.vue | 66 +++++++++++++++++++++++++++++++--- src/views/luma/runwayList.vue | 7 ++++ src/views/mj/aiIdeoInput.vue | 12 +++++-- src/views/suno/mcList.vue | 2 +- 7 files changed, 86 insertions(+), 9 deletions(-) diff --git a/changlog.md b/changlog.md index 2b88b4477..6ed94ccca 100644 --- a/changlog.md +++ b/changlog.md @@ -1,6 +1,10 @@ # 功能升级日志 # 计划 +# 2.20.7 +- 😄 新增:runway 可以 extend +- 🐞 修复:ideogram 清空 + # 2.20.6 - 😄 新增: 画图 ideogram 相关模块 diff --git a/package.json b/package.json index 5448cc485..aa43a3813 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chatgpt-web-midjourney-proxy", - "version": "2.20.6", + "version": "2.20.7", "private": false, "description": "ChatGPT Web Midjourney Proxy", "author": "Dooy ", diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 231e055cf..9a7dfceb7 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -8,7 +8,7 @@ }, "package": { "productName": "ChatGPT-MJ", - "version": "2.20.6" + "version": "2.20.7" }, "tauri": { "allowlist": { diff --git a/src/views/luma/runwayInput.vue b/src/views/luma/runwayInput.vue index 3aa4e4780..ab443f174 100644 --- a/src/views/luma/runwayInput.vue +++ b/src/views/luma/runwayInput.vue @@ -2,15 +2,17 @@ import { mlog, upImg } from '@/api'; import { runwayFeed, runwayFetch, runwayUpload } from '@/api/runway'; import { gptServerStore, homeStore } from '@/store'; -import { useMessage,NInput,NButton, NTag,NSelect } from 'naive-ui'; +import { useMessage,NInput,NButton, NTag,NSelect,NPopover } from 'naive-ui'; import { computed, onMounted, ref, watch } from 'vue'; import { SvgIcon } from '@/components/common'; -import { t } from '@/locales'; +import { t } from '@/locales'; +import { RunwayTask } from '@/api/runwayStore'; const fsRef= ref() ; const runway= ref<{image_prompt?:string,seed:number,text_prompt:string}>({image_prompt:'',seed:1675247627,text_prompt:''}); const st= ref({isDo:false,uploading:false, version:'gen2',time:5}); const ms = useMessage(); +const exRunway= ref() async function selectFile(input:any){ mlog("selectFile", input.target.files[0]) const file = input.target.files[0] @@ -94,6 +96,8 @@ const generate= async ()=>{ "assetGroupName": "Generative Video", "init_image": runway.value.image_prompt, "resolution": '720p'// runway.value.image_prompt, + ,"extended_from_task_id":(exRunway.value&&exRunway.value.id)?exRunway.value.id:undefined + ,"init_video": ( exRunway.value && exRunway.value.artifacts && exRunway.value.artifacts[0].url)?exRunway.value.artifacts[0].url:undefined }, // "asTeamId": 17511575 } @@ -112,6 +116,8 @@ const generate= async ()=>{ "resolution": "720p", "image_as_end_frame": false, "assetGroupName": "Generative Video" + ,"extended_from_task_id":(exRunway.value&&exRunway.value.id)?exRunway.value.id:undefined + ,"init_video": ( exRunway.value && exRunway.value.artifacts && exRunway.value.artifacts[0].url)?exRunway.value.artifacts[0].url:undefined } } @@ -122,7 +128,15 @@ const generate= async ()=>{ } if( gen3.options.init_image=='' ){ delete gen3.options.init_image; - //delete gen3.options.resolution; + delete gen3_trubo.options.init_image; + } + if( !gen3.options.init_video ){ + delete gen3.options.init_video; + delete gen3_trubo.options.init_video; + } + if( !gen3.options.extended_from_task_id ){ + delete gen3.options.extended_from_task_id; + delete gen3_trubo.options.extended_from_task_id; } gen3.options.exploreMode= st.value.version=='europa' @@ -164,6 +178,7 @@ const mvOption= [ const clearInput=()=>{ runway.value.image_prompt ='' runway.value.text_prompt ='' + exRunway.value= undefined } watch(()=>st.value.version,(n:string)=>{ gptServerStore.setMyData({RRUNWAY_VERSION:n}) @@ -172,6 +187,13 @@ onMounted(() => { homeStore.setMyData({ms:ms}) st.value.version= gptServerStore.myData.RRUNWAY_VERSION?gptServerStore.myData.RRUNWAY_VERSION: 'gen2' }); + +watch(()=>homeStore.myData.act, (n)=>{ + if(n=='runway.extend'){ + mlog("runway.extend", homeStore.myData.actData ) + exRunway.value = homeStore.myData.actData as RunwayTask + } +});