]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
webui: load the model selected via ?model= when ?load=true (#26707)
authorEmanuil Rusev <redacted>
Fri, 7 Aug 2026 13:31:40 +0000 (16:31 +0300)
committerGitHub <redacted>
Fri, 7 Aug 2026 13:31:40 +0000 (15:31 +0200)
commitf4f7758cae656c0252b40a469477dfc9b3e42532
tree276b223947cde6f70c8bbeb1f0e52c134fa34764
parent34e9ee57f59d680db718e3a3466caceef7c24932
webui: load the model selected via ?model= when ?load=true (#26707)

* webui: load the model selected via ?model=

Opening the WebUI with ?model= selects the model but doesn't load it. The load only starts when you send your first message, so you wait for it then.

This loads it as soon as the page opens, while you're still typing your prompt. It's what the model dropdown already does, and it isn't awaited, so the UI still works while the model loads.

This is the path the Llama macOS app uses to open the WebUI, so it's a common way in.

* webui: gate the load behind ?load=true

Loading on landing is opt-in, so a plain ?model= link behaves as before and doesn't allocate memory on its own.

* webui: name the chat URL params

Collects the query params the chat routes read into a URL_PARAMS constant, instead of repeating the literals across three files. NEW_CHAT_PARAM folds into it.
tools/ui/src/lib/components/app/dialogs/DialogModelNotAvailable.svelte
tools/ui/src/lib/constants/routes.ts
tools/ui/src/routes/(chat)/+page.svelte
tools/ui/src/routes/(chat)/chat/[id]/+page.svelte