mirror of
https://github.com/open-webui/open-webui
synced 2024-11-25 21:38:43 +00:00
fix: #1705
This commit is contained in:
parent
86bc0c8c73
commit
589de36af7
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user