normalize_tool_choice 是 xgrammar 库的一个公共函数,用于规范化工具调用(tool-calling)的参数。现在的问题是,只要不涉及工具调用,是可以工作的。一旦涉及工具调用,就会报错。但是升级的话,涉及@15287246311同学提到的这个问题,依赖冲突太多了。
normalize_tool_choice 是 xgrammar 库的一个公共函数,用于规范化工具调用(tool-calling)的参数。现在的问题是,只要不涉及工具调用,是可以工作的。一旦涉及工具调用,就会报错。但是升级的话,涉及@15287246311同学提到的这个问题,依赖冲突太多了。
你好,请问你解决了吗?方便看一下你的pip list结果吗
ERROR: Cannot install apache-tvm-ffi==0.1.9 and xgrammar==0.2.6 because these package versions have conflicting dependencies.
The conflict is caused by:
The user requested apache-tvm-ffi==0.1.9
xgrammar 0.2.6 depends on apache-tvm-ffi>=0.1.10
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip to attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts