refac
This commit is contained in:
@@ -209,13 +209,12 @@
|
|||||||
checkLocalDBChats(),
|
checkLocalDBChats(),
|
||||||
setBanners().catch((e) => console.error('Failed to load banners:', e)),
|
setBanners().catch((e) => console.error('Failed to load banners:', e)),
|
||||||
setTools().catch((e) => console.error('Failed to load tools:', 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.
|
// Tool servers can be slow or unreachable; they are not needed to initialize chat.
|
||||||
// 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));
|
|
||||||
setToolServers().catch((e) => console.error('Failed to load tool servers:', e));
|
setToolServers().catch((e) => console.error('Failed to load tool servers:', e));
|
||||||
|
|
||||||
// Helper function to check if the pressed keys match the shortcut definition
|
// Helper function to check if the pressed keys match the shortcut definition
|
||||||
|
|||||||
Reference in New Issue
Block a user