Skip to content

Commit 496f08e

Browse files
author
matteo
committed
fixed code convention
1 parent 9d96e5c commit 496f08e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

examples/server/utils.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -645,8 +645,7 @@ static json oaicompat_completion_params_parse(
645645
/* Prefill assistant message support */
646646
bool prefill_assistant_message = inputs.messages.size() > 0 && inputs.messages[inputs.messages.size()-1].role == "assistant";
647647
common_chat_msg last_message;
648-
if (prefill_assistant_message)
649-
{
648+
if (prefill_assistant_message) {
650649
last_message = inputs.messages.back();
651650
inputs.messages.pop_back();
652651
inputs.extract_reasoning = false;
@@ -657,8 +656,7 @@ static json oaicompat_completion_params_parse(
657656
auto chat_params = common_chat_templates_apply(tmpls, inputs);
658657

659658
/* Append assistant prefilled message */
660-
if (prefill_assistant_message)
661-
{
659+
if (prefill_assistant_message) {
662660
chat_params.prompt += last_message.content;
663661
}
664662

0 commit comments

Comments
 (0)