mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-09 16:09:10 +00:00
refac
This commit is contained in:
parent
989c6c13f5
commit
b6d4baeb7e
1 changed files with 4 additions and 5 deletions
|
|
@ -209,13 +209,12 @@
|
|||
checkLocalDBChats(),
|
||||
setBanners().catch((e) => console.error('Failed to load banners:', e)),
|
||||
setTools().catch((e) => console.error('Failed to load tools:', e)),
|
||||
setUserSettings().catch((e) => console.error('Failed to load user settings:', e))
|
||||
setUserSettings(async () => {
|
||||
await setModels().catch((e) => console.error('Failed to load models:', e));
|
||||
}).catch((e) => console.error('Failed to load user settings:', e))
|
||||
]);
|
||||
|
||||
// Load models and tool servers in the background — don't block page render.
|
||||
// These contact external services (Ollama, OpenAI, tool servers, terminal
|
||||
// servers) that may be slow or unreachable.
|
||||
setModels().catch((e) => console.error('Failed to load models:', e));
|
||||
// Tool servers can be slow or unreachable; they are not needed to initialize chat.
|
||||
setToolServers().catch((e) => console.error('Failed to load tool servers:', e));
|
||||
|
||||
// Helper function to check if the pressed keys match the shortcut definition
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue