这是indexloc提供的服务,不要输入任何密码
Skip to content

[BUG]: Fix issue with /no_think cases in reasoning models #3757

@timothycarambat

Description

@timothycarambat

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    possible bugBug was reported but is not confirmed or is unable to be replicated.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions