Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SearXNG Query Error #15884

Open
5 tasks done
IAMJOYBO opened this issue Mar 14, 2025 · 2 comments
Open
5 tasks done

SearXNG Query Error #15884

IAMJOYBO opened this issue Mar 14, 2025 · 2 comments
Labels
🤔 cant-reproduce We can not reproduce it or the information is limited

Comments

@IAMJOYBO
Copy link

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

v1.0.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image

Image

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

Copy link

dosubot bot commented Mar 14, 2025

To resolve the PluginInvokeError with a ValidationError in a searxng_search operation when using a self-hosted Dify version 1.0.1 with Docker, you can follow these steps:

  1. Navigate to the plugin directory:

    volumes/plugin_daemon/cwd/langgenius/agent-0.0.9@f16916b704a20067317dbe9030f62aa28f0832021a3ef6d4ce699504074c5e13/.venv/lib64/python3.12/site-packages/dify_plugin/interfaces/agent
    
  2. Modify the __init__.py file by changing the AgentModelConfig class:

    # Change from:
    class AgentModelConfig(LLMModelConfig):
        entity: AIModelEntity
    
    # To:
    class AgentModelConfig(LLMModelConfig):
        entity: Optional[AIModelEntity] = Field(default=None)
  3. Restart the plugin daemon container:

    docker restart docker-plugin_daemon-1

This should address the validation error you're encountering [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

@dosubot dosubot bot added the 🤔 cant-reproduce We can not reproduce it or the information is limited label Mar 14, 2025
@IAMJOYBO
Copy link
Author

To resolve the PluginInvokeError with a ValidationError in a searxng_search operation when using a self-hosted Dify version 1.0.1 with Docker, you can follow these steps:

  1. Navigate to the plugin directory:

    volumes/plugin_daemon/cwd/langgenius/agent-0.0.9@f16916b704a20067317dbe9030f62aa28f0832021a3ef6d4ce699504074c5e13/.venv/lib64/python3.12/site-packages/dify_plugin/interfaces/agent
    
  2. Modify the __init__.py file by changing the AgentModelConfig class:

    Change from:

    class AgentModelConfig(LLMModelConfig):
    entity: AIModelEntity

    To:

    class AgentModelConfig(LLMModelConfig):
    entity: Optional[AIModelEntity] = Field(default=None)

  3. Restart the plugin daemon container:
    docker restart docker-plugin_daemon-1

This should address the validation error you're encountering [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

No Dir
Image

Modify SearXNG and restart docker-plugin_daemon-1 ,There is no effect
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤔 cant-reproduce We can not reproduce it or the information is limited
Projects
None yet
Development

No branches or pull requests

1 participant