[GH-ISSUE #3757] [BUG]: Fix issue with /no_think cases in reasoning models #2418

Closed
opened 2026-02-22 18:29:35 -05:00 by yindo · 0 comments
Owner

Originally created by @timothycarambat on GitHub (May 2, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3757

How are you running AnythingLLM?

All versions

What happened?

When using a reasoning model that returns no thoughts or an empty block of thoughts (just newlines or whitespace) we show an empty thought block

Are there known steps to reproduce?

Using qwen3, ask a single query and see that the reasoning is rendered correctly.
Now, update the workspace system prompt to start with /no_think and the rest of the prompt.
Sending a prompt will show an empty thought block.

Image
Originally created by @timothycarambat on GitHub (May 2, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3757 ### How are you running AnythingLLM? All versions ### What happened? When using a reasoning model that returns no thoughts or an empty block of thoughts (just newlines or whitespace) we show an empty thought block ### Are there known steps to reproduce? Using qwen3, ask a single query and see that the reasoning is rendered correctly. Now, update the workspace system prompt to start with `/no_think` and the rest of the prompt. Sending a prompt will show an empty thought block. <img width="555" alt="Image" src="https://github.com/user-attachments/assets/0dcbac1c-f7a9-4468-a64c-fdb76ac675a1" />
yindo added the possible bug label 2026-02-22 18:29:35 -05:00
yindo closed this issue 2026-02-22 18:29:35 -05:00
yindo changed title from [BUG]: Fix issue with `/no_think` cases in reasoning models to [GH-ISSUE #3757] [BUG]: Fix issue with `/no_think` cases in reasoning models 2026-06-05 14:46:26 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#2418