xianshujun
45d7a967c7
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 >
(cherry picked from commit cee7ed4b32 )
(cherry picked from commit 29618866d07a05624934bf9f595c95a68c938461)
2026-11-03 19:21:12 +00:00
..
2026-05-30 12:04:10 +02:00
2026-11-03 19:18:43 +00:00
2026-11-02 23:50:40 +00:00
2026-11-02 23:50:40 +00:00
2026-11-02 23:50:40 +00:00
2026-11-02 23:50:40 +00:00
2026-11-02 23:50:40 +00:00
2026-11-01 12:08:23 +01:00
2026-08-07 18:00:45 +02:00
2026-11-01 12:08:23 +01:00
2026-11-03 15:48:38 +00:00
2026-10-29 22:06:41 +01:00
2026-10-29 22:06:41 +01:00
2026-04-13 11:00:29 +02:00
2026-11-02 23:50:40 +00:00
2026-11-02 23:50:40 +00:00
2026-11-02 23:50:40 +00:00
2026-06-16 12:16:34 +02:00
2026-11-01 12:08:23 +01:00
2026-11-02 18:48:39 +01:00
2026-11-03 10:58:46 +00:00
2026-11-01 12:08:23 +01:00
2026-11-01 12:08:23 +01:00
2026-11-01 12:08:23 +01:00
2026-11-02 18:48:39 +01:00
2026-11-01 12:08:23 +01:00
2024-05-21 14:33:47 +02:00
2026-10-14 01:06:14 +02:00
2026-10-14 01:06:14 +02:00
2026-07-06 12:53:45 +02:00
2026-07-23 00:03:21 +02:00
2026-11-01 12:08:23 +01:00
2026-11-01 12:08:23 +01:00
2026-09-27 21:18:38 +02:00
2026-10-23 01:00:07 +02:00
2026-06-20 22:44:44 +02:00
2026-06-20 22:44:44 +02:00
2026-10-29 22:06:41 +01:00
2026-10-14 01:06:14 +02:00
2026-10-14 01:06:14 +02:00
2026-10-14 01:06:14 +02:00
2026-10-14 01:06:14 +02:00
2026-07-19 12:46:50 +02:00
2026-04-21 21:53:10 +02:00
2026-10-29 22:06:41 +01:00
2026-07-06 12:56:09 +02:00
2026-07-14 17:46:15 +02:00
2026-10-29 22:06:41 +01:00
2026-10-14 01:06:14 +02:00
2026-10-14 01:06:14 +02:00
2026-10-14 01:06:14 +02:00
2026-10-11 17:39:22 +02:00
2026-10-14 01:06:14 +02:00
2026-09-27 07:42:21 +00:00
2026-09-27 07:42:21 +00:00
2026-07-30 12:13:00 +02:00
2026-03-22 00:57:15 +01:00
2026-03-22 00:57:15 +01:00
2026-10-16 08:45:28 +02:00
2026-10-13 08:08:43 +00:00
2026-05-25 09:28:27 +02:00
2026-09-18 06:12:03 +01:00
2026-09-18 06:12:03 +01:00
2026-07-23 16:50:50 +02:00
2026-07-23 16:50:50 +02:00
2026-07-19 12:01:36 +02:00
2026-07-20 22:12:39 +02:00
2026-07-19 12:01:36 +02:00
2026-10-29 22:06:41 +01:00
2026-11-01 12:08:23 +01:00
2026-10-11 00:30:09 +02:00
2026-11-01 12:08:23 +01:00
2026-10-10 20:27:28 +02:00
2026-10-08 09:56:12 +02:00
2026-10-08 09:56:12 +02:00
2026-09-27 07:42:20 +00:00
2026-09-27 07:42:21 +00:00
2026-10-24 22:47:04 +02:00
2026-10-14 01:06:14 +02:00
2026-07-23 16:50:50 +02:00
2026-07-29 12:50:22 +02:00
2026-09-27 07:42:21 +00:00
2026-11-01 12:08:23 +01:00
2026-11-03 19:18:43 +00:00
2026-08-24 19:11:16 +00:00
2026-08-24 19:11:16 +00:00
2026-08-22 22:44:03 +02:00
2026-08-24 19:11:16 +00:00
2026-10-29 22:06:41 +01:00
2026-11-03 19:21:12 +00:00
2026-07-22 09:30:23 +02:00
2026-07-22 09:30:23 +02:00
2026-04-28 12:58:49 +00:00
2026-08-10 10:18:47 +02:00
2026-06-07 22:09:02 +02:00
2026-04-13 11:00:29 +02:00
2026-06-11 08:43:12 +01:00
2026-06-30 09:01:22 +02:00
2026-08-18 09:37:43 +02:00
2026-10-27 10:27:45 +01:00
2026-10-25 08:50:08 +00:00
2026-10-04 09:34:21 +02:00
2026-08-18 09:37:43 +02:00
2026-11-01 12:08:23 +01:00
2026-11-01 12:08:23 +01:00
2026-07-16 22:39:59 +02:00
2026-07-16 22:39:59 +02:00
2026-11-01 12:08:23 +01:00
2026-11-02 23:50:40 +00:00
2026-09-27 21:18:38 +02:00
2026-09-27 21:18:38 +02:00
2026-11-01 12:08:23 +01:00
2026-07-14 17:46:15 +02:00
2026-07-14 17:46:15 +02:00
2026-11-03 19:21:12 +00:00
2026-10-11 00:30:09 +02:00
2026-10-11 00:30:09 +02:00
2026-10-13 08:27:24 +00:00
2026-08-06 12:10:56 +02:00
2026-08-06 12:10:56 +02:00
2026-06-21 21:07:10 +02:00
2026-11-01 18:41:33 +01:00