dify icon indicating copy to clipboard operation
dify copied to clipboard

Invalid LLM mode: None

Open wys2641970184 opened this issue 9 months ago • 1 comments

Self Checks

  • [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [x] Please do not modify this template :) and fill in all the required fields.

Dify version

1.2.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I was able to create a chatbot that can interact with the model, but when creating an agent, an error occurred.error info: Invalid LLM mode: None

Image

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

wys2641970184 avatar Apr 16 '25 01:04 wys2641970184

Hello @wys2641970184! I'm Dosu, your friendly bot here to help you with bugs, questions, and contributions while you wait for a human maintainer. Let's tackle that issue together!

The "Invalid LLM mode: None" error typically occurs when the model_mode is not set or is missing during the agent creation process. This is a common issue when the LLM mode is not specified, and the system requires it to proceed [1].

To resolve this issue, ensure that the LLM mode is correctly configured in your setup. You might need to check the configuration settings related to the model you are using, especially in the context of a self-hosted Docker environment. Make sure that the model schema includes a valid LLM mode and that it is properly set in your configuration files or during the agent setup process.

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] avatar Apr 16 '25 01:04 dosubot[bot]