Agent node cannot run successfully when the model was configured as a local LLM service #52

Closed
opened 2026-02-16 10:17:53 -05:00 by yindo · 9 comments
Owner

Originally created by @panys-aircas on GitHub (Mar 10, 2025).

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

1.0.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I test run the agent node, it return messages as below:

状态
FAIL
运行时间
0.089s
总 token 数
0 Tokens
Failed to transform agent message: PluginInvokeError: {"args":{},"error_type":"ValidationError","message":"1 validation error for ReActParams\nmodel.entity\n Input should be a valid dictionary or instance of AIModelEntity [type=model_type, input_value=None, input_type=NoneType]\n For further information visit https://errors.pydantic.dev/2.8/v/model_type"}

It seems the entity was null that address to this error.

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @panys-aircas on GitHub (Mar 10, 2025). ### 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 1.0.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce I test run the agent node, it return messages as below: 状态 FAIL 运行时间 0.089s 总 token 数 0 Tokens Failed to transform agent message: PluginInvokeError: {"args":{},"error_type":"ValidationError","message":"1 validation error for ReActParams\nmodel.entity\n Input should be a valid dictionary or instance of AIModelEntity [type=model_type, input_value=None, input_type=NoneType]\n For further information visit https://errors.pydantic.dev/2.8/v/model_type"} It seems the entity was null that address to this error. ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo closed this issue 2026-02-16 10:17:53 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Mar 10, 2025):

Hey @panys-aircas! 👋 I'm here to help you with bug fixes, answer questions, and even guide you on how to contribute. Let's squash those bugs together!

I found two similar unsolved discussions that might be relevant to your issue:

  1. Agent node in workflow run status fails. [1]
  2. Error reported when running an agent in a workflow. [2]

For the "ValidationError" you're encountering when the model is configured as a local LLM service in a self-hosted Dify version 1.0.0 setup, a potential solution is to switch from the doubao-pro-128k model to the Deepseek model. This change should prevent the validation error from occurring while maintaining the same workflow configuration [3].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Mar 10, 2025): <!-- Greeting --> Hey @panys-aircas! 👋 I'm here to help you with bug fixes, answer questions, and even guide you on how to contribute. Let's squash those bugs together! <!-- Answer --> I found two similar unsolved discussions that might be relevant to your issue: 1. [Agent node in workflow run status fails.](https://github.com/langgenius/dify/discussions/12764) <sup>[[1]](https://github.com/langgenius/dify/discussions/12764)</sup> 2. [Error reported when running an agent in a workflow.](https://github.com/langgenius/dify/discussions/14807) <sup>[[2]](https://github.com/langgenius/dify/discussions/14807)</sup> For the "ValidationError" you're encountering when the model is configured as a local LLM service in a self-hosted Dify version 1.0.0 setup, a potential solution is to switch from the doubao-pro-128k model to the Deepseek model. This change should prevent the validation error from occurring while maintaining the same workflow configuration <sup>[[3]](https://github.com/langgenius/dify/issues/14684)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/e155788a-0d5f-4f2a-95d3-57d2d022c1a3?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/e155788a-0d5f-4f2a-95d3-57d2d022c1a3?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/e155788a-0d5f-4f2a-95d3-57d2d022c1a3?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/e155788a-0d5f-4f2a-95d3-57d2d022c1a3?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/e155788a-0d5f-4f2a-95d3-57d2d022c1a3?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/e155788a-0d5f-4f2a-95d3-57d2d022c1a3?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/e155788a-0d5f-4f2a-95d3-57d2d022c1a3?feedback_type=other)</sup>
Author
Owner

@panys-aircas commented on GitHub (Mar 11, 2025):

how to solve this problem

@panys-aircas commented on GitHub (Mar 11, 2025): how to solve this problem
Author
Owner

@HZJprince commented on GitHub (Mar 19, 2025):

same

@HZJprince commented on GitHub (Mar 19, 2025): same
Author
Owner

@xiaoleijian commented on GitHub (Mar 20, 2025):

+1

@xiaoleijian commented on GitHub (Mar 20, 2025): +1
Author
Owner

@SushiRoll53 commented on GitHub (Apr 1, 2025):

This problem still happening in 1.1.3 in both platforms, self-hosted and cloud. On the agent node using gpt-4o-mini with the model Azure OpenAI Service Model

@SushiRoll53 commented on GitHub (Apr 1, 2025): This problem still happening in 1.1.3 in both platforms, self-hosted and cloud. On the agent node using gpt-4o-mini with the model `Azure OpenAI Service Model`
Author
Owner

@haobin-ihealth commented on GitHub (Apr 7, 2025):

yes, when i used version 1.13 with azure openai gpt4-o-mini model, it return same error. but when i used gpt4-o , it successful.

@haobin-ihealth commented on GitHub (Apr 7, 2025): yes, when i used version 1.13 with azure openai gpt4-o-mini model, it return same error. but when i used gpt4-o , it successful.
Author
Owner

@Nov1c444 commented on GitHub (Apr 18, 2025):

Could you please provider your agent plugin's version? Maybe update the plugin's version could solve the issue

@Nov1c444 commented on GitHub (Apr 18, 2025): Could you please provider your agent plugin's version? Maybe update the plugin's version could solve the issue
Author
Owner

@SushiRoll53 commented on GitHub (Apr 18, 2025):

Updating the agent strategy to the most recent version, worked for me 👍

@SushiRoll53 commented on GitHub (Apr 18, 2025): Updating the agent strategy to the most recent version, worked for me 👍
Author
Owner

@Nov1c444 commented on GitHub (Apr 20, 2025):

Could you please provider your agent plugin's version? Maybe update the plugin's version could solve the issue

Does this solution resolve your issue? If so, could you please close the Issue? @panys-aircas

@Nov1c444 commented on GitHub (Apr 20, 2025): > Could you please provider your agent plugin's version? Maybe update the plugin's version could solve the issue Does this solution resolve your issue? If so, could you please close the Issue? @panys-aircas
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#52