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

fix: #1705

parent 86bc0c8c
...@@ -75,14 +75,16 @@ ...@@ -75,14 +75,16 @@
}; };
const updateConfigHandler = async () => { const updateConfigHandler = async () => {
const res = await updateAudioConfig(localStorage.token, { if (TTSEngine === 'openai') {
url: OpenAIUrl, const res = await updateAudioConfig(localStorage.token, {
key: OpenAIKey url: OpenAIUrl,
}); key: OpenAIKey
});
if (res) { if (res) {
OpenAIUrl = res.OPENAI_API_BASE_URL; OpenAIUrl = res.OPENAI_API_BASE_URL;
OpenAIKey = res.OPENAI_API_KEY; OpenAIKey = res.OPENAI_API_KEY;
}
} }
}; };
......
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