vLLM 上 Kimi K2 工具调用准确率的深度调试
vLLM 与 Kimi 团队修复了 Kimi K2 的关键工具调用兼容问题,使成功解析的调用数从 218 个增至 971 个,提升 4.4x。问题涉及缺失 add_generation_prompt、空 content 的结构转换,以及历史工具调用 ID 不符合 functions.func_name:idx 格式。修复后仍出现 316 次 schema_validation_error_count,团队正协作将用于约束工具选择的 Enforcer 组件集成到 vLLM。

ken IDs sent to the model is the only way to be certain. While I didn't need to resort to this for the issues above, it's a critical tool in the toolbox. Techniques like using the OpenAI-compatible API to return token IDs can be a lifesaver. For those interested, we also highlighted this in our Agent Lightning post; Understand Framework Design Philosophy: vLLM's strict handling of kwargs is not a bug, but a deliberate security choice. Understanding these design decisions helps in quickly identif
匹配字段正文
