mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
refac
This commit is contained in:
parent
653562d660
commit
b4738d1a2e
1 changed files with 5 additions and 0 deletions
|
|
@ -778,6 +778,11 @@
|
|||
};
|
||||
|
||||
const setProviderDownloadConnections = async () => {
|
||||
if ($user?.role !== 'admin') {
|
||||
providerDownloadConnections = [];
|
||||
return;
|
||||
}
|
||||
|
||||
const openaiConfig = await getOpenAIConfig(localStorage.token).catch(() => null);
|
||||
providerDownloadConnections =
|
||||
openaiConfig?.ENABLE_OPENAI_API
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue