fix: #1705
This commit is contained in:
1 parent
86bc0c8c73
commit
589de36af7
1 file changed
+2
@@ -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 @@
|
|||||||
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 () => {
|
||||||
|
|||||||
Reference in new issue
Block a user