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

Function renormalize_json

tests/test-chat.cpp:353–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353static std::string renormalize_json(const std::string & json_str) {
354 try {
355 auto json_obj = json::parse(json_str);
356 return json_obj.dump();
357 } catch (const std::exception & e) {
358 return ""; // ignore parial JSON contents for comparison purposes
359 }
360}
361
362static void assert_msg_equals(const common_chat_msg & expected,
363 const common_chat_msg & actual,

Callers 1

assert_msg_equalsFunction · 0.85

Calls 1

dumpMethod · 0.80

Tested by

no test coverage detected