Skip to content

Commit abda1ae

Browse files
committed
fixed formatting
1 parent a92e790 commit abda1ae

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

common/chat.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

tools/server/utils.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)