[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

Closed
opened 2026-11-04 01:56:25 +07:00 by bsakaguchi · 1 comment
Owner

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's GET /props reports chat_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 same serve/server.py (the spawn in native-control.mjs), so the values exist. The app's port never passes them on:

  • GET /v1/models on the native path (apps/host/server/index.mjs, the owned_by: 'strata' reply) sends only instanceId, gpus, label and aliases.
  • GET /props isn't forwarded (only chat, messages and responses are), so it returns the app's HTML page.
  • GET /api/native instances carry vision and context but no tool fields. Its top-level capabilities are engine features (responses, updates, ...).
  • The instance's own /props needs the per-instance key, which clients don't get.
  • The share listener admits only /v1/models, /v1/chat/completions and /v1/messages (local-share.mjs), so /v1/models is 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/models entry, e.g. meta.chat_template_caps, and to the instance in /api/native next to vision. Optionally, also add an OpenRouter-style "supported_parameters": ["tools", "tool_choice"] when supports_tools is 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.

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`'s `GET /props` reports `chat_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 same `serve/server.py` (the spawn in `native-control.mjs`), so the values exist. The app's port never passes them on: - `GET /v1/models` on the native path (`apps/host/server/index.mjs`, the `owned_by: 'strata'` reply) sends only `instanceId`, `gpus`, `label` and `aliases`. - `GET /props` isn't forwarded (only chat, messages and responses are), so it returns the app's HTML page. - `GET /api/native` instances carry `vision` and `context` but no tool fields. Its top-level `capabilities` are engine features (`responses`, `updates`, ...). - The instance's own `/props` needs the per-instance key, which clients don't get. - The share listener admits only `/v1/models`, `/v1/chat/completions` and `/v1/messages` (`local-share.mjs`), so `/v1/models` is 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/models` entry, e.g. `meta.chat_template_caps`, and to the instance in `/api/native` next to `vision`. Optionally, also add an OpenRouter-style `"supported_parameters": ["tools", "tool_choice"]` when `supports_tools` is 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.
Author
Owner

@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:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6660722375 --> @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: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2072
No description provided.