File tree 2 files changed +3
-5
lines changed 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -1615,8 +1615,7 @@ static common_chat_params common_chat_templates_apply_jinja(
1615
1615
params.grammar = inputs.grammar ;
1616
1616
params.now = inputs.now ;
1617
1617
1618
- for (auto el: inputs.chat_template_kwargs )
1619
- {
1618
+ for (auto el: inputs.chat_template_kwargs ) {
1620
1619
params.extra_context [el.first ] = json::parse (el.second );
1621
1620
}
1622
1621
Original file line number Diff line number Diff line change @@ -729,8 +729,7 @@ static json oaicompat_completion_params_parse(
729
729
inputs.add_generation_prompt = json_value (body, " add_generation_prompt" , true );
730
730
731
731
auto chat_template_kwargs_object = json_value (body, " chat_template_kwargs" , json::object ());
732
- for (const auto & item: default_template_kwargs)
733
- {
732
+ for (const auto & item: default_template_kwargs) {
734
733
inputs.chat_template_kwargs [item.first ] = item.second ;
735
734
}
736
735
for (const auto & item : chat_template_kwargs_object.items ()) {
@@ -754,7 +753,7 @@ static json oaicompat_completion_params_parse(
754
753
throw std::runtime_error (" Cannot have 2 or more assistant messages at the end of the list." );
755
754
}
756
755
757
- if (inputs.chat_template_kwargs .find (" enable_thinking" ) != inputs.chat_template_kwargs .end ()) {
756
+ if (inputs.chat_template_kwargs .find (" enable_thinking" ) != inputs.chat_template_kwargs .end ()) {
758
757
throw std::runtime_error (" Assistant response prefill is incompatible with enable_thinking." );
759
758
}
760
759
You can’t perform that action at this time.
0 commit comments