Skip to content

Commit

Permalink
2.21.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Dooy committed Oct 31, 2024
1 parent 15ef8e4 commit 69dd0f8
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 5 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.9
- 😄 新增:mj 默认版本为6.1,填写的有保存下次打开 可以重新载入
- 🐞 修复:默认语言(第一次载入的时候)会根据浏览器语言对应,目前支持 中文简体、英语、中文繁体、法语、俄语、韩语、土耳其语、越南语 如果没在这个列表内则为英语

# 2.21.8
- 😄 新增:flux.1.1-pro 画图模型
- 😄 新增:runway3 支持 参考视频
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.8",
"version": "2.21.9",
"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.8"
"version": "2.21.9"
},
"tauri": {
"allowlist": {
Expand Down
21 changes: 20 additions & 1 deletion src/store/modules/app/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,26 @@ export interface AppState {
}

export function defaultSetting(): AppState {
return { siderCollapsed: false, theme: homeStore.myData.session.theme=='light'?'light': 'auto', language: 'zh-CN' }
const userLang = navigator.language || navigator.userLanguage;
let content:Language= 'en-US';
if (userLang.startsWith('zh-HK') || userLang.startsWith('zh-TW')) {
content = 'zh-TW'; // 繁体中文
} else if (userLang.startsWith('zh')) {
content = 'zh-CN'; // 简体中文
} else if (userLang.startsWith('fr')) {
content = 'fr-FR'; // 法语
} else if (userLang.startsWith('ko')) {
content = 'ko-KR'; // 韩语
} else if (userLang.startsWith('ru')) {
content = 'ru-RU'; // 俄文
} else if (userLang.startsWith('vi')) {
content = 'vi-VN'; // 越南语
} else if (userLang.startsWith('tr')) {
content = 'tr-TR'; // 土耳其语
} else {
content = 'en-US'; // 英语
}
return { siderCollapsed: false, theme: homeStore.myData.session.theme=='light'?'light': 'auto', language: content }
}

export function getLocalSetting(): AppState {
Expand Down
16 changes: 15 additions & 1 deletion src/views/mj/aiDrawInputItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const vf=[{s:'width: 100%; height: 100%;',label:'1:1'}
,{s:'width: 50%; height: 100%;',label:'9:16'}
];
const f=ref({bili:-1, quality:'',view:'',light:'',shot:'',style:'', styles:'',version:'--v 6.0',sref:'',cref:'',cw:'',});
const f=ref({bili:-1, quality:'',view:'',light:'',shot:'',style:'', styles:'',version:'--v 6.1',sref:'',cref:'',cw:'',});
const st =ref({text:'',isDisabled:false,isLoad:false
,fileBase64:[],bot:'',showFace:false,upType:''
});
Expand Down Expand Up @@ -203,8 +203,22 @@ watch(()=>homeStore.myData.act,(n)=>{
// n=='copy' && copy2();
n=='same2' && same2();
});
watch(()=>f.value,(n)=>{
mlog("变化", n )
localStorage.setItem("mjinput", JSON.stringify(n))
},{deep:true} );
onMounted(()=>{
homeStore.myData.act=='same2' && same2();
let minput= localStorage.getItem('mjinput')
if(minput ){
try {
const a=JSON.parse(minput)
f.value=a
} catch (error) {
mlog("错误", error )
}
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/views/mj/aiModel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ model:[ 'gpt-4-turbo-2024-04-09','o1-preview','o1-mini','o1-preview-2024-09-12',
,`gpt-4-vision-preview`,`gpt-3.5-turbo-1106` ,'gpt-3.5-turbo-0125'
,'gpt-3.5-turbo-0301','gpt-3.5-turbo-0613','gpt-4-all','gpt-3.5-net'
,'gemini-pro',"gemini-pro-vision",'gemini-pro-1.5',"gemini-1.5-pro-exp-0801"
,'claude-3-5-sonnet-20241022','claude-3-sonnet-20240229','claude-3-opus-20240229','claude-3-haiku-20240307','claude-3-5-sonnet-20240620','','suno-v3'
,'claude-3-5-sonnet-20241022','claude-3-sonnet-20240229','claude-3-opus-20240229','claude-3-haiku-20240307','claude-3-5-sonnet-20240620','suno-v3'
]
,maxToken:4096
});
Expand Down

0 comments on commit 69dd0f8

Please sign in to comment.