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