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

Function read_templates

smallthinker/tests/test-chat.cpp:107–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107static common_chat_templates_ptr read_templates(const std::string & path) {
108 return common_chat_templates_ptr(common_chat_templates_init(/* model= */ nullptr, read_file(path)));
109}
110
111static std::unique_ptr<llama_grammar> build_grammar(const std::string & grammar_str) {
112 return std::unique_ptr<llama_grammar>(

Callers 2

mainFunction · 0.85

Calls 2

read_fileFunction · 0.70

Tested by

no test coverage detected