In "Agent Assistant" mode, while using the context and custom tools simultaneously, OpenAI returns a 400 error. #2624

Closed
opened 2026-02-21 17:48:01 -05:00 by yindo · 0 comments
Owner

Originally created by @neotize on GitHub (Apr 25, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a quesion, 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).
  • Pleas do not modify this template :) and fill in all the required fields.

Dify version

0.5.11

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

image
In "Agent Assistant" mode, while using the context and tools simultaneously, and when the tools include custom tools.

✔️ Expected Behavior

In "Agent Assistant" mode, allowing simultaneous configuration of context and custom tools, the openAI model operates normally.

Actual Behavior

OpenAI returns a 400 error.
image

Originally created by @neotize on GitHub (Apr 25, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a quesion, 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] Pleas do not modify this template :) and fill in all the required fields. ### Dify version 0.5.11 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ![image](https://github.com/langgenius/dify/assets/42505917/01751a53-c162-4316-80e2-eb7eaee8f8b5) In "Agent Assistant" mode, while using the context and tools simultaneously, and when the tools include custom tools. ### ✔️ Expected Behavior In "Agent Assistant" mode, allowing simultaneous configuration of context and custom tools, the openAI model operates normally. ### ❌ Actual Behavior OpenAI returns a 400 error. ![image](https://github.com/langgenius/dify/assets/42505917/349bf731-4b6d-47c3-87d7-22d0820f19c5)
yindo added the 🐞 bug🤖 feat:agent labels 2026-02-21 17:48:01 -05:00
yindo closed this issue 2026-02-21 17:48:01 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#2624