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:
G30
2026-06-29 12:34:00 -05:00
committed by GitHub
parent 91aea7fe8c
commit c584a4270c
3 changed files with 29 additions and 16 deletions
+1 -1
View File
@@ -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(