mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#2946
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/987
Author: @1it
Created: 10/5/2026
Status: ❌ Closed
Base:
main← Head:serve-props-tool-caps📝 Commits (10+)
5a30024calibrate: the engine's arguments come from the server's engine_args; a failed tuning says why (#447)9f60d13serve, setup: name the small split card that caps the prompt chunk; setup recommends the big card alone (#448)eb8da1d/metrics: each request's speculative draft counts, and their sums in the totals (#457)6a09387setup (--gguf-dir): GGUFs Strata cannot run are named as such, with the --family/--model to use (#444)d6a91e2docs: the Coder is weaker outside code, Chinese/CJK text included; the unpruned sizes for that (#438)d8d4ad3Merge branch 'f-135-eng' into rel-0.1.357b600d5Merge branch 'f-135-small' into rel-0.1.35d9ab843Engine 0.1.35: Windows AMD uses its bundled HIP runtime (#468 #461), the low-RAM resident mode on Windows 32 GB PCs (#467), fixes #460 #459 #446 #447 #457 #448 #444; setup requires it57bd713sycl: pipeline the expert cache's profile fill (model load 3-4x faster)e3bdd74A prompt cancelled mid-read is logged and recorded with the tokens it read (#471)📊 Changes
3 files changed (+63 additions, -18 deletions)
View changed files
📝
docs/DETAILS.md(+2 -2)📝
serve/frontend.py(+22 -15)📝
serve/test_server.py(+39 -1)📄 Description
Fixes #986.
Zed's llama.cpp provider reads
GET /propsto decide whether a model supports tools. Strata already parses Qwen XML tool calls, but omittedchat_template_caps, so Zed showed Tools Unsupported./propsnow reports tools, tool-call history, multiple calls in one assistant turn, the system role, and reasoning preservation using llama.cpp's field names. Capabilities are computed when the active template loads, before concurrent HTTP requests arrive. History checks supply matching tool definitions and parse the probe calls separately from example calls in the instructions. Tool-call history must use Strata's XML format and retain tool results. Rejected or omitted features reportfalse. Expected Jinja errors produce debug diagnostics; unexpected rendering errors surface. The bundled template reports all five capabilities astrue.The docs explain that
supports_preserve_reasoningdescribes retaining older assistantreasoning_contentin the prompt, and that these flags are compatibility hints. Regression coverage includes concurrent discovery requests, error diagnostics, and templates that omit or reject features, require matching tool definitions, support only one call, drop prior reasoning, or use incompatible JSON tool calls. Tests check required capability values while allowing additional keys.Zed's generic OpenAI-compatible provider needs
"capabilities": {"tools": true, "chat_completions": true}in its model settings; this is documented too.Validation on Linux with Python 3.12, Jinja2 3.1.6, regex 2026.9.10, and the optional jsonschema 4.26.0 validator:
python -m unittest discover -s serve -t . -p 'test_*.py' -v: 264 passed, 7 skipped (5 require a model tokenizer; 2 are Windows-only).serve/chat_golden.jsonmatched.git diff --checkpassed.API validation used mock engines; a live Zed session and GPU inference were not exercised.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.