mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
Agent ReAct mode doesn't fit with gpt-oss model #523
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dickens88 on GitHub (Aug 5, 2025).
Self Checks
Dify version
v1.7.1
Plugin version
Dify Agent Strategies 0.0.23
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Hi Team,
I set up gpt-oss:20b in my local ollama. I tried to configure this model into Agent node with ReAct mode. It seems the agent can not get anything with this mode, it always reply the same.
Then i changed it to Function calling mode, it works. But we know the difference between these two modes, the ReAct is more helpful in some cases. so that i hope someone can help and fix it. thank you.
✔️ Error log
No response
@dickens88 commented on GitHub (Aug 6, 2025):
I tried Qwen3:30b-a3b model, everything works fine with ReACT. With gpt-oss, if the question doesnt need any function calling everthing is fine, until I ask about time. So i suppose:
_handle_invoke_actionto execute the tool, then feed theobservationback to the LLM to continue to the next round.@QuietRocket commented on GitHub (Aug 7, 2025):
gpt-oss is a native reasoning model. ReAct was introduced at a time where models weren't trained to reason. Rather, we prompted them to imitate reasoning.
If I am not mistaken, the ReAct agent strategy induces a chain-of-thought like process through prompting.
According to OpenAI's documentation on best practices for reasoning models, they explicitly say:
Thus, your observation that ReAct isn't working well is rather normal. The function calling agent strategy should yield better results because the agent knows how to plan and reason on its own.
@dickens88 commented on GitHub (Aug 7, 2025):
Thank you for your reply, your explanation is very reasonable. We understand that COT is a relatively good approach. If, as OPENAI suggests, there are better practices for gpt-oss that do not involve COT prompts, I will proceed to test the effectiveness of gpt-oss in handling complex tool invocations.
Anyway, Function calling strategy works fine with gpt-oss. : )
@dosubot[bot] commented on GitHub (Aug 23, 2025):
Hi, @dickens88. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.
Issue Summary:
Next Steps:
Thank you for your understanding and contribution!