File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -565,7 +565,7 @@ struct oaicompat_parser_options {
565565 bool use_jinja;
566566 bool prefill_assistant;
567567 common_reasoning_format reasoning_format;
568- const std::map<std::string,std::string> chat_template_kwargs;
568+ std::map<std::string,std::string> chat_template_kwargs;
569569 common_chat_templates * tmpls;
570570 bool allow_image;
571571 bool allow_audio;
@@ -738,7 +738,7 @@ static json oaicompat_chat_params_parse(
738738 inputs.enable_thinking = opt.enable_thinking ;
739739
740740 auto chat_template_kwargs_object = json_value (body, " chat_template_kwargs" , json::object ());
741- for (const auto & item : default_template_kwargs ) {
741+ for (const auto & item : opt. chat_template_kwargs ) {
742742 inputs.chat_template_kwargs [item.first ] = item.second ;
743743 }
744744 for (const auto & item : chat_template_kwargs_object.items ()) {
You can’t perform that action at this time.
0 commit comments