File tree 1 file changed +2
-2
lines changed 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 {
565
565
bool use_jinja;
566
566
bool prefill_assistant;
567
567
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;
569
569
common_chat_templates * tmpls;
570
570
bool allow_image;
571
571
bool allow_audio;
@@ -738,7 +738,7 @@ static json oaicompat_chat_params_parse(
738
738
inputs.enable_thinking = opt.enable_thinking ;
739
739
740
740
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 ) {
742
742
inputs.chat_template_kwargs [item.first ] = item.second ;
743
743
}
744
744
for (const auto & item : chat_template_kwargs_object.items ()) {
You can’t perform that action at this time.
0 commit comments