mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
Workflow using lm studio error #231
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 @shihuimin1012 on GitHub (Apr 27, 2025).
Self Checks
Dify version
1.2.0
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
I am using LM Studio to build a local large model (deepseek). After configuring LM Studio in Dify, I tested that the chat assistant can answer normally when selecting this model, but the workflow always selects this model and reports an error. The information is as follows
1 validation error for LLMNodeData model.mode Field required [type=missing, input_value={'provider': 'stvlynn/lms...': {'temperature': 0.7}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.9/v/missing✔️ Expected Behavior
Normally used in workflow
❌ Actual Behavior
No response
@dosubot[bot] commented on GitHub (Apr 27, 2025):
Hello @shihuimin1012! I'm Dosu, your friendly bot here to assist with bugs, questions, and becoming a contributor. I'm here to help while you wait for a human maintainer. Let's get into it! 🚀
To resolve the Pydantic validation error indicating a missing required field 'model.mode' in the 'LLMNodeData' model, ensure that the 'mode' parameter is included in your model configuration. This parameter specifies the operational mode of the model, which can be either 'completion' or 'chat', depending on your use case. Including this parameter should resolve the error and allow the model to function correctly. Additionally, verify that the model's credentials are initialized and that the model is supported and within quota limits, as these conditions can also affect the model's operation [1].
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
@shihuimin1012 commented on GitHub (Apr 27, 2025):
已选择,还是报错。是否有人解决
@httkotori
@shawstar12 commented on GitHub (Apr 28, 2025):
@shihuimin1012 请问这个问题解决了吗?
@httkotori commented on GitHub (May 1, 2025):
请使用市场提供的插件OpenAI-API-compatible
@mofahqc commented on GitHub (Aug 8, 2025):
[openai_api_compatible] Error: req_id: 129b532178 PluginInvokeError: {"args":{},"error_type":"ValueError","message":"Unexpected endpoint or method. (POST /completions)"}@dosubot[bot] commented on GitHub (Aug 24, 2025):
Hi, @shihuimin1012. 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!
@shihuimin1012 commented on GitHub (Sep 1, 2025):
我使用了OpenAI-API 解决了
但是出现了新的问题
@dosubot[bot] commented on GitHub (Sep 1, 2025):
@crazywoola The user shihuimin1012 mentioned they resolved the original issue using OpenAI-API but encountered a new problem afterward and would appreciate your assistance. Could you please take a look?