xianshujun
cee7ed4b32
fix(openai): keep answers in content when thinking is disabled
...
qwen3's chat template wraps <think> in {% if enable_thinking %}, but the
prefill detectors scan the raw template without evaluating the condition.
With streaming and no tools, the synthetic prefill made the Go-side extractor
classify the whole answer as reasoning whenever the client sent
metadata.enable_thinking=false.
Skip prefill detection when the request disables thinking. Real
<think>...</think> blocks that a model emits anyway are still extracted from
the content itself.
Fixes #12939
Assisted-by: ZCode:deepseek-flash
Signed-off-by: xianshujun <xianshupang@gmail.com >
2026-11-02 12:38:30 +09:00
..
2026-06-30 09:01:22 +02:00
2026-06-30 09:01:22 +02:00
2026-06-30 09:01:22 +02:00
2026-10-13 08:38:31 +00:00
2026-06-30 09:01:22 +02:00
2026-06-30 09:01:22 +02:00
2026-10-13 08:38:31 +00:00
2026-10-01 08:25:52 +02:00
2026-09-22 17:19:58 +02:00
2026-05-08 16:25:45 +02:00
2026-05-08 16:25:45 +02:00
2026-05-14 08:53:46 +02:00
2026-05-22 10:13:41 +02:00
2026-10-19 23:42:40 +02:00
2026-10-22 17:57:19 +02:00
2026-10-19 23:42:40 +02:00
2026-05-26 08:34:26 +02:00
2026-11-02 12:38:30 +09:00
2026-05-22 10:13:41 +02:00
2026-05-25 23:55:35 +02:00
2026-11-02 12:38:30 +09:00
2026-09-09 22:21:32 +02:00
2026-11-02 12:38:30 +09:00
2026-07-22 09:29:11 +02:00
2026-07-22 09:29:11 +02:00
2026-06-30 09:01:53 +02:00
2026-10-05 23:45:14 +00:00
2026-10-07 14:10:45 +02:00
2026-05-25 09:28:27 +02:00
2026-08-18 09:37:43 +02:00
2026-10-22 17:57:19 +02:00
2026-10-19 23:42:40 +02:00
2026-03-11 08:05:50 +01:00
2026-10-23 11:54:42 +02:00
2026-07-08 16:45:43 +00:00
2026-06-30 09:01:53 +02:00
2026-05-25 10:51:48 +02:00
2026-05-25 10:51:48 +02:00
2026-10-11 00:30:09 +02:00
2026-10-11 00:30:09 +02:00
2026-07-05 08:51:55 +02:00
2026-08-03 18:03:46 +02:00
2026-08-03 18:03:46 +02:00
2026-03-11 08:05:50 +01:00
2026-06-11 08:43:12 +01:00
2026-06-11 08:43:12 +01:00
2026-09-27 07:42:20 +00:00
2026-07-29 12:50:22 +02:00
2026-10-13 08:44:23 +00:00
2026-10-13 08:44:22 +00:00
2026-06-30 09:01:22 +02:00
2026-06-30 09:01:22 +02:00
2026-06-30 09:01:22 +02:00
2026-10-05 01:27:40 +02:00
2026-10-13 08:40:25 +00:00
2026-10-19 12:30:52 +02:00
2026-09-27 07:42:21 +00:00
2026-06-14 18:13:09 +02:00
2026-10-13 08:44:22 +00:00
2026-10-05 23:45:14 +00:00
2026-07-26 23:09:30 +02:00
2026-10-19 12:30:52 +02:00
2026-06-05 13:45:43 +00:00
2026-06-05 13:45:43 +00:00
2026-10-13 08:38:31 +00:00
2026-10-24 00:07:02 +02:00
2026-10-13 08:38:31 +00:00
2026-10-05 01:27:40 +02:00
2026-06-22 01:00:28 +02:00
2026-06-21 21:07:10 +02:00
2026-10-19 12:30:52 +02:00
2026-10-19 12:30:52 +02:00
2026-10-19 12:30:52 +02:00
2026-10-19 12:30:52 +02:00
2026-06-11 08:43:12 +01:00
2026-06-11 08:43:12 +01:00
2026-10-24 00:07:02 +02:00
2026-10-24 00:07:02 +02:00
2026-06-19 21:36:25 +02:00
2026-03-13 21:37:15 +01:00
2026-03-13 21:37:15 +01:00
2026-10-19 12:30:52 +02:00
2026-10-19 12:30:52 +02:00
2026-10-19 12:30:52 +02:00
2026-06-30 09:01:22 +02:00
2026-06-30 09:01:22 +02:00
2026-10-13 08:44:22 +00:00
2026-06-30 09:01:22 +02:00
2026-07-29 12:50:22 +02:00
2026-09-09 10:38:23 +02:00
2026-10-05 23:46:06 +00:00
2026-10-24 00:07:02 +02:00
2026-10-01 08:25:52 +02:00
2026-07-29 12:50:22 +02:00
2026-07-03 18:00:37 +02:00
2026-08-11 18:37:49 +02:00
2026-08-11 18:37:49 +02:00
2026-08-29 21:28:37 +02:00
2026-06-19 21:36:25 +02:00
2026-06-19 21:36:25 +02:00
2026-08-29 21:28:37 +02:00
2026-10-24 00:07:02 +02:00
2026-09-27 07:42:21 +00:00
2026-07-07 21:16:25 +00:00
2026-10-07 16:57:23 +02:00
2026-10-11 00:30:09 +02:00
2026-10-11 00:30:09 +02:00