File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments