| 1566 | } |
| 1567 | |
| 1568 | std::string common_token_to_piece(const struct llama_context * ctx, llama_token token, bool special) { |
| 1569 | const llama_model * model = llama_get_model(ctx); |
| 1570 | const llama_vocab * vocab = llama_model_get_vocab(model); |
| 1571 | return common_token_to_piece(vocab, token, special); |
| 1572 | } |
| 1573 | |
| 1574 | std::string common_token_to_piece(const struct llama_vocab * vocab, llama_token token, bool special) { |
| 1575 | std::string piece; |