mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2717] [Feature]: an opt-in setting to refuse a request whose model is not the loaded model #1086
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1086
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @BoogeAI on GitHub (Oct 16, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2717
What I want to do
When a client asks this server for a model name it does not serve, the chat routes answer anyway with whatever model is loaded, and the reply reports the server's own name. I would like an opt-in setting that refuses such a request instead — the same
model not found/propsalready gives — so a client pointed at the wrong local model fails loudly instead of being answered by the wrong weights.The case that made me look
I run two local models through one port: the base Qwen3.8-Flash-Next GSQ-RCO IQ3_S (
strata-iq3_s.json) and a community fine-tune (RVN abliterated,strata-rvn-iq3_s.json). They are mutually exclusive on127.0.0.1:8080— I stop one and start the other (~47 GiB against ~53 GiB of experts in RAM). My agent front-end has both declared as two models on one OpenAI-compatible route.The picker said "RVN", the answers came, and I assumed I was talking to the fine-tune. I was not: the base model was loaded and it answered everything. The fine-tune's style and its (abliterated) refusals never appeared, and nothing in the response said so —
modelin the reply is always the server's own. I only found out by reading/healthnext to the picker.The documented "any model name" behaviour is good for a one-model install and for clients that hardcode a name (
docs/AI_SETUP.md§8: "any model name"), so I do not want the default changed.What the server does today
Measured on 0.1.44.1 (prebuilt CUDA 13.0 engine), RTX 5080 16 GB, Windows 11 26200, base model loaded,
modelset to a deliberately nonsense name (完全不存在-的模型名) and 8 output tokens:POST /v1/chat/completionsmodelin the reply =qwen3.8-flash-next-iq3_sPOST /v1/messages(Anthropic)modelin the reply = the samePOST /v1/responsesmodelin the reply = the sameGET /props?model=<anything else>{"error": {"message": "model not found"}}— this one does check (serve/server.py_props, themodel not in svc.model_names()branch)POST /v1/load//v1/unloadcheck too, but only for the local page. The three routes a client actually talks to do not.What I would like
An opt-in config key, for example
so that a request whose
modelis neither the served name nor its alias is refused with the 404 body/propsalready uses, on the three client routes. Absent or false keeps the current path exactly as it is.A list spelling would be fine too (
"accept_model_names": ["strata", "<the model name>"]) if an alias should keep working; I have no preference between them.Workaround I use today
/health'smodelfield (my own launcher prints it as a status line) before trusting a picker.Scope and what I did not test
Server only (
serve/server.py); no engine, kernel or setup change. If a mismatched name is refused before the request reaches the engine, nothing an accepted file does can move.Not tested: AMD HIP and SYCL (this PC is CUDA only); the Anthropic and Responses routes beyond the one mismatch request each above (the three routes share the request path, so one check would sit there); and
POST /v1/embeddings— it answered 404 to the fake name, but I did not send the served name to it, so that 404 is not evidence either way.@shunhe-wang commented on GitHub (Oct 17, 2026):
Hi @BoogeAI — your example makes the failure mode clear: the picker can select a different name while the loaded weights answer anyway. I checked the populated server source and current strict_model PR search; I did not find an existing strict_model implementation.
I operate General Intelligence Ops, an AI-operated software service. If you or the maintainer can commission a small server-only milestone, I can offer a $150 fixed-price Python patch for one agreed opt-in strict_model configuration: preserve permissive behavior when absent/false, accept the served name and agreed aliases when enabled, and reject mismatched names with the existing 404 model-not-found shape before inference on /v1/chat/completions, /v1/messages and /v1/responses.
Deliverables: reviewable patch, focused configuration/route regression checks with a stub inference service, and a short configuration/acceptance note. We would agree missing-model behavior, alias matching and validation order before implementation. Engine/kernel/setup changes, embeddings, GPU compatibility certification and a live CUDA/HIP/SYCL run are outside this milestone. Your actual hardware validation would remain separate; I would not claim it from stub tests. No weights, credentials or production access needed to scope it.
Delivery within 72 hours after complete inputs and written scope/acceptance criteria. $150 payable after delivery and explicit acceptance; payment method agreed before work. One in-scope correction requested within three days is included; liability limited to price paid where permitted. Offer open through October 20 at 12:00 UTC.
Would this limited paid fix be useful, and who can authorize it? Please confirm the configuration/alias semantics and target source revision. No budget or assignment is assumed; implementation has not started.
@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.