rename struct token_prob to prob_info

This commit is contained in:
Xuan Son Nguyen 2024-12-19 11:51:50 +01:00
parent d2463dc8df
commit 65ef1c8dc9

View file

@ -441,12 +441,12 @@ struct completion_token_output {
llama_token tok;
float prob;
std::string text_to_send;
struct token_prob {
struct prob_info {
llama_token tok;
std::string txt;
float prob;
};
std::vector<token_prob> probs;
std::vector<prob_info> probs;
json to_json(bool post_sampling_probs) const {
json probs_for_token = json::array();