You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(tool-parser): rename Glm4MoeParser to GlmParser with catch-all "glm" pattern
Rename Glm4MoeParser to GlmParser. Use glm47 format (whitespace-only,
GLM-4.7/5/5.1) as the default, with specialized glm45 format for
GLM-4.5/4.6 where the function name is separated by a newline.
Replace glm-* -> json fallback with glm-* -> glm so that GLM-5/5.1
models are routed to the correct tool call parser instead of the
generic JSON parser.
Drop the misleading "_moe" suffix from parser keys.
Signed-off-by: Jiayi Yan <1195343015@qq.com>
let input = r"<tool_call>process<arg_key>count</arg_key><arg_value>42</arg_value><arg_key>rate</arg_key><arg_value>1.5</arg_value><arg_key>enabled</arg_key><arg_value>true</arg_value><arg_key>data</arg_key><arg_value>null</arg_value><arg_key>text</arg_key><arg_value>string value</arg_value></tool_call>";
let input = r"<tool_call>test_func<arg_key>bool_true</arg_key><arg_value>True</arg_value><arg_key>bool_false</arg_key><arg_value>False</arg_value><arg_key>none_val</arg_key><arg_value>None</arg_value></tool_call>";
0 commit comments