kingy tested
Tested repair · llama.cpp + Qwen3-4B · llama.cpp 0.6.0 b11429; Qwen3-4B Q4_K_M; exact hashes in evidence
Check this fix
- Applies when
- The server returns HTTP 500: tools param requires --jinja flag.
- Change to inspect
- In the tested llama-server command, replace the explicit --no-jinja flag with --jinja. Restart that local server with the same model and settings, then validate the complete tool-call task.
- Expected result
- For both the author and separate-agent qualifying runs: 0/3 baseline passes, 3/3 corrected full-task passes and 0/1 reverted passes. All qualifying corrected responses stopped normally and reported zero cached tokens.
- If it still fails
- Keep the original failed output and check the conditions and verification steps below. Retained failed attempt: The original corrected fixture executed the right tool but returned Stock for SKU: 37, failing the strict final-answer check. That failed qualification remains retained.
Before → after in the retained task only:
--no-jinja → --jinja
Tested or reviewed 2026-10-15. Verify the original task on your own version and settings; this case does not prove a universal fix.
Read the verification steps ↓ · Report your outcome ↓Check this failure on your own input
Start with the original example, then replace it with a non-sensitive request and response. Compare the observed condition with the correction below.
Run this case’s local diagnostic
Free browser-local debugger
Why did my AI response fail?
Check an empty answer, context overflow, missing fields, incomplete tool history, cache evidence, Unicode stream framing, or a schema sent to the wrong endpoint. Inspect a proposed change, then verify it against your original task.
Pasted data stays in this tab. This debugger makes no API calls, executes no tools, and saves no inputs. Diagnosis does not prove a correction works on your setup.
Try a retained example or paste your own JSON below.
What to verify after the correction
Loading local debugger…
Enter the full runtime and build to compare its exact text with the documented case. A match does not verify your model, configuration or repair; check the other case conditions too. The comparison status and documented version, but not your input, are included in the diagnosis download. For JSON or CSV, check the output in Output Preflight after a change; this does not establish factual accuracy.
Evidence and supported scope
Rules reuse the ten completed pilot repairs listed below. Model tests used pinned llama.cpp 0.6.0 b11429 and Qwen3-4B Q4_K_M on one Mac. The first four have separate-agent reruns on that Mac; the remaining six have same-agent repeats. No second-machine, human reproduction, or universal compatibility is claimed. Example previews replay retained data; they run no new model inference.
Malformed JSON, conflicting schemas and unsupported response shapes remain unresolved. A parseable response can still contain wrong facts. Schema-envelope proposals preserve the supplied schema; they do not establish general schema support.
- llama.cpp rejects tool calls: tools param requires --jinja flag
- Request exceeds the available context size: how to fix llama.cpp
- Qwen3 returns reasoning but no visible answer when its output cap runs out
- Schema-constrained JSON omits a required action field
- Qwen3 schema request fails with an old assistant prefill
- Warm llama.cpp prompt cache leaves tool arguments incomplete at a fixed output cap
- Incomplete tool-call JSON makes the next llama.cpp turn fail
- Python splitlines breaks streamed AI answers containing Unicode separators
- llama.cpp returns a tool call but the client shows an empty answer
- Native llama.cpp completion ignores a Chat API schema envelope
What happened
Symptom
The server returns HTTP 500: tools param requires --jinja flag.
Exact environment and tested conditions
Qualified October 15, 2026 on llama.cpp 0.6.0 build 11429 (d81235049384534c167caea52b85a694f6103d14), Qwen3-4B Q4_K_M.
macOS 26.3 build 25D125, Apple M4 Pro / Mac16,7, 24 GiB unified memory; CPU-only inference.
Separate-agent rerun from a fresh extraction and fresh server processes on the same physical Mac.
Correction
In the tested llama-server command, replace the explicit --no-jinja flag with --jinja. Restart that local server with the same model and settings, then validate the complete tool-call task.
Result
For both the author and separate-agent qualifying runs: 0/3 baseline passes, 3/3 corrected full-task passes and 0/1 reverted passes. All qualifying corrected responses stopped normally and reported zero cached tokens.
What did not work
The original corrected fixture executed the right tool but returned Stock for SKU: 37, failing the strict final-answer check. That failed qualification remains retained.
- Save the complete original command and error before changing it. This repair applies to explicitly disabled Jinja; Jinja is already enabled by default in this build.
- Replace --no-jinja with --jinja. Keep the model file, prompt, tool definition and remaining settings unchanged.
- Check the full flow: the model calls lookup_stock with sku KINGY-017, the synthetic client returns stock 37, and the final answer is exactly Stock for KINGY-017: 37.
- Read README.md in the evidence ZIP for the frozen runner. Its documented independent-audit command inspects retained evidence without loading a model.
Sources & limits
Repair 001: full qualification report and limits
Record checked 2026-10-15.
Same-host separate-agent reproduction, not independent human testing or a second-machine result.
These fixed synthetic tasks and repeated settings do not establish a general reliability rate, other-model behavior or minimum hardware requirements.
Original failures, failed correction proposals, prompts, outputs, settings and checksums remain in the evidence package. Model weights and runtime executables are not included.
Qualification ran October 15, 2026. Publication does not make this a test of later software or model revisions.
This restores one synthetic tool-backed task with no external inventory action; it is not a general solution to tool-calling failures.