Before the quickrun (Run) button fires /api/model/serve, ask the deps API whether the chosen backend (vllm / sglang / llama_cpp) is actually installed on the target server. If not: - Toast: '<backend> not installed on <host>. Opening Dependencies …' - Route the user into the Dependencies tab via the existing _openCookbookDependencies helper (now exported as openCookbookDependencies) - Auto-expand the recipe panel for that backend - Pre-select the user's model in the panel's picker so the right recipe is highlighted out of the box The serve task is suppressed; the Run button is re-enabled. Once the install task finishes in Running, the user clicks Run again. cookbook-diagnosis.js: openCookbookDependencies takes an opts object that, when expandRecipe is set, finds the row's caret and clicks it, then matches a recipe label by model (currently only MiniMax has a specific entry; the generic fallback stays selected otherwise). |
||
|---|---|---|
| .. | ||
| fonts | ||
| js | ||
| lib | ||
| app.js | ||
| index.html | ||
| login.html | ||
| manifest.json | ||
| style.css | ||
| sw.js | ||