Skip to content

Commit 9192412

Browse files
committed
fix merge conflict
1 parent 8e35b6f commit 9192412

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/server/utils.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ struct oaicompat_parser_options {
585585
bool use_jinja;
586586
bool prefill_assistant;
587587
common_reasoning_format reasoning_format;
588-
const std::map<std::string,std::string> chat_template_kwargs;
588+
std::map<std::string,std::string> chat_template_kwargs;
589589
common_chat_templates * tmpls;
590590
bool allow_image;
591591
bool allow_audio;
@@ -760,7 +760,7 @@ static json oaicompat_chat_params_parse(
760760
inputs.add_generation_prompt = json_value(body, "add_generation_prompt", true);
761761

762762
auto chat_template_kwargs_object = json_value(body, "chat_template_kwargs", json::object());
763-
for (const auto & item : default_template_kwargs) {
763+
for (const auto & item : opt.chat_template_kwargs) {
764764
inputs.chat_template_kwargs[item.first] = item.second;
765765
}
766766
for (const auto & item : chat_template_kwargs_object.items()) {

0 commit comments

Comments
 (0)