Repository navigation
Releases
Releases · deusbr/local-tool-bench
v1.1.0
Highlights
- String-safe JSON repair (
lib/repair.cjs): Strips trailing commas strictly outside string literals, ignores<think>...</think>reasoning blocks, extracts<tool_call>/<function_call>XML payloads, and scans balanced JSON objects. - Recursive schema repair: Supports nested
objectproperties/additionalProperties stripping,arrayitem coercion, stringified JSON array/object coercion, uniontypearrays, integer-formatted floats ("10.0"), and case-insensitiveenumnormalization. - Text-to-tool-call recovery (
lib/proxy.cjs&lib/bench.cjs): Converts<tool_call>/ JSON tool calls emitted insidemessage.contentinto structured OpenAImessage.tool_callswhentool_callsis absent. - Proxy observability & hardening: Adds
GET /healthandGET /stats, forwardsAuthorizationheaders, enforces request timeouts (--timeout), and bounds payload size. - Expanded benchmark suite: Expands built-in scenarios from 2 to 5 cases and reports
strictPassRatealongsidepassRate.
v1.0.0
v1.0.0
- Zero-dependency tool-calling benchmark suite evaluating strict vs repair-assisted accuracy for local GGUF/llama.cpp and Ollama models.
- OpenAI-compatible HTTP repair micro-proxy unwrapping markdown JSON fences, stripping trailing commas and unknown properties, and coercing primitive types.
- Automated
node:testsuite (4 tests) and cross-platform GitHub Actions CI matrix.