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(
1724
1724
params.grammar = inputs.grammar ;
1725
1725
params.now = inputs.now ;
1726
1726
1727
- for (auto el: inputs.chat_template_kwargs )
1728
- {
1727
+ for (auto el: inputs.chat_template_kwargs ) {
1729
1728
params.extra_context [el.first ] = json::parse (el.second );
1730
1729
}
1731
1730
Original file line number Diff line number Diff line change @@ -750,8 +750,7 @@ static json oaicompat_chat_params_parse(
750
750
}
751
751
752
752
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) {
755
754
inputs.chat_template_kwargs [item.first ] = item.second ;
756
755
}
757
756
for (const auto & item : chat_template_kwargs_object.items ()) {
@@ -774,7 +773,7 @@ static json oaicompat_chat_params_parse(
774
773
/* TODO: test this properly */
775
774
inputs.reasoning_format = COMMON_REASONING_FORMAT_NONE;
776
775
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 ()) {
778
777
throw std::runtime_error (" Assistant response prefill is incompatible with enable_thinking." );
779
778
}
780
779
You can’t perform that action at this time.
0 commit comments