mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-02 03:59:45 +02:00
refac
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user