mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4583] [Engine] Native-instance /v1/models doesn't carry chat_template_caps, so clients can't tell whether the loaded model supports tools #2072
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#2072
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 @Alihkhawaher on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4583
Area
[Engine] (speed, kernels, models, the server and API)
What do you want to do?
Let a client that reaches a desktop-app model through the app's port (47831, or the share listener) learn whether the loaded model supports tool calls, the way #986 made possible on the Terminal path.
Since #986 (0.1.40.2),
serve/server.py'sGET /propsreportschat_template_caps(supports_tools,supports_tool_calls,supports_parallel_tool_calls,supports_system_role,supports_preserve_reasoning). The desktop app runs each native instance with that sameserve/server.py(the spawn innative-control.mjs), so the values exist. The app's port never passes them on:GET /v1/modelson the native path (apps/host/server/index.mjs, theowned_by: 'strata'reply) sends onlyinstanceId,gpus,labelandaliases.GET /propsisn't forwarded (only chat, messages and responses are), so it returns the app's HTML page.GET /api/nativeinstances carryvisionandcontextbut no tool fields. Its top-levelcapabilitiesare engine features (responses,updates, ...)./propsneeds the per-instance key, which clients don't get./v1/models,/v1/chat/completionsand/v1/messages(local-share.mjs), so/v1/modelsis the only place a shared client could learn it. #3931 makes the same point for the context window.Ask: when an instance turns ready, read its
chat_template_caps(the host already has the instance's port and key). Add it to that model's native/v1/modelsentry, e.g.meta.chat_template_caps, and to the instance in/api/nativenext tovision. Optionally, also add an OpenRouter-style"supported_parameters": ["tools", "tool_choice"]whensupports_toolsis true, since generic OpenAI-compatible clients read that. This is the tools counterpart of #3931 and could land in the same change.Who needs it: anything that finds models through the app's port. In my case, that's an OpenAI-compatible proxy that combines several backends and tells its clients (Cline, the llama.cpp web UI) what each model can do. Qwen3.8-Flash-Next IQ3_S does tool calls fine through the app (
finish_reason: "tool_calls"), but nothing on the app's port says so.What do you do today instead?
Nothing correct. The proxy reports tools as off for Strata models, which is wrong for this model. Assuming they're on would be wrong for any model whose chat template has no tool support.
Environment: Strata 0.2.7 (engine 0.1.52), Windows 10 Pro, Tesla P40 24 GB (runs the instance) + GTX 1070 8 GB, 128 GB RAM.
@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.