rename struct token_prob to prob_info
This commit is contained in:
parent
d2463dc8df
commit
65ef1c8dc9
1 changed files with 2 additions and 2 deletions
|
@ -441,12 +441,12 @@ struct completion_token_output {
|
||||||
llama_token tok;
|
llama_token tok;
|
||||||
float prob;
|
float prob;
|
||||||
std::string text_to_send;
|
std::string text_to_send;
|
||||||
struct token_prob {
|
struct prob_info {
|
||||||
llama_token tok;
|
llama_token tok;
|
||||||
std::string txt;
|
std::string txt;
|
||||||
float prob;
|
float prob;
|
||||||
};
|
};
|
||||||
std::vector<token_prob> probs;
|
std::vector<prob_info> probs;
|
||||||
|
|
||||||
json to_json(bool post_sampling_probs) const {
|
json to_json(bool post_sampling_probs) const {
|
||||||
json probs_for_token = json::array();
|
json probs_for_token = json::array();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue