Skip to content

[Docs]: Incorrect comment for enableThinking() in model.html code example #1393

@qinglang-fenglin

Description

@qinglang-fenglin

Describe the bug
In the official Chinese documentation page for model configuration, the code example comment for .enableThinking(true) incorrectly says "自动启用流式输出" (auto-enable streaming output), which is misleading. enableThinking() controls the model's reasoning/thinking mode, not streaming output.

To Reproduce

  1. Go to https://java.agentscope.io/zh/task/model.html
  2. Scroll down to the "思考模式示例" (Thinking Mode Example) section
  3. See the incorrect comment on enableThinking(true)
// Current (incorrect)
.enableThinking(true)  // 自动启用流式输出

Expected behavior
The comment should accurately describe what enableThinking() does:

// Suggested fix
.enableThinking(true)  // 启用深度思考模式(qwen3 会展示推理过程)

Environment

  • AgentScope-Java Version: 1.0.12
  • Java Version: 21
  • OS: Windows 11

Additional context
Also, streaming output is controlled by the separate .stream(true) method, which defaults to true. These are two distinct features that should not be conflated in the documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    Status

    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions