File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -1724,8 +1724,7 @@ static common_chat_params common_chat_templates_apply_jinja(
17241724 params.grammar = inputs.grammar ;
17251725 params.now = inputs.now ;
17261726
1727- for (auto el: inputs.chat_template_kwargs )
1728- {
1727+ for (auto el: inputs.chat_template_kwargs ) {
17291728 params.extra_context [el.first ] = json::parse (el.second );
17301729 }
17311730
Original file line number Diff line number Diff line change @@ -750,8 +750,7 @@ static json oaicompat_chat_params_parse(
750750 }
751751
752752 auto chat_template_kwargs_object = json_value (body, " chat_template_kwargs" , json::object ());
753- for (const auto & item: default_template_kwargs)
754- {
753+ for (const auto & item: default_template_kwargs) {
755754 inputs.chat_template_kwargs [item.first ] = item.second ;
756755 }
757756 for (const auto & item : chat_template_kwargs_object.items ()) {
@@ -774,7 +773,7 @@ static json oaicompat_chat_params_parse(
774773 /* TODO: test this properly */
775774 inputs.reasoning_format = COMMON_REASONING_FORMAT_NONE;
776775
777- if (inputs.chat_template_kwargs .find (" enable_thinking" ) != inputs.chat_template_kwargs .end ()) {
776+ if (inputs.chat_template_kwargs .find (" enable_thinking" ) != inputs.chat_template_kwargs .end ()) {
778777 throw std::runtime_error (" Assistant response prefill is incompatible with enable_thinking." );
779778 }
780779
You can’t perform that action at this time.
0 commit comments