Enable ReAct Agent Mode for models that do not support function calls on OpenRouter #219

Closed
opened 2026-02-16 10:18:29 -05:00 by yindo · 4 comments
Owner

Originally created by @cecaa1030 on GitHub (Apr 23, 2025).

Self Checks

  • 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.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

When adding LLM through OpenRouter, if it does not support function call, it cannot be used in Agent.
Although LLM like microsoft/mai-ds-r1:free does not support function call, it can be used in the agent through ReAct's Agent Mode.

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @cecaa1030 on GitHub (Apr 23, 2025). ### Self Checks - [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. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. When adding LLM through OpenRouter, if it does not support function call, it cannot be used in Agent. Although LLM like microsoft/mai-ds-r1:free does not support function call, it can be used in the agent through ReAct's Agent Mode. ### 2. Additional context or comments _No response_ ### 3. Can you help us with this feature? - [ ] I am interested in contributing to this feature.
yindo added the good first issue label 2026-02-16 10:18:29 -05:00
yindo closed this issue 2026-02-16 10:18:29 -05:00
Author
Owner

@biswas2200 commented on GitHub (May 11, 2025):

#ieeesoc

Title - Enable ReAct Agent Mode fallback for models without function call support on OpenRouter.

Overview - I would like to work on enhancing agent functionality by enabling ReAct Agent Mode for models accessed via OpenRouter that do not support function calling, allowing them to function within the agent framework.

Motivation - Currently, models like microsoft/mai-ds-r1:free cannot be used as agents due to the lack of function call support. Enabling ReAct fallback will improve model compatibility, making the platform more flexible and user-friendly.

Deliverables -

  • Update backend logic to detect when a model does not support function calls.
  • Implement fallback to ReAct Agent Mode for such models.
  • Add relevant tests and update documentation if necessary.

Dependencies -

  • Dify backend repository
  • OpenRouter model capabilities documentation (if available)
  • ReAct Agent pattern (for reasoning and acting without structured function calls)

I am ready to work following the project's best practices. Please assign this issue to me.

@biswas2200 commented on GitHub (May 11, 2025): #ieeesoc Title - Enable ReAct Agent Mode fallback for models without function call support on OpenRouter. Overview - I would like to work on enhancing agent functionality by enabling ReAct Agent Mode for models accessed via OpenRouter that do not support function calling, allowing them to function within the agent framework. Motivation - Currently, models like microsoft/mai-ds-r1:free cannot be used as agents due to the lack of function call support. Enabling ReAct fallback will improve model compatibility, making the platform more flexible and user-friendly. Deliverables - - Update backend logic to detect when a model does not support function calls. - Implement fallback to ReAct Agent Mode for such models. - Add relevant tests and update documentation if necessary. Dependencies - - [Dify backend repository](https://github.com/langgenius/dify) - OpenRouter model capabilities documentation (if available) - ReAct Agent pattern (for reasoning and acting without structured function calls) I am ready to work following the project's best practices. Please assign this issue to me.
Author
Owner

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

Hi, @cecaa1030. 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 requested enabling ReAct Agent Mode for OpenRouter models that do not support function calls, like microsoft/mai-ds-r1:free.
  • This would allow these models to be used in Agent mode, improving compatibility.
  • Contributor biswas2200 showed interest in implementing this by updating backend logic to detect unsupported models and fallback to ReAct mode.
  • Plans include adding tests and documentation to support this enhancement.
  • The work is pending assignment and has not yet started.

Next Steps:

  • Please let me know if this issue is still relevant with the latest version of dify-official-plugins by commenting here to keep the discussion open.
  • If I do not hear back within 5 days, I will automatically close this issue.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Aug 18, 2025): Hi, @cecaa1030. 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 requested enabling ReAct Agent Mode for OpenRouter models that do not support function calls, like microsoft/mai-ds-r1:free. - This would allow these models to be used in Agent mode, improving compatibility. - Contributor biswas2200 showed interest in implementing this by updating backend logic to detect unsupported models and fallback to ReAct mode. - Plans include adding tests and documentation to support this enhancement. - The work is pending assignment and has not yet started. **Next Steps:** - Please let me know if this issue is still relevant with the latest version of dify-official-plugins by commenting here to keep the discussion open. - If I do not hear back within 5 days, I will automatically close this issue. Thank you for your understanding and contribution!
Author
Owner

@cecaa1030 commented on GitHub (Aug 20, 2025):

yes, the issue is still there with latest version dify

dosubot[bot] @.***> 于 2025年8月19日周二 00:04写道:

dosubot[bot] left a comment (langgenius/dify-official-plugins#778)
https://github.com/langgenius/dify-official-plugins/issues/778#issuecomment-3197532876

Hi, @cecaa1030 https://github.com/cecaa1030. 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 requested enabling ReAct Agent Mode for OpenRouter models that
    do not support function calls, like microsoft/mai-ds-r1:free.
  • This would allow these models to be used in Agent mode, improving
    compatibility.
  • Contributor biswas2200 showed interest in implementing this by
    updating backend logic to detect unsupported models and fallback to ReAct
    mode.
  • Plans include adding tests and documentation to support this
    enhancement.
  • The work is pending assignment and has not yet started.

Next Steps:

  • Please let me know if this issue is still relevant with the latest
    version of dify-official-plugins by commenting here to keep the discussion
    open.
  • If I do not hear back within 5 days, I will automatically close this
    issue.

Thank you for your understanding and contribution!


Reply to this email directly, view it on GitHub
https://github.com/langgenius/dify-official-plugins/issues/778#issuecomment-3197532876,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABGIMV2LEPVZ4WBULURU3433OH2RXAVCNFSM6AAAAAB3VS7WY6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTCOJXGUZTEOBXGY
.
You are receiving this because you were mentioned.Message ID:
@.***>

@cecaa1030 commented on GitHub (Aug 20, 2025): yes, the issue is still there with latest version dify dosubot[bot] ***@***.***> 于 2025年8月19日周二 00:04写道: > *dosubot[bot]* left a comment (langgenius/dify-official-plugins#778) > <https://github.com/langgenius/dify-official-plugins/issues/778#issuecomment-3197532876> > > Hi, @cecaa1030 <https://github.com/cecaa1030>. 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 requested enabling ReAct Agent Mode for OpenRouter models that > do not support function calls, like microsoft/mai-ds-r1:free. > - This would allow these models to be used in Agent mode, improving > compatibility. > - Contributor biswas2200 showed interest in implementing this by > updating backend logic to detect unsupported models and fallback to ReAct > mode. > - Plans include adding tests and documentation to support this > enhancement. > - The work is pending assignment and has not yet started. > > *Next Steps:* > > - Please let me know if this issue is still relevant with the latest > version of dify-official-plugins by commenting here to keep the discussion > open. > - If I do not hear back within 5 days, I will automatically close this > issue. > > Thank you for your understanding and contribution! > > — > Reply to this email directly, view it on GitHub > <https://github.com/langgenius/dify-official-plugins/issues/778#issuecomment-3197532876>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABGIMV2LEPVZ4WBULURU3433OH2RXAVCNFSM6AAAAAB3VS7WY6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTCOJXGUZTEOBXGY> > . > You are receiving this because you were mentioned.Message ID: > ***@***.***> >
Author
Owner

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

@crazywoola Could you please assist with this issue, as the user has confirmed it is still relevant in the latest version?

@dosubot[bot] commented on GitHub (Aug 20, 2025): @crazywoola Could you please assist with this issue, as the user has confirmed it is still relevant in the latest version?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#219