MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / normalize

Function normalize

tests/test-chat.cpp:75–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75static common_chat_msg normalize(const common_chat_msg & msg) {
76 common_chat_msg normalized = msg;
77 for (auto & tool_call : normalized.tool_calls) {
78 try {
79 tool_call.arguments = json::parse(tool_call.arguments).dump();
80 } catch (const std::exception &) {
81 }
82 }
83 return normalized;
84}
85
86template <> bool equals(const common_chat_msg & expected, const common_chat_msg & actual) {
87 return normalize(expected) == normalize(actual);

Callers 2

tokenizeMethod · 0.85
equalsFunction · 0.85

Calls 1

dumpMethod · 0.80

Tested by

no test coverage detected