Skip to content

Commit

Permalink
2.22.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Dooy committed Dec 31, 2024
1 parent 8e52250 commit 49d088a
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 11 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chatgpt-web-midjourney-proxy",
"version": "2.22.8",
"version": "2.22.9",
"private": false,
"description": "ChatGPT Web Midjourney Proxy",
"author": "Dooy <ydlhero@gmail.com>",
Expand Down Expand Up @@ -51,12 +51,12 @@
"vue-waterfall-plugin-next": "^2.3.1"
},
"devDependencies": {
"@openai/realtime-api-beta": "github:dooy/openai-realtime-api-beta",
"@openai/realtime-wavtools": "github:dooy/openai-realtime-wavtools",
"@antfu/eslint-config": "^0.35.3",
"@commitlint/cli": "^17.4.4",
"@commitlint/config-conventional": "^17.4.4",
"@iconify/vue": "^4.1.0",
"@openai/realtime-api-beta": "github:dooy/openai-realtime-api-beta",
"@openai/realtime-wavtools": "github:dooy/openai-realtime-wavtools",
"@tauri-apps/cli": "^1.5.11",
"@types/crypto-js": "^4.1.1",
"@types/katex": "^0.16.0",
Expand Down
9 changes: 5 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.22.8"
"version": "2.22.9"
},
"tauri": {
"allowlist": {
Expand Down
1 change: 1 addition & 0 deletions src/store/homeStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export interface gptServerType{
TAB_VIDEO?:string
TTS_VOICE?:string
REALTIME_SYSMSG?:string
REALTIME_MODEL?:string
REALTIME_IS_WHISPER?:boolean
TAB_MUSIC?:string

Expand Down
8 changes: 5 additions & 3 deletions src/views/wav/realtime.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,18 @@ const go= async()=>{
ms.error("baseUrl is null");
return;
}
//ms.info("go");
//console.log("RealtimeClient", st.value.apikey )
clientRef.value= new RealtimeClient( {
apiKey:st.value.apikey,
dangerouslyAllowAPIKeyInBrowser: true,
baseUrl: st.value.baseUrl,
model: gptServerStore.myData.REALTIME_MODEL?gptServerStore.myData.REALTIME_MODEL: 'gpt-4o-realtime-preview-2024-10-01'
}
)
}
mlog("go", st.value.apikey )
//mlog("go", st.value.apikey )
const client= clientRef.value
const wavRecorder= wavRecorderRef.value
const wavStreamPlayer= wavStreamPlayerRef.value
Expand Down
9 changes: 9 additions & 0 deletions src/views/wav/wavSetting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ const voiceList= computed(()=>{
for(let o of "alloy,echo,shimmer".split(/[ ,]+/ig))rz.push({label:o,value:o})
return rz;
});
const modelList= computed(()=>{
let rz=[]; //'alloy','shimmer','echo'
for(let o of "gpt-4o-realtime-preview-2024-12-17,gpt-4o-mini-realtime-preview-2024-12-17,gpt-4o-realtime-preview-2024-10-01".split(/[ ,]+/ig))rz.push({label:o,value:o})
return rz;
});
</script>
<template>
<div class="w-full ">
Expand Down Expand Up @@ -54,6 +59,10 @@ const voiceList= computed(()=>{
<div >{{ $t('mj.tts_voice') }}</div>
<n-select v-model:value="gptServerStore.myData.TTS_VOICE" :options="voiceList" size="small" class="!w-[50%]" />
</section>
<section class="mb-4 flex justify-between items-center" >
<div >Model</div>
<n-select v-model:value="gptServerStore.myData.REALTIME_MODEL" :options="modelList" size="small" class="!w-[70%]" />
</section>

<section class="mb-4" >
<div>{{ $t('mjchat.role') }}</div>
Expand Down

0 comments on commit 49d088a

Please sign in to comment.