@@ -77,7 +77,7 @@ json task_params::to_json(bool only_metrics) const {
7777 {" speculative.n_max" , speculative.n_max },
7878 {" speculative.n_min" , speculative.n_min },
7979 {" speculative.p_min" , speculative.p_min },
80- {" speculative.draftless_t " , common_speculative_type_to_str (speculative.draftless_type )},
80+ {" speculative.type " , common_speculative_type_to_str (speculative.type )},
8181 {" speculative.ngram_size_n" , speculative.ngram_size_n },
8282 {" speculative.ngram_size_m" , speculative.ngram_size_m },
8383 {" speculative.ngram_c_rate" , speculative.ngram_check_rate },
@@ -141,7 +141,7 @@ json task_params::to_json(bool only_metrics) const {
141141 {" speculative.n_max" , speculative.n_max },
142142 {" speculative.n_min" , speculative.n_min },
143143 {" speculative.p_min" , speculative.p_min },
144- {" speculative.draftless_t " , common_speculative_type_to_str (speculative.draftless_type )},
144+ {" speculative.type " , common_speculative_type_to_str (speculative.type )},
145145 {" speculative.ngram_size_n" , speculative.ngram_size_n },
146146 {" speculative.ngram_size_m" , speculative.ngram_size_m },
147147 {" speculative.ngram_c_rate" , speculative.ngram_check_rate },
@@ -253,7 +253,8 @@ task_params server_task::params_from_json_cmpl(
253253 params.speculative .n_min = std::max (params.speculative .n_min , 0 );
254254 params.speculative .n_max = std::max (params.speculative .n_max , 0 );
255255
256- params.speculative .draftless_type = common_speculative_type_from_name (json_value (data, " speculative.draftless_t" , common_speculative_type_to_str (defaults.speculative .draftless_type )));
256+ params.speculative .type = common_speculative_type_from_name (json_value (data, " speculative.type" , common_speculative_type_to_str (defaults.speculative .type )));
257+
257258 params.speculative .ngram_size_n = json_value (data, " speculative.ngram_size_n" , defaults.speculative .ngram_size_n );
258259 params.speculative .ngram_size_m = json_value (data, " speculative.ngram_size_m" , defaults.speculative .ngram_size_m );
259260 params.speculative .ngram_check_rate = json_value (data, " speculative.ngram_c_rate" , defaults.speculative .ngram_check_rate );
0 commit comments