Replies: 14 comments 15 replies
-
|
To let users choose an LLM model provider instance when configuring a Dify plugin, you should add a parameter to your plugin's configuration file (usually YAML) that represents the provider selection. You can define this parameter as a string or a select type, and optionally provide a list of available providers as options. Here's a concrete example from an official plugin config: parameters:
- name: vlm_model_provider
type: string
required: false
default: openai
label:
en_US: VLM Model Provider
zh_Hans: VLM模型提供商
ja_JP: VLMモデルプロバイダー
human_description:
en_US: The provider of the VLM model
llm_description: The provider of the VLM model
form: form
# If you want a dropdown, add options:
# options:
# - value: openai
# label:
# en_US: OpenAI
# - value: azure
# label:
# en_US: AzureSee a real example here. If you want the UI to show a dropdown, use In your plugin's Python code, access the selected provider value from the parameters dictionary and use it to route requests or validate credentials. For best practices, localize labels/descriptions and validate the selected provider before use. For more examples, check how plugins like Qwen/Tongyi and OpenRouter handle user-selectable parameters in their YAML and Python files (reference). To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
I want to add an existed node's output variable type is a json array[object]. My plugin want to use this json array[object] as an input variable. I want restict the ui can only show the array type variables while user link nodes and configure it. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
我的plugin以debug方式部署后,在plugin的配置窗口里我定义的这个
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
首先我看到了mineru官方的插件中已经定义了images如下,那么为什么这个讨论(https://github.com/langgenius/dify-official-plugins/issues/2074)中问题还会出现? 是必须指明是image,而不能是object? 其次我如果要将json部分的数组输出,我也需要参照images,这样定义吗? |
Beta Was this translation helpful? Give feedback.
-
|
但是我在本地为这个mineru添加了 然后我需要做一个patch版本的时候为什么会提示下面的错误 dify plugin package mineru |
Beta Was this translation helpful? Give feedback.
-
|
我已经可以自己build出来一个修改了mineru的output_schema的patch版本的 那么我如何修改下面的定义的soul_pdf_chunk_plugin输入参数json_array,可以使用这个patch版本定义的jsons数组? identity:
|
Beta Was this translation helpful? Give feedback.
-
|
但是现在问题是在我新的Pdf Chunk Plugin中,我定义了json_array,但是我在UI上没有显示出来json_array的输入框, 需要怎么修改才能让webUI显示显示出来json_array,的输入框. |
Beta Was this translation helpful? Give feedback.
-
|
请dify官方尽快取消掉限制吧!!! 2025-12-03 19:00:38.086 INFO [GraphWorker-3] [_client.py:1038] - HTTP Request: POST http://sandbox:8194/v1/sandbox/run "HTTP/1.1 200 OK" |
Beta Was this translation helpful? Give feedback.
-
|
那对与系统预置好的比如模板转换节点是直接作为一个node节点存在,还是也是作为一个plugin存在的?我自定义的plugin能直接继承自模板转换节点吗? |
Beta Was this translation helpful? Give feedback.
-
|
parameters:
Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
-
|
但是在plugin的可选类型中还是有这个model-selector吗,也没有提示这个已经过时的参数,那我如何实现让用户在plugin的配置介面上让用户去配置一个系统级的llm模型呢? |
Beta Was this translation helpful? Give feedback.





Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
I want to develop a new dify plugin that the plugin will permit customer to select LLM model provider instance. How can I add this parameter to plugin configuration file to define this required parameter?
Where Can I find some examples that has similar functions?
2. Additional context or comments
No response
Beta Was this translation helpful? Give feedback.
All reactions