Commit 589de36a authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: #1705

parent 86bc0c8c
...@@ -75,6 +75,7 @@ ...@@ -75,6 +75,7 @@
}; };
const updateConfigHandler = async () => { const updateConfigHandler = async () => {
if (TTSEngine === 'openai') {
const res = await updateAudioConfig(localStorage.token, { const res = await updateAudioConfig(localStorage.token, {
url: OpenAIUrl, url: OpenAIUrl,
key: OpenAIKey key: OpenAIKey
...@@ -84,6 +85,7 @@ ...@@ -84,6 +85,7 @@
OpenAIUrl = res.OPENAI_API_BASE_URL; OpenAIUrl = res.OPENAI_API_BASE_URL;
OpenAIKey = res.OPENAI_API_KEY; OpenAIKey = res.OPENAI_API_KEY;
} }
}
}; };
onMount(async () => { onMount(async () => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment