| 27 | } |
| 28 | |
| 29 | static bool eval_id(struct llama_context * ctx_llama, int id, int * n_past) { |
| 30 | std::vector<llama_token> tokens; |
| 31 | tokens.push_back(id); |
| 32 | return eval_tokens(ctx_llama, tokens, 1, n_past); |
| 33 | } |
| 34 | |
| 35 | static bool eval_string(struct llama_context * ctx_llama, const char* str, int n_batch, int * n_past, bool add_bos){ |
| 36 | std::string str2 = str; |
no test coverage detected