perf(ui): non-blocking model and tool server loading for unreachable connections (#26289)
- Move setModels() and setToolServers() out of the loaded gate in +layout.svelte so the page renders immediately instead of blocking behind slow/unreachable connection timeouts - Track failed Ollama backend URLs from /api/tags and skip them in the subsequent /api/ps fan-out, eliminating a redundant second timeout - Silence the autocomplete toast that fires during the transient empty model state
This commit is contained in:
@@ -1545,7 +1545,7 @@
|
||||
($settings?.promptAutocomplete ?? false)}
|
||||
generateAutoCompletion={async (text) => {
|
||||
if (selectedModelIds.length === 0 || !selectedModelIds.at(0)) {
|
||||
toast.error($i18n.t('Please select a model first.'));
|
||||
return null;
|
||||
}
|
||||
|
||||
const res = await generateAutoCompletion(
|
||||
|
||||
Reference in New Issue
Block a user