Reasoning content is not displayed corretly when using OpenAI-API-Compatible API in agent #9584

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

Originally created by @MSGuda on GitHub (Mar 6, 2025).

Self Checks

  • 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 (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.0.0

Cloud or Self Hosted

Cloud

Steps to reproduce

Model providers: OpenAI-API-Compatible (v0.0.7)
When function call is not supported
Image

Reasoning content was truncated before it was fully output.

Image

However, when function call and stream function call is supported,everything is displayed normally

Image

Whether function call is supported or not, this issue didnt occur in chatbot mode.

✔️ Expected Behavior

Reasoning content should be shown correctly when function call is not supported,

Actual Behavior

Only when function call is enabled can reasoning content be displayed normally.

Originally created by @MSGuda on GitHub (Mar 6, 2025). ### Self Checks - [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 (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.0.0 ### Cloud or Self Hosted Cloud ### Steps to reproduce Model providers: OpenAI-API-Compatible (v0.0.7) When function call is not supported ![Image](https://github.com/user-attachments/assets/9c713e50-d6a9-4067-808d-9746aca65cff) Reasoning content was truncated before it was fully output. ![Image](https://github.com/user-attachments/assets/64221c32-65e2-4ccc-8645-057397f2e73a) However, when function call and stream function call is supported,everything is displayed normally ![Image](https://github.com/user-attachments/assets/2104848d-06c3-424b-9f6e-b54a83dbf028) Whether function call is supported or not, this issue didnt occur in chatbot mode. ### ✔️ Expected Behavior Reasoning content should be shown correctly when function call is not supported, ### ❌ Actual Behavior Only when function call is enabled can reasoning content be displayed normally.
yindo added the 🐞 bug label 2026-02-21 18:36:29 -05:00
yindo closed this issue 2026-02-21 18:36:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#9584