| 345 | } |
| 346 | |
| 347 | void server_tokens::push_back(llama_token tok) { |
| 348 | if (tok == LLAMA_TOKEN_NULL) { |
| 349 | throw std::runtime_error("Invalid token"); |
| 350 | } |
| 351 | tokens.emplace_back(tok); |
| 352 | } |
| 353 | |
| 354 | void server_tokens::push_back(const mtmd_input_chunk * chunk) { |
| 355 | auto type = mtmd_input_chunk_get_type(chunk); |