mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3931] [Engine] Native-instance /v1/models sends no context window, so OpenAI-compatible clients fall back to defaults #1682
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#1682
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 @nier-miss on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3931
Problem and result
The native-instance path of
GET /v1/models(apps/host/server/index.mjs, theowned_by: "strata"response) returns onlyinstanceId,gpus,labelandaliases. There is no context key, not evenmeta.n_ctx, so any client that sizes its context window from the model list falls back to its own default. The control-server path (serve/server.py) reportsmeta.n_ctx, and #1882 addsmax_model_len/context_lengththere, but the native path is untouched by both.The instance already holds the configured context, so this looks like a serialization gap rather than missing data.
Live response (v0.2.4.1, engine 0.1.47, Gyro-M configured at 512K):
Request
Add the loaded instance's context window to the native
/v1/modelsentries, primary and aliases, ideally under the same names #1882 uses (max_model_lenandcontext_length) plusmeta.n_ctx, so all client conventions are covered by one shape.Repro
curl http://127.0.0.1:<port>/v1/modelswith a native model loaded. No context field in any entry.Environment
Strata 0.2.4.1, Control 0.1.49.1, engine 0.1.47/0.1.48, Windows 11, RTX 5080, Hermes as the affected client.
Related
#1882 (covers
serve/server.pyonly; the author confirmed there that the native path needs the same treatment).@msalsas commented on GitHub (Oct 27, 2026):
Hit this from the monitoring side. An external tool sized its context budget off the shared model list:
GET http://<host>:47832/v1/modelsagainst a shared instance (app 0.2.6, engine 0.1.50, Windows) returns ametawith exactlyinstanceId,gpus,labelandaliases, so the tool fell back to its default context.One thing worth noting while this is open, because it decides where the fix can live: the share listener (
apps/host/server/local-share.mjs) admits only/v1/models,/v1/chat/completionsand/v1/messages, so the models reply is the only channel on the shared port where a client can learn the context size at all.If nobody has it in flight I'll send a small PR that puts
meta.n_ctx(andn_ctx_trainif it's at hand) into the native models reply. Reproduction status: reproduced locally against my own shared instance, output as above.@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. 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.