Skip to content

Commit 6c1c83e

Browse files
matteoservaggerganov
authored and
matteo
committed
Apply suggestions from code review
coding standard: cosmetic changes Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
1 parent 3f9a7d6 commit 6c1c83e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

common/chat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ struct common_chat_templates_inputs {
7474
bool parallel_tool_calls = false;
7575
bool extract_reasoning = true;
7676
std::chrono::system_clock::time_point now = std::chrono::system_clock::now();
77-
std::map<std::string,std::string> chat_template_kwargs;
77+
std::map<std::string, std::string> chat_template_kwargs;
7878
};
7979

8080
struct common_chat_params {

common/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ struct common_params {
376376
std::string ssl_file_key = ""; // NOLINT
377377
std::string ssl_file_cert = ""; // NOLINT
378378

379-
std::map<std::string,std::string> default_template_kwargs;
379+
std::map<std::string, std::string> default_template_kwargs;
380380

381381
// "advanced" endpoints are disabled by default for better security
382382
bool webui = true;

tools/server/utils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ static json oaicompat_completion_params_parse(
730730
inputs.add_generation_prompt = json_value(body, "add_generation_prompt", true);
731731

732732
auto chat_template_kwargs_object = json_value(body, "chat_template_kwargs", json::object());
733-
for (const auto & item: default_template_kwargs) {
733+
for (const auto & item : default_template_kwargs) {
734734
inputs.chat_template_kwargs[item.first] = item.second;
735735
}
736736
for (const auto & item : chat_template_kwargs_object.items()) {

0 commit comments

Comments
 (0)