#40894 feat: update xgrammar==0.2.0 to use structural tags for strict tool calling + reasoning for more models
原始 PR · 作者 Seven-Streams · 合并时间 2026-05-05 03:45
升级 xgrammar 至 0.2.0,利用内置 structural tags 增强工具调用。
值得精读,尤其是 `structural_tag_registry.py` 中的装饰器注册模式和 `adjust_request` 的优先级设计。环境变量门控策略是降低风险的良好实践。建议关注后续的增量模型支持和 Qwen3Coder `supports_required_and_named` 的修复 PR。
参与讨论