| 144 | } |
| 145 | |
| 146 | std::string common_chat_msg_parser::str(const common_string_range & rng) const { |
| 147 | GGML_ASSERT(rng.begin <= rng.end); |
| 148 | return input_.substr(rng.begin, rng.end - rng.begin); |
| 149 | } |
| 150 | |
| 151 | void common_chat_msg_parser::add_content(const std::string &content) { |
| 152 | result_.content += content; |
no outgoing calls