Skip to content

v1.1.0

Latest

Choose a tag to compare

@deusbr deusbr released this 23 Nov 22:05

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 object properties/additionalProperties stripping, array item coercion, stringified JSON array/object coercion, union type arrays, integer-formatted floats ("10.0"), and case-insensitive enum normalization.
  • Text-to-tool-call recovery (lib/proxy.cjs & lib/bench.cjs): Converts <tool_call> / JSON tool calls emitted inside message.content into structured OpenAI message.tool_calls when tool_calls is absent.
  • Proxy observability & hardening: Adds GET /health and GET /stats, forwards Authorization headers, enforces request timeouts (--timeout), and bounds payload size.
  • Expanded benchmark suite: Expands built-in scenarios from 2 to 5 cases and reports strictPassRate alongside passRate.