MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / read_templates

Function read_templates

subprojects/llama.cpp/tests/test-chat.cpp:112–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112static common_chat_templates_ptr read_templates(const std::string & path) {
113 return common_chat_templates_ptr(common_chat_templates_init(/* model= */ nullptr, read_file(path)));
114}
115
116static std::unique_ptr<llama_grammar> build_grammar(const std::string & grammar_str) {
117 return std::unique_ptr<llama_grammar>(

Callers 3

mainFunction · 0.85

Calls 2

read_fileFunction · 0.70

Tested by

no test coverage detected