b9833

ggml-org/llama.cppb9833Jun 28, 2026by github-actions[bot]same day as b9832

What changed since b9832

medium risk

Adds a dedicated MiniCPM5 tool-call parser and corrects Jinja min/max semantics, with stricter tool-argument JSON parsing.

Breaking changes

  • Jinja min/max now follow Jinja2 semantics, so templates relying on the previous non-standard behavior may render differently.
  • Strict JSON parsing for tool-call arguments is restored after removal of the streaming placeholder workarounds, which can change output for models that previously depended on lenient parsing.

New features

  • Dedicated MiniCPM5 chat parser with XML-style tool-call support.
  • New openbmb-MiniCPM5-1B.jinja chat template with message delimiters.
  • MiniCPM5 integrated into the autoparser/diff-analyzer path for XML tool calls.

Improvements

  • PEG parser refactored and simplified for the MiniCPM5 grammar.
  • Grammar preserved-token triggers fixed for MiniCPM5 tool calls.
  • Jinja min/max API aligned with upstream Jinja2 standards.
  • Jinja tests updated to use real expected output for min/max attribute cases.

Bug fixes

  • Fixed Jinja min/max attribute behavior that deviated from Jinja2.
  • Corrected streaming tool-argument placeholder handling in MiniCPM5.
  • Removed alternate XML markers that caused incorrect tool-call detection.

Upgrade notes

No config migration is required, but validate any custom Jinja templates that use min/max attributes since semantics now match Jinja2. If you depend on lenient tool-argument JSON parsing or the previous streaming placeholder behavior, re-test tool calls after upgrading. MiniCPM5 users should switch to the new bundled template name.

Analyzed Oct 31, 2026

Upgrading?

Release notes summary

Implements a dedicated parser for MiniCPM5, refactoring tool-call handling and fixing Jinja API compatibility.

Key Highlights

  • Implemented MiniCPM5 parser with XML tool call support
  • Refactored PEG parser and restored strict JSON parsing for tool arguments
  • Fixed Jinja min/max API to match Jinja2 standards

Release Notes (excerpt)

<details open> chat : implement minicpm5 parser (#24889) * Add minicpm5 tool call parser * Refactor MiniCPM5 PEG parser per review feedback * Fix jinja min/max API to match Jinja2 * modify by review * MiniCPM5: use autoparser for XML tool calls and fix grammar preserved-token triggers * MiniCPM5: fix streaming tool-arg placeholder and remove alt XML markers * skip min/max attribute tests in -py mode * test-jinja: use real expected output for min/max attribute tests…

Published by ggml-org on GitHub.

Read the full release notes

Related Repositories