MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / common_chat_parse_mistral_nemo

Function common_chat_parse_mistral_nemo

smallthinker/common/chat.cpp:911–919  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

909 return data;
910}
911static void common_chat_parse_mistral_nemo(common_chat_msg_parser & builder) {
912 if (!builder.syntax().parse_tool_calls) {
913 builder.add_content(builder.consume_rest());
914 return;
915 }
916
917 static const common_regex prefix(regex_escape("[TOOL_CALLS]"));
918 parse_prefixed_json_tool_call_array(builder, prefix);
919}
920
921static common_chat_params common_chat_params_init_command_r7b(const common_chat_template & tmpl, const struct templates_params & inputs) {
922 common_chat_params data;

Callers 1

common_chat_parseFunction · 0.85

Calls 4

regex_escapeFunction · 0.85
add_contentMethod · 0.80
consume_restMethod · 0.80

Tested by

no test coverage detected