| 275 | } |
| 276 | |
| 277 | void server_tokens::push_back(llama_token tok) { |
| 278 | if (tok == LLAMA_TOKEN_NULL) { |
| 279 | throw std::runtime_error("Invalid token"); |
| 280 | } |
| 281 | tokens.emplace_back(tok); |
| 282 | } |
| 283 | |
| 284 | void server_tokens::push_back(const mtmd_input_chunk * chunk) { |
| 285 | auto type = mtmd_input_chunk_get_type(chunk); |