Repository navigation
feat(server): inspect resident prompts and report installed models - #1180
Open
Allegro-ma-non-troppo wants to merge 5 commits into
Open
Allegro-ma-non-troppo wants to merge 5 commits into
Allegro-ma-non-troppo wants to merge 5 commits into
Conversation
Allegro-ma-non-troppo
requested a deployment
to
npu-approval
November 29, 2026 04:21 — with
GitHub Actions
Waiting
This branch is waiting to be deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Clients could list models FLM knows about, but could not tell which packages were available locally or retrieve one model by ID. Inspecting the input to a chat turn required running inference.
What changes
GET /healthreturns 200 for a ready chat model and 503 when none is ready. An active generation is not a readiness failure.GET /v1/modelskeeps the full catalog and existing metadata. Each entry addsinstalled, based on local package files, required base and version compatibility. Use?installed=trueto filter,/v1/models/{id}for one entry, or/api/psto find the resident model. Discovery does not pull files or hash the weights.POST /apply-template,/tokenizeand/detokenizeinspect the resident built-in Qwen3 text frontend without entering the accelerator queue. Previewing does not generate, switch models, or alter the conversation cache. Unknown IDs return 404, known nonresident IDs 409, and unsupported resident frontends 501. Unsupported media and tokenizer settings return 400 rather than an approximate result.Behavior compared with other servers
GET /healthVerification
The generation path already exposed the template renderer, so the preview reuses it rather than adding a competing formatter. Exact pre-cache input IDs, not generated token counts, are the parity check.
Linux serving and other diagnostic frontends were not validated. Extending prompt inspection to another frontend requires its own parity test. This change does not implement
/metrics, change/api/tags, or change when a generation request may download a missing model.