| 105 | } |
| 106 | |
| 107 | static 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 | |
| 111 | static std::unique_ptr<llama_grammar> build_grammar(const std::string & grammar_str) { |
| 112 | return std::unique_ptr<llama_grammar>( |
no test coverage detected