The agent app use functioncall mode when i use groq's api,can't use tool #483

Closed
opened 2026-02-16 10:19:32 -05:00 by yindo · 3 comments
Owner

Originally created by @jndxhuxiehang on GitHub (Jul 25, 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.7.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image Image Image

✔️ Expected Behavior

in agent app,use groq's k2 model,tool call works well in ReAct mode

Actual Behavior

when i choose the groq's k2 model,the agent app's agent mode change to functioncalling(not react),it cause that tools not been used,the same ,but in workflow with an agent node it works well. so i think it may be a bug?it should match the ""ReAct“ rather then“function calling”

Originally created by @jndxhuxiehang on GitHub (Jul 25, 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.7.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce <img width="1211" height="602" alt="Image" src="https://github.com/user-attachments/assets/4abc88a1-6d08-417f-b839-363e4fa246bb" /> <img width="1197" height="700" alt="Image" src="https://github.com/user-attachments/assets/28194203-24d2-49c1-bd85-82f8fc0816a3" /> <img width="629" height="525" alt="Image" src="https://github.com/user-attachments/assets/e9e819f4-ff00-48e3-8d9e-af7fa280b8c7" /> ### ✔️ Expected Behavior in agent app,use groq's k2 model,tool call works well in ReAct mode ### ❌ Actual Behavior when i choose the groq's k2 model,the agent app's agent mode change to functioncalling(not react),it cause that tools not been used,the same ,but in workflow with an agent node it works well. so i think it may be a bug?it should match the ""ReAct“ rather then“function calling”
yindo closed this issue 2026-02-16 10:19:32 -05:00
Author
Owner
@crazywoola commented on GitHub (Jul 25, 2025): https://github.com/langgenius/dify-official-plugins/blob/23b53c78b307a057024fb2bbeff25debd84bf4da/models/moonshot/models/llm/kimi-k2-0711-preview.yaml#L6-L10 https://github.com/langgenius/dify-official-plugins/blob/431162ec3c63583c6ed04eba6668171edcec1626/models/siliconflow/models/llm/kimi-k2-instruct.yaml#L6-L7 https://github.com/langgenius/dify-official-plugins/blob/cefda56fbdd3871ee8884595bdb44688e1fab2b6/models/groq/models/llm/moonshotai-kimi-k2-instruct.yaml#L8-L12 See the attached files. From the picture, I think this is because you are using Siliconflow not Groq. Suggestion - Controlling variables is necessary when conducting experiments.
Author
Owner

@jndxhuxiehang commented on GitHub (Jul 25, 2025):

dify-official-plugins/models/moonshot/models/llm/kimi-k2-0711-preview.yaml

Lines 6 to 10 in 23b53c7

features:

Lines 6 to 7 in 431162e

features:

Lines 8 to 12 in cefda56

features:

  • agent-thought
  • tool-call
  • multi-tool-call
  • stream-tool-call
    See the attached files.

From the picture, I think this is because you are using Siliconflow not Groq.

Suggestion

  • Controlling variables is necessary when conducting experiments.

sorry,I give the wrong picture,in the wrong pic,i change the model to Siliconflow after i talk with qorq's api,now i show more pictures
Image

Image
@jndxhuxiehang commented on GitHub (Jul 25, 2025): > [dify-official-plugins/models/moonshot/models/llm/kimi-k2-0711-preview.yaml](https://github.com/langgenius/dify-official-plugins/blob/23b53c78b307a057024fb2bbeff25debd84bf4da/models/moonshot/models/llm/kimi-k2-0711-preview.yaml#L6-L10) > > Lines 6 to 10 in [23b53c7](/langgenius/dify-official-plugins/commit/23b53c78b307a057024fb2bbeff25debd84bf4da) > > features: > - agent-thought > - tool-call > - multi-tool-call > - stream-tool-call > [dify-official-plugins/models/siliconflow/models/llm/kimi-k2-instruct.yaml](https://github.com/langgenius/dify-official-plugins/blob/431162ec3c63583c6ed04eba6668171edcec1626/models/siliconflow/models/llm/kimi-k2-instruct.yaml#L6-L7) > > Lines 6 to 7 in [431162e](/langgenius/dify-official-plugins/commit/431162ec3c63583c6ed04eba6668171edcec1626) > > features: > - agent-thought > [dify-official-plugins/models/groq/models/llm/moonshotai-kimi-k2-instruct.yaml](https://github.com/langgenius/dify-official-plugins/blob/cefda56fbdd3871ee8884595bdb44688e1fab2b6/models/groq/models/llm/moonshotai-kimi-k2-instruct.yaml#L8-L12) > > Lines 8 to 12 in [cefda56](/langgenius/dify-official-plugins/commit/cefda56fbdd3871ee8884595bdb44688e1fab2b6) > > features: > - agent-thought > - tool-call > - multi-tool-call > - stream-tool-call > See the attached files. > > From the picture, I think this is because you are using Siliconflow not Groq. > > Suggestion > > * Controlling variables is necessary when conducting experiments. sorry,I give the wrong picture,in the wrong pic,i change the model to Siliconflow after i talk with qorq's api,now i show more pictures <img width="1592" height="293" alt="Image" src="https://github.com/user-attachments/assets/7601e3e1-1912-43dc-841b-1e76a5b43907" /> <img width="1554" height="1049" alt="Image" src="https://github.com/user-attachments/assets/98dbf77a-ec6b-4fd9-bd23-86769b67bf6c" />
Author
Owner

@dosubot[bot] commented on GitHub (Aug 20, 2025):

Hi, @jndxhuxiehang. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You reported that using the Groq K2 model in the agent app causes the mode to switch to function calling instead of ReAct, blocking tool usage.
  • A contributor suggested the issue might stem from using the Siliconflow model rather than Groq, due to differences in model feature settings.
  • You clarified the initial confusion with screenshots and provided updated images after switching models.
  • The discussion emphasized the importance of controlling variables carefully to identify the root cause.
  • The issue remains unresolved with no recent updates.

Next Steps:

  • Please let me know if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here.
  • If I don’t hear back within 5 days, I will automatically close this issue.

Thanks for your understanding and contribution!

@dosubot[bot] commented on GitHub (Aug 20, 2025): Hi, @jndxhuxiehang. I'm [Dosu](https://dosu.dev), and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale. **Issue Summary:** - You reported that using the Groq K2 model in the agent app causes the mode to switch to function calling instead of ReAct, blocking tool usage. - A contributor suggested the issue might stem from using the Siliconflow model rather than Groq, due to differences in model feature settings. - You clarified the initial confusion with screenshots and provided updated images after switching models. - The discussion emphasized the importance of controlling variables carefully to identify the root cause. - The issue remains unresolved with no recent updates. **Next Steps:** - Please let me know if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here. - If I don’t hear back within 5 days, I will automatically close this issue. Thanks for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#483