dify is not supported wenxin function call? #7029

Closed
opened 2026-02-21 18:18:30 -05:00 by yindo · 3 comments
Owner

Originally created by @wcccode on GitHub (Dec 3, 2024).

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

0.11.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

image

image

✔️ Expected Behavior

The official documentation states that function calling is supported.

image

Actual Behavior

No response

Originally created by @wcccode on GitHub (Dec 3, 2024). ### 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 0.11.2 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ![image](https://github.com/user-attachments/assets/d2c78afb-9694-4e3d-9a75-eaf259ad8a03) ![image](https://github.com/user-attachments/assets/c2036c16-bfcf-455c-a494-6423dfd00722) ### ✔️ Expected Behavior The official documentation states that function calling is supported. ![image](https://github.com/user-attachments/assets/347afce3-926f-40be-a0f0-b64889f5bb10) ### ❌ Actual Behavior _No response_
yindo added the 🔨 feat:tools label 2026-02-21 18:18:30 -05:00
yindo closed this issue 2026-02-21 18:18:30 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Dec 3, 2024):

Hey @wcccode! 👋 I'm here to assist you with bug fixes, answer questions, and guide you on becoming a contributor. Let's tackle this issue together!

There is a known limitation in Dify version 0.11.2 regarding function calling for Wenxin. The documentation and code comments indicate that function calling is currently disabled due to various limitations. Specifically, the comments mention that ErnieBot supports function calling, but there are significant limitations, such as the requirement for messages to be ordered in a specific way (user by assistant or function). As a result, function calling has been disabled for now [1].

If you are encountering issues with function calling for Wenxin, this is likely due to these known limitations in the current version.

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Dec 3, 2024): <!-- Greeting --> Hey @wcccode! 👋 I'm here to assist you with bug fixes, answer questions, and guide you on becoming a contributor. Let's tackle this issue together! <!-- Answer --> There is a known limitation in Dify version 0.11.2 regarding function calling for Wenxin. The documentation and code comments indicate that function calling is currently disabled due to various limitations. Specifically, the comments mention that ErnieBot supports function calling, but there are significant limitations, such as the requirement for messages to be ordered in a specific way (user by assistant or function). As a result, function calling has been disabled for now <sup>[[1]](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/model_providers/wenxin/llm/ernie_bot.py)</sup>. If you are encountering issues with function calling for Wenxin, this is likely due to these known limitations in the current version. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@wcccode commented on GitHub (Dec 3, 2024):

 
您好,您的来信我已收到,谢谢!!!

@wcccode commented on GitHub (Dec 3, 2024):   您好,您的来信我已收到,谢谢!!!
Author
Owner

@crazywoola commented on GitHub (Dec 3, 2024):

No, we do not support FC in wenxin, if you are interested, you can contribute to this feature.

@crazywoola commented on GitHub (Dec 3, 2024): No, we do not support FC in wenxin, if you are interested, you can contribute to this feature.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#7029