Skip to content

Commit

Permalink
2.21.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Dooy committed Oct 25, 2024
1 parent 5eccedb commit 15ef8e4
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 7 deletions.
4 changes: 4 additions & 0 deletions changlog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# 功能升级日志

# 计划
# 2.21.8
- 😄 新增:flux.1.1-pro 画图模型
- 😄 新增:runway3 支持 参考视频

# 2.21.7
- 😄 新增:claude-3-5-sonnet-20241022

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chatgpt-web-midjourney-proxy",
"version": "2.21.7",
"version": "2.21.8",
"private": false,
"description": "ChatGPT Web Midjourney Proxy",
"author": "Dooy <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"package": {
"productName": "ChatGPT-MJ",
"version": "2.21.7"
"version": "2.21.8"
},
"tauri": {
"allowlist": {
Expand Down
2 changes: 1 addition & 1 deletion src/locales/zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ export default {
runwayserver:'Runway 接口地址',
setOpenKeyPlaceholder2:'Runway API 的key, 可不填',
endImg:'尾帧图',
runwayinfo:'说明:<ul><li>1. Runway 图片与视频都有有效期</li> <li>2. 请在生成视频后30分钟内将mp4保存到本地</li> <li>3. 过期重新获取,可能存在账号下线而获取失败</li><li>4. Gen3A Turbo 必须带图</li></ul>',
runwayinfo:'说明:<ul><li>1. Runway 图片与视频都有有效期</li> <li>2. 请在生成视频后30分钟内将mp4保存到本地</li> <li>3. 过期重新获取,可能存在账号下线而获取失败</li><li>4. Gen3A Turbo 必须带图或者视频</li><li>5. 参考可以是图或者视频mp4 </li></ul>',
nosup:'暂不支持',
rwgen2:'版本: Gen-2, 价格实惠',
rwgen3:'版本: Gen-3 Alpha',
Expand Down
51 changes: 47 additions & 4 deletions src/views/luma/runwayInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,25 @@ const generate= async ()=>{
,"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
}
}
}
let v_gen3={
"taskType": "europa",
"internal": false,
"options": {
"name": `Gen-3 Alpha ${seed}`,
"seconds": st.value.time,
"text_prompt":runway.value.text_prompt,
"seed":seed,
"exploreMode": true,
"watermark": false,
"enhance_prompt": true,
"video_prompt": runway.value.image_prompt ,
"structure_transformation": 0.3,
"width": 1280,
"height": 768,
"assetGroupName": "Generative Video"
}
}
if( obj.options.gen2Options.image_prompt==''){
Expand All @@ -143,6 +161,7 @@ const generate= async ()=>{
gen3_trubo.options.image_as_end_frame=st.value.image_as_end_frame
gen3.options.exploreMode= st.value.version=='europa'
v_gen3.options.exploreMode= st.value.version=='europa'
let sobj:any = gen3;
if( st.value.version=='gen2' ){
sobj= obj
Expand All @@ -154,6 +173,17 @@ const generate= async ()=>{
return
}
}
if(runway.value.image_prompt && isMp4(runway.value.image_prompt)){
if( st.value.version=='gen2'){
ms.error( 'gen2 不支持视频' )
return
}
v_gen3.taskType='europa'
if( st.value.version=='gen3a_turbo' ){
v_gen3.taskType='gen3a_turbo'
}
sobj= v_gen3
}
// const d= await runwayFetch('/tasks', st.value.version=='gen2'?obj: gen3 )
const d= await runwayFetch('/tasks', sobj )
mlog("runwayGen2",d)
Expand All @@ -164,6 +194,9 @@ const generate= async ()=>{
st.value.isDo=false
}
const isMp4=(url:string)=>{
return url.indexOf('.mp4')>0
}
const mvOption= [
{label: t('video.rwgen2'),value: 'gen2'}
Expand Down Expand Up @@ -251,7 +284,7 @@ watch(()=>homeStore.myData.act, (n)=>{
<div class="pt-1">
<div class="flex justify-between items-end">
<div class=" relative">
<input type="file" @change="selectFile" ref="fsRef" style="display: none" accept="image/jpeg, image/jpg, image/png, image/gif"/>
<input type="file" @change="selectFile" ref="fsRef" style="display: none" accept="image/jpeg, image/jpg, image/png, image/gif, .mp4"/>

<!-- <div v-if="st.version=='europa'"
class="h-[80px] w-[80px] overflow-hidden rounded-sm border border-gray-400/20 flex justify-center items-center"
Expand All @@ -262,16 +295,26 @@ watch(()=>homeStore.myData.act, (n)=>{


<SvgIcon icon="line-md:uploading-loop" class="text-[60px] text-green-300" v-if="st.uploading" ></SvgIcon>
<!-- <video :src="runway.image_prompt" v-else-if="runway.image_prompt && isMp4(runway.image_prompt)" /> -->
<video loop playsinline v-else-if="runway.image_prompt && isMp4(runway.image_prompt)"
referrerpolicy="no-referrer"
class="w-full h-full object-cover" >
<source :src="runway.image_prompt" referrerpolicy="no-referrer" type="video/mp4" >
</video>
<img :src="runway.image_prompt" v-else-if="runway.image_prompt" />
<div class="text-center" v-else >{{ $t('video.selectimg') }}</div>

</div>

<div class=" absolute bottom-[-5px] right-[-15px]" v-if="runway.image_prompt&&st.version!='gen2'">
<NSwitch v-model:value="st.image_as_end_frame" size="small">
<div class=" absolute bottom-[-5px] right-[-15px]" v-if="runway.image_prompt&&st.version!='gen2' ">
<a :href="runway.image_prompt" class="cursor-pointer" target="_blank" v-if="isMp4(runway.image_prompt) ">
<NTag type="success" size="small" class="cursor-pointer" round :bordered="false">Vidoe</NTag>
</a>
<NSwitch v-model:value="st.image_as_end_frame" size="small" v-else>
<template #checked>尾帧</template>
<template #unchecked>首帧</template>
</NSwitch>

</div>
</div>
<div class="text-right ">
Expand Down
1 change: 1 addition & 0 deletions src/views/mj/aiDall.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ model:[
,{ "label": "Flux", "value": "flux" }
,{ "label": "Flux-Dev", "value": "flux-dev" }
,{ "label": "Flux-Pro", "value": "flux-pro" }
,{ "label": "Flux.1.1-Pro", "value": "flux.1.1-pro" }
]
});
const st =ref({isGo:false });
Expand Down

0 comments on commit 15ef8e4

Please sign in to comment.