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 bd859ed commit d585a14Copy full SHA for d585a14
tools/server/utils.hpp
@@ -766,7 +766,7 @@ static json oaicompat_chat_params_parse(
766
/* TODO: test this properly */
767
inputs.reasoning_format = COMMON_REASONING_FORMAT_NONE;
768
769
- if (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()) {
770
throw std::runtime_error("Assistant response prefill is incompatible with enable_thinking.");
771
}
772
0 commit comments