Skip to content

Commit

Permalink
v2.20.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Dooy committed Aug 7, 2024
1 parent 991dc97 commit c2bd463
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
2 changes: 2 additions & 0 deletions changlog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# 功能升级日志

# 计划
# 2.20.1
- 😄 新增:gpt-4o-2024-08-06
# 2.19.10
- 😄 新增:视频 runway gen3 支持图片
- 😄 新增:mj 6.1选项
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.19.10",
"version": "2.20.1",
"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.19.10"
"version": "2.20.1"
},
"tauri": {
"allowlist": {
Expand Down
2 changes: 1 addition & 1 deletion src/api/mjapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ export const canVisionModel= (model:string)=>{
export const isCanBase64Model=(model:string)=>{
//gpt-4o
//customVisionModel
let visionArr=['gemini-pro-vision','gpt-4o','gpt-4o-2024-05-13','gpt-4o-mini','gpt-4o-mini-2024-07-18','gemini-pro-1.5','gpt-4-turbo','gpt-4-turbo-2024-04-09','gpt-4-vision-preview','luma-video','claude-3-5-sonnet-20240620' ,'claude-3-sonnet-20240229','claude-3-opus-20240229', defaultVisionModel() ]
let visionArr=['gemini-pro-vision','gpt-4o-2024-08-06','gpt-4o','gpt-4o-2024-05-13','gpt-4o-mini','gpt-4o-mini-2024-07-18','gemini-pro-1.5','gpt-4-turbo','gpt-4-turbo-2024-04-09','gpt-4-vision-preview','luma-video','claude-3-5-sonnet-20240620' ,'claude-3-sonnet-20240229','claude-3-opus-20240229', defaultVisionModel() ]
if( homeStore.myData.session.customVisionModel ){
homeStore.myData.session.customVisionModel.split(/[ ,]+/ig).map( (v:string)=>{
visionArr.push( v.toLocaleLowerCase() )
Expand Down
1 change: 1 addition & 0 deletions src/api/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const KnowledgeCutOffDate: Record<string, string> = {
"gpt-4o": "2023-10",
"gpt-4o-mini": "2023-10",
"gpt-4o-mini-2024-07-18": "2023-10",
"gpt-4o-2024-08-06": "2023-10",
"gpt-4-turbo": "2023-12",
"gpt-4-turbo-preview": "2023-12",
"claude-3-opus-20240229": "2023-08",
Expand Down
8 changes: 5 additions & 3 deletions src/views/mj/aiModel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const chatSet = new chatSetting( uuid==null?1002:uuid);
const nGptStore = ref( chatSet.getGptConfig() );
const config = ref({
model:[ 'gpt-4-turbo-2024-04-09','gpt-4o-2024-05-13','gpt-4o-mini-2024-07-18','gpt-4o-mini','gpt-4o','gpt-4-turbo','gpt-4-0125-preview','gpt-3.5-turbo',`gpt-4-1106-preview`,`gpt-3.5-turbo-16k`,'gpt-4','gpt-4-0613','gpt-4-32k-0613' ,'gpt-4-32k','gpt-4-32k-0314',`gpt-3.5-turbo-16k-0613`
model:[ 'gpt-4-turbo-2024-04-09','gpt-4o-2024-08-06','gpt-4o-2024-05-13','gpt-4o-mini-2024-07-18','gpt-4o-mini','gpt-4o','gpt-4-turbo','gpt-4-0125-preview','gpt-3.5-turbo',`gpt-4-1106-preview`,`gpt-3.5-turbo-16k`,'gpt-4','gpt-4-0613','gpt-4-32k-0613' ,'gpt-4-32k','gpt-4-32k-0314',`gpt-3.5-turbo-16k-0613`
,`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'
,'claude-3-sonnet-20240229','claude-3-opus-20240229','claude-3-haiku-20240307','claude-3-5-sonnet-20240620','suno-v3'
Expand Down Expand Up @@ -88,6 +88,8 @@ watch(()=>nGptStore.value.model,(n)=>{
let max=4096*2*2;
if( n.indexOf('vision')>-1){
max=4096*2;
}else if( n=='gpt-4o-2024-08-06' ){
max=16384 *2;
}else if( n.indexOf('gpt-4')>-1 || n.indexOf('16k')>-1 ){ //['16k','8k','32k','gpt-4'].indexOf(n)>-1
max=4096*2;
}else if( n.toLowerCase().includes('claude-3') ){
Expand Down Expand Up @@ -130,7 +132,7 @@ onMounted(() => {
</div>
<div class=" flex justify-end items-center w-[80%] max-w-[240px]">
<div class=" w-[200px]"><n-slider v-model:value="nGptStore.talkCount" :step="1" :max="50" /></div>
<div class="w-[40px] text-right">{{ nGptStore.talkCount }}</div>
<div class="w-[50px] text-right">{{ nGptStore.talkCount }}</div>
</div>
</section>
<div class="mb-4 text-[12px] text-gray-300 dark:text-gray-300/20">{{ $t('mjchat.historyToken') }}</div>
Expand All @@ -140,7 +142,7 @@ onMounted(() => {
</div>
<div class=" flex justify-end items-center w-[80%] max-w-[240px]">
<div class=" w-[200px]"><n-slider v-model:value="nGptStore.max_tokens" :step="1" :max="config.maxToken" :min="1" /></div>
<div class="w-[40px] text-right">{{ nGptStore.max_tokens }}</div>
<div class="w-[50px] text-right">{{ nGptStore.max_tokens }}</div>
</div>
</section>
<div class="mb-4 text-[12px] text-gray-300 dark:text-gray-300/20">{{ $t('mjchat.historyTCntInfo') }} </div>
Expand Down

0 comments on commit c2bd463

Please sign in to comment.