After enabling the thinking mode for claude-sonnet-4 and claude-sonnet-4-5, an error occurs when calling the tool. #19704

Closed
opened 2026-02-21 20:03:03 -05:00 by yindo · 0 comments
Owner

Originally created by @Moiyu1998 on GitHub (Oct 20, 2025).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.9.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image

The image above shows the error that occurred after enabling the thinking mode and calling the tool with the claude-sonnet-4 model.

Image

The image above shows the error that occurred when calling the tool with claude-sonnet-4-5. This model is even unable to successfully call the tool.

✔️ Expected Behavior

After enabling the thinking mode, both claude-sonnet-4 and claude-sonnet-4-5 can successfully call the tool and continue to output without any errors.

Actual Behavior

No response

Originally created by @Moiyu1998 on GitHub (Oct 20, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.9.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce <img width="360" height="402" alt="Image" src="https://github.com/user-attachments/assets/0c53be0c-ecdf-431f-92a7-244143e8814f" /> The image above shows the error that occurred after enabling the thinking mode and calling the tool with the claude-sonnet-4 model. <img width="360" height="50" alt="Image" src="https://github.com/user-attachments/assets/0f171542-ee42-4e62-a432-08502c18c244" /> The image above shows the error that occurred when calling the tool with claude-sonnet-4-5. This model is even unable to successfully call the tool. ### ✔️ Expected Behavior After enabling the thinking mode, both claude-sonnet-4 and claude-sonnet-4-5 can successfully call the tool and continue to output without any errors. ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 20:03:03 -05:00
yindo closed this issue 2026-02-21 20:03:03 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#19704