{
  "scope": "Public retained example and task-specific verification checklist; no inference or correction executed.",
  "repairId": "fix-llamacpp-jinja-tools",
  "repairURL": "https://kingy.ai/ai-fix-finder/fix-llamacpp-jinja-tools/",
  "example": {
    "request": {
      "model": "kingy-stock-fixture",
      "messages": [
        {
          "role": "system",
          "content": "You are an inventory assistant. Call lookup_stock exactly once for the user's SKU. Never guess the stock count. After the tool result, reply exactly: Stock for KINGY-017: <stock>. Replace only <stock> with the integer from the tool result. Keep KINGY-017 unchanged. Include the final period and no other text."
        },
        {
          "role": "user",
          "content": "What is the current stock count for KINGY-017? Use the inventory tool."
        }
      ],
      "tools": [
        {
          "type": "function",
          "function": {
            "name": "lookup_stock",
            "description": "Look up the current inventory stock count for the specified SKU.",
            "parameters": {
              "type": "object",
              "properties": {
                "sku": {
                  "type": "string"
                }
              },
              "required": [
                "sku"
              ],
              "additionalProperties": false
            }
          }
        }
      ],
      "tool_choice": "auto",
      "temperature": 0,
      "seed": 42,
      "max_tokens": 128,
      "stream": false,
      "cache_prompt": false
    },
    "response": {
      "error": {
        "code": 500,
        "message": "tools param requires --jinja flag",
        "type": "server_error"
      }
    },
    "endpoint": "/v1/chat/completions",
    "context": 2048,
    "repairId": "fix-llamacpp-jinja-tools",
    "runtime": "llamacpp",
    "note": "Retained repair 001 example, originally qualified 2026-10-15. This preview sends no request and does not retest the model.",
    "checks": [
      "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."
    ],
    "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.",
    "evidenceDate": "2026-10-15"
  }
}
