Skip to content

v2.2.2 — OpenAI fence-stripping fix

Latest

Choose a tag to compare

@manojmallick manojmallick released this 05 Jul 12:49
a61af46

Fixed

  • OpenAI provider (#69): strip a wrapping ```json code fence from json_schema responses before parsing. OpenAI-compatible proxies and gateways (e.g. those fronting Gemini/Llama) commonly ignore response_format: json_schema and return fenced JSON, which made the boundary judge's strict JSON.parse throw and silently fall back to the heuristic. Structured output now works through these providers; plain (non-schema) completions are untouched.

Full Changelog: v2.2.1...v2.2.2

npm: not yet published for this tag — run npm publish (the prepublishOnly build runs automatically).