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

Function load_template

tests/test-chat-auto-parser.cpp:1284–1294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1282}
1283
1284static common_chat_template load_template(testing & t, const std::string & template_path) {
1285 std::ifstream fin(template_path, std::ios::binary);
1286 std::ostringstream buf;
1287 if (fin.is_open()) {
1288 buf << fin.rdbuf();
1289 }
1290 std::string template_source = buf.str();
1291 common_chat_template tmpl(template_source, "", "");
1292 t.assert_true("Nemotron template loaded successfully", template_source.length() > 0);
1293 return tmpl;
1294}
1295
1296// ============================================================================
1297// Nemotron Template Analysis Tests

Callers 3

load_nemotron_templateFunction · 0.85
load_cohere_templateFunction · 0.85
load_smollm3_templateFunction · 0.85

Calls 3

assert_trueMethod · 0.80
lengthMethod · 0.80
strMethod · 0.45

Tested by

no test coverage detected