fix Qwen3.6 outputs blank <think></think> in response when thinking is off (#1951)

Co-authored-by: firecoperana <firecoperana>
This commit is contained in:
firecoperana 2026-06-11 00:26:07 -05:00 committed by GitHub
parent c0d25e8fa1
commit ca0c1c5f85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -93,7 +93,7 @@ common_peg_arena autoparser::build_parser(const generation_params & inputs) cons
}
return build_chat_peg_parser([&](common_chat_peg_builder & p) {
parser_build_context ctx(p, inputs);
bool extract_reasoning = inputs.reasoning_format != COMMON_REASONING_FORMAT_NONE && inputs.enable_thinking;
bool extract_reasoning = inputs.reasoning_format != COMMON_REASONING_FORMAT_NONE;
ctx.extracting_reasoning = extract_reasoning && reasoning.mode != reasoning_mode::NONE;
ctx.content = &content;