We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb7fe04 commit 836015dCopy full SHA for 836015d
examples/server/utils.hpp
@@ -642,7 +642,8 @@ static json oaicompat_completion_params_parse(
642
throw std::runtime_error("Cannot use custom grammar constraints with tools.");
643
}
644
645
- /* Prefill assistant message support */
+ // if the assistant message appears at the end of list, we do not add end-of-turn token
646
+ // for ex. this can be useful to modify the reasoning process in reasoning models
647
bool prefill_assistant_message = !inputs.messages.empty() && inputs.messages.back().role == "assistant";
648
common_chat_msg last_message;
649
if (prefill_assistant_message) {
0 commit comments