github mlc-ai/xgrammar v0.2.7

7 hours ago

Highlights since v0.2.6:

  • Add the DeepSeek V4.1 structural tag (deepseek_v4_1) and the deepseek_v4_1_xml schema style for the spaced DSML tags used by DeepSeek-V4.1-Flash, exposed through Python, C++, and TypeScript and aligned with the official encoder and tokenizer (#885). Correlate each parameter's string="true|false" attribute with its value type across unions, mixed enums, references, and dynamic properties, and memoize $ref parameter rules so recursive references terminate (#889).
  • Add the MiniMax M3 tool-call structural tag (minimax_m3_xml) (#713), and a parallel_tool_calls parameter for the builtin structural tags (#892).
  • Add canonical recursive Any support for Cohere XML (#872), and memoize Cohere parameter wrappers so unions that refer back to themselves through $ref no longer overflow the stack (#890).
  • Honor the additionalProperties value schema when propertyNames is also present (#836).
  • Compile FromLark under C++20 (#878).
  • Document project governance and the release policy (#887).

Full changelog: v0.2.6...v0.2.7

Don't miss a new xgrammar release

NewReleases is sending notifications on new releases.