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 4e1c329 commit a056e53Copy full SHA for a056e53
tools/server/utils.hpp
@@ -772,7 +772,7 @@ static json oaicompat_chat_params_parse(
772
/* TODO: test this properly */
773
inputs.reasoning_format = COMMON_REASONING_FORMAT_NONE;
774
775
- if (inputs.enable_thinking || inputs.chat_template_kwargs.find("enable_thinking") != inputs.chat_template_kwargs.end()) {
+ if ( (!inputs.enable_thinking) || inputs.chat_template_kwargs.find("enable_thinking") != inputs.chat_template_kwargs.end()) {
776
throw std::runtime_error("Assistant response prefill is incompatible with enable_thinking.");
777
}
778
0 commit comments