Uploading pictures in the workflow seems to get an error #11879

Closed
opened 2026-02-21 19:04:31 -05:00 by yindo · 25 comments
Owner

Originally created by @xingxi521 on GitHub (Mar 20, 2025).

Originally assigned to: @laipz8200 on GitHub.

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.1.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image

✔️ Expected Behavior

Normal output

Actual Behavior

Run failed: [openai] Error: PluginInvokeError: {"args":{},"error_type":"ValidationError","message":"1 validation error for ModelInvokeLLMRequest\nprompt_messages.content.type\n Input should be \u003cPromptMessageContentType.TEXT: 'text'\u003e [type=literal_error, input_value='text', input_type=str]\n For further information visit

Originally created by @xingxi521 on GitHub (Mar 20, 2025). Originally assigned to: @laipz8200 on GitHub. ### 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.1.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ![Image](https://github.com/user-attachments/assets/96b513c4-1457-429b-9675-6b48f01e366d) ### ✔️ Expected Behavior Normal output ### ❌ Actual Behavior Run failed: [openai] Error: PluginInvokeError: {"args":{},"error_type":"ValidationError","message":"1 validation error for ModelInvokeLLMRequest\nprompt_messages.content.type\n Input should be \u003cPromptMessageContentType.TEXT: 'text'\u003e [type=literal_error, input_value='text', input_type=str]\n For further information visit
yindo added the 🐞 bug🌊 feat:workflowcloud labels 2026-02-21 19:04:31 -05:00
yindo closed this issue 2026-02-21 19:04:31 -05:00
Author
Owner

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

Hello @xingxi521! I'm here to help you with any bugs, questions, or contributions you have for the Dify project. I'm a bot designed to assist you while you wait for a human maintainer.

The error you're encountering seems to be related to a validation issue with the input type for the ModelInvokeLLMRequest. The error message indicates that the input should be of type PromptMessageContentType.TEXT. This suggests that there might be a mismatch between the expected input type and the actual input provided in the workflow.

To resolve this issue, ensure that the input being passed to the LLM node is correctly formatted as a PromptMessage with content type TEXT. You might need to check the configuration of the input node and ensure that it aligns with the expected input type for the gpt-4-turbo model.

Additionally, you might find it helpful to review the documentation on handling image inputs in workflows, as it provides guidance on setting up image processing nodes and ensuring the correct input types are used [1][2].

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 20, 2025): <!-- Greeting --> Hello @xingxi521! I'm here to help you with any bugs, questions, or contributions you have for the Dify project. I'm a bot designed to assist you while you wait for a human maintainer. <!-- Answer --> The error you're encountering seems to be related to a validation issue with the input type for the `ModelInvokeLLMRequest`. The error message indicates that the input should be of type `PromptMessageContentType.TEXT`. This suggests that there might be a mismatch between the expected input type and the actual input provided in the workflow. To resolve this issue, ensure that the input being passed to the LLM node is correctly formatted as a `PromptMessage` with content type `TEXT`. You might need to check the configuration of the input node and ensure that it aligns with the expected input type for the `gpt-4-turbo` model. Additionally, you might find it helpful to review the documentation on handling image inputs in workflows, as it provides guidance on setting up image processing nodes and ensuring the correct input types are used <sup>[[1]](https://github.com/langgenius/dify-docs/blob/main/en/guides/tools/tool-configuration/comfyui.md)</sup><sup>[[2]](https://github.com/langgenius/dify-docs/blob/main/en/guides/workflow/node/start.md)</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/d67665a9-406b-4154-b0e0-2059f995e228?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/d67665a9-406b-4154-b0e0-2059f995e228?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/d67665a9-406b-4154-b0e0-2059f995e228?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/d67665a9-406b-4154-b0e0-2059f995e228?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/d67665a9-406b-4154-b0e0-2059f995e228?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/d67665a9-406b-4154-b0e0-2059f995e228?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/d67665a9-406b-4154-b0e0-2059f995e228?feedback_type=other)</sup>
Author
Owner

@onlylhf commented on GitHub (Mar 21, 2025):

Image

The same problem

@onlylhf commented on GitHub (Mar 21, 2025): ![Image](https://github.com/user-attachments/assets/897684c3-6496-443a-9d89-b0cadc11a9f9) The same problem
Author
Owner

@wuhy198607 commented on GitHub (Mar 21, 2025):

same to me

@wuhy198607 commented on GitHub (Mar 21, 2025): same to me
Author
Owner

@Cxxxl commented on GitHub (Mar 21, 2025):

any help?

@Cxxxl commented on GitHub (Mar 21, 2025): any help?
Author
Owner

@pmchangchao commented on GitHub (Mar 21, 2025):

I'm encountering the same issue. When passing an image variable from an upstream node to an LLM node in Dify workflow, I get this validation error:
Image
[openai] Error: PluginInvokeError: {"args":{},"error_type":"ValidationError","message":"1 validation error for ModelInvokeLLMRequest\nprompt_messages.content.type\n Input should be <PromptMessageContentType.IMAGE: 'image'> [type=literal_error, input_value='image', input_type=str]"}

The strange part is this exact JSON structure worked before:
{ "#files#": [ { "dify_model_identity": "__dify__file__", "type": "image", "transfer_method": "remote_url", "remote_url": "...", "mime_type": "image/jpeg" } ] }

It seems Pydantic now expects an enum value (PromptMessageContentType.IMAGE) instead of the string "image". Has there been a recent change in how image variables should be handled?

@pmchangchao commented on GitHub (Mar 21, 2025): I'm encountering the same issue. When passing an image variable from an upstream node to an LLM node in Dify workflow, I get this validation error: <img width="580" alt="Image" src="https://github.com/user-attachments/assets/eea13661-1ca7-4cc6-9f79-f66c1035bb9b" /> `[openai] Error: PluginInvokeError: {"args":{},"error_type":"ValidationError","message":"1 validation error for ModelInvokeLLMRequest\nprompt_messages.content.type\n Input should be <PromptMessageContentType.IMAGE: 'image'> [type=literal_error, input_value='image', input_type=str]"}` The strange part is this exact JSON structure worked before: `{ "#files#": [ { "dify_model_identity": "__dify__file__", "type": "image", "transfer_method": "remote_url", "remote_url": "...", "mime_type": "image/jpeg" } ] }` It seems Pydantic now expects an enum value (PromptMessageContentType.IMAGE) instead of the string "image". Has there been a recent change in how image variables should be handled?
Author
Owner

@lindsey-chang commented on GitHub (Mar 24, 2025):

Same problem😭.... The LLM was able to accept and understand images last Friday, but with the same workflow today it doesn’t run and gives the same error as you reported.

@lindsey-chang commented on GitHub (Mar 24, 2025): Same problem😭.... The LLM was able to accept and understand images last Friday, but with the same workflow today it doesn’t run and gives the same error as you reported.
Author
Owner

@leozanee commented on GitHub (Mar 24, 2025):

same with me, in my test just openai's plugin trigger this issue:

api-1            | 2025-03-24 11:37:29.205 ERROR [Thread-20 (_generate_worker)] [app_generator.py:246] - Unknown Error when generating
api-1            | Traceback (most recent call last):
api-1            |   File "/app/api/core/app/apps/chat/app_generator.py", line 226, in _generate_worker
api-1            |     runner.run(
api-1            |   File "/app/api/core/app/apps/chat/app_runner.py", line 69, in run
api-1            |     self.get_pre_calculate_rest_tokens(
api-1            |   File "/app/api/core/app/apps/base_app_runner.py", line 90, in get_pre_calculate_rest_tokens
api-1            |     prompt_tokens = model_instance.get_llm_num_tokens(prompt_messages)
api-1            |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1            |   File "/app/api/core/model_manager.py", line 195, in get_llm_num_tokens
api-1            |     self._round_robin_invoke(
api-1            |   File "/app/api/core/model_manager.py", line 370, in _round_robin_invoke
api-1            |     return function(*args, **kwargs)
api-1            |            ^^^^^^^^^^^^^^^^^^^^^^^^^
api-1            |   File "/app/api/core/model_runtime/model_providers/__base/large_language_model.py", line 299, in get_num_tokens
api-1            |     return plugin_model_manager.get_llm_num_tokens(
api-1            |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1            |   File "/app/api/core/plugin/manager/model.py", line 231, in get_llm_num_tokens
api-1            |     for resp in response:
api-1            |                 ^^^^^^^^
api-1            |   File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream
api-1            |     self._handle_plugin_daemon_error(error.error_type, error.message)
api-1            |   File "/app/api/core/plugin/manager/base.py", line 221, in _handle_plugin_daemon_error
api-1            |     raise PluginInvokeError(description=message)
api-1            | core.plugin.manager.exc.PluginInvokeError: PluginInvokeError: {"args":{},"error_type":"ValidationError","message":"1 validation error for ModelGetLLMNumTokens\nprompt_messages.content.type\n  Input should be \u003cPromptMessageContentType.TEXT: 'text'\u003e [type=literal_error, input_value='text', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.8/v/literal_error"}
api-1            | 2025-03-24 11:37:29.221 ERROR [Dummy-21] [base_app_generate_response_converter.py:123] - {"args":{},"error_type":"ValidationError","message":"1 validation error for ModelGetLLMNumTokens\nprompt_messages.content.type\n  Input should be \u003cPromptMessageContentType.TEXT: 'text'\u003e [type=literal_error, input_value='text', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.8/v/literal_error"}

Besides, i'm building my own plugin package, same problem

@leozanee commented on GitHub (Mar 24, 2025): same with me, in my test just **openai's plugin** trigger this issue: ``` api-1 | 2025-03-24 11:37:29.205 ERROR [Thread-20 (_generate_worker)] [app_generator.py:246] - Unknown Error when generating api-1 | Traceback (most recent call last): api-1 | File "/app/api/core/app/apps/chat/app_generator.py", line 226, in _generate_worker api-1 | runner.run( api-1 | File "/app/api/core/app/apps/chat/app_runner.py", line 69, in run api-1 | self.get_pre_calculate_rest_tokens( api-1 | File "/app/api/core/app/apps/base_app_runner.py", line 90, in get_pre_calculate_rest_tokens api-1 | prompt_tokens = model_instance.get_llm_num_tokens(prompt_messages) api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/core/model_manager.py", line 195, in get_llm_num_tokens api-1 | self._round_robin_invoke( api-1 | File "/app/api/core/model_manager.py", line 370, in _round_robin_invoke api-1 | return function(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/core/model_runtime/model_providers/__base/large_language_model.py", line 299, in get_num_tokens api-1 | return plugin_model_manager.get_llm_num_tokens( api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/core/plugin/manager/model.py", line 231, in get_llm_num_tokens api-1 | for resp in response: api-1 | ^^^^^^^^ api-1 | File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream api-1 | self._handle_plugin_daemon_error(error.error_type, error.message) api-1 | File "/app/api/core/plugin/manager/base.py", line 221, in _handle_plugin_daemon_error api-1 | raise PluginInvokeError(description=message) api-1 | core.plugin.manager.exc.PluginInvokeError: PluginInvokeError: {"args":{},"error_type":"ValidationError","message":"1 validation error for ModelGetLLMNumTokens\nprompt_messages.content.type\n Input should be \u003cPromptMessageContentType.TEXT: 'text'\u003e [type=literal_error, input_value='text', input_type=str]\n For further information visit https://errors.pydantic.dev/2.8/v/literal_error"} api-1 | 2025-03-24 11:37:29.221 ERROR [Dummy-21] [base_app_generate_response_converter.py:123] - {"args":{},"error_type":"ValidationError","message":"1 validation error for ModelGetLLMNumTokens\nprompt_messages.content.type\n Input should be \u003cPromptMessageContentType.TEXT: 'text'\u003e [type=literal_error, input_value='text', input_type=str]\n For further information visit https://errors.pydantic.dev/2.8/v/literal_error"} ``` Besides, i'm building my own plugin package, same problem
Author
Owner

@duynvher commented on GitHub (Mar 24, 2025):

same problem

@duynvher commented on GitHub (Mar 24, 2025): same problem
Author
Owner

@luxiang0412 commented on GitHub (Mar 24, 2025):

same problem

@luxiang0412 commented on GitHub (Mar 24, 2025): same problem
Author
Owner

@DustScribe commented on GitHub (Mar 24, 2025):

same problem

@DustScribe commented on GitHub (Mar 24, 2025): same problem
Author
Owner

@lnxyz commented on GitHub (Mar 25, 2025):

same problem in v 1.1.3

@lnxyz commented on GitHub (Mar 25, 2025): same problem in v 1.1.3
Author
Owner

@Shotaro-Yoshinaga-sti commented on GitHub (Mar 26, 2025):

Same problem too.

I don't know how to fix it, but I believe this is the problem.
Sorry if I am wrong.

[dify]

                            if content.type == PromptMessageContentType.TEXT
                            else "[image]"
                            if content.type == PromptMessageContentType.IMAGE
                            else "[file]"

https://github.com/langgenius/dify/blob/d87d66ab88d4c794c1bed3bcb5fa881070ce7472/api/core/agent/fc_agent_runner.py#L438C1-L441C42

[dify-official-plugins azure_openai]

                                    if item.type == PromptMessageContentType.TEXT
                                    else "[IMAGE]"
                                    if item.type == PromptMessageContentType.IMAGE
                                    else ""

https://github.com/langgenius/dify-official-plugins/blob/cc0defe39607cb9739aed89f0428b7fc885a32c4/models/azure_openai/models/llm/llm.py#L413-L416

[dify-official-plugins openai]

                                    if item.type == PromptMessageContentType.TEXT
                                    else "[IMAGE]"
                                    if item.type == PromptMessageContentType.IMAGE
                                    else ""

https://github.com/langgenius/dify-official-plugins/blob/cc0defe39607cb9739aed89f0428b7fc885a32c4/models/openai/models/llm/llm.py#L1086-L1089

@Shotaro-Yoshinaga-sti commented on GitHub (Mar 26, 2025): Same problem too. ~~I don't know how to fix it, but I believe this is the problem.~~ ~~Sorry if I am wrong.~~ ~~[dify]~~ ``` if content.type == PromptMessageContentType.TEXT else "[image]" if content.type == PromptMessageContentType.IMAGE else "[file]" ``` ~~https://github.com/langgenius/dify/blob/d87d66ab88d4c794c1bed3bcb5fa881070ce7472/api/core/agent/fc_agent_runner.py#L438C1-L441C42~~ ~~[dify-official-plugins azure_openai]~~ ``` if item.type == PromptMessageContentType.TEXT else "[IMAGE]" if item.type == PromptMessageContentType.IMAGE else "" ``` ~~https://github.com/langgenius/dify-official-plugins/blob/cc0defe39607cb9739aed89f0428b7fc885a32c4/models/azure_openai/models/llm/llm.py#L413-L416~~ ~~[dify-official-plugins openai]~~ ``` if item.type == PromptMessageContentType.TEXT else "[IMAGE]" if item.type == PromptMessageContentType.IMAGE else "" ``` ~~https://github.com/langgenius/dify-official-plugins/blob/cc0defe39607cb9739aed89f0428b7fc885a32c4/models/openai/models/llm/llm.py#L1086-L1089~~
Author
Owner

@lichao4Java commented on GitHub (Mar 26, 2025):

https://github.com/langgenius/dify/issues/16816

same issues with me .... waiting for goods news.

@lichao4Java commented on GitHub (Mar 26, 2025): https://github.com/langgenius/dify/issues/16816 same issues with me .... waiting for goods news.
Author
Owner

@lichao4Java commented on GitHub (Mar 26, 2025):

Is there any progress?

@lichao4Java commented on GitHub (Mar 26, 2025): Is there any progress?
Author
Owner

@kurokobo commented on GitHub (Mar 26, 2025):

@laipz8200 @crazywoola @Yeuoly
I made a quick investigation and can confirm this issue is introduced in the SDK 0.0.1b74.

After the release of version 0.0.1b74, this issue occurs with the model plugins that have dependencies with the latest dify_plugin. For example, OpenAI has dify_plugin~=0.0.1b66 in its requirements.txt, which means that the latest compatible version will be installed at the time of installation, causing 0.0.1b74 to be installed.

In version 0.0.1b74, prompts of this kind with only text can be handled correctly,

    "prompt_messages": [
      {
        "role": "user",
        "content": "hello",
        "name": null
      }
    ],

but it seems that type checking results in an error with multimodal prompt messages like the following.

    "prompt_messages": [
      {
        "role": "user",
        "content": [
          {
            "type": "text",
            "data": "hello with image"
          },
          {
            "type": "image",
            "format": "png",
            "base64_data": "iVBORw0...(omit)...TkSuQmCC",
            "url": "",
            "mime_type": "image/png",
            "detail": "high"
          }
        ],

The error occurs in get_llm_num_tokens here:

https://github.com/langgenius/dify-plugin-sdks/blob/0.0.1-beta.48/python/dify_plugin/core/plugin_executor.py#L147

I didn't make any further investigation, but perhaps this issue was introduced by https://github.com/langgenius/dify-plugin-sdks/pull/49 by @laipz8200.

I have sent PRs to pin the SDK version up to 0.0.1b73 as a quick workaround.

@kurokobo commented on GitHub (Mar 26, 2025): @laipz8200 @crazywoola @Yeuoly I made a quick investigation and can confirm this issue is introduced in the SDK **0.0.1b74**. After the release of version `0.0.1b74`, this issue occurs with the model plugins that have dependencies with the latest `dify_plugin`. For example, OpenAI has `dify_plugin~=0.0.1b66` in its `requirements.txt`, which means that the latest compatible version will be installed at the time of installation, causing `0.0.1b74` to be installed. In version `0.0.1b74`, prompts of this kind with only text can be handled correctly, ```json "prompt_messages": [ { "role": "user", "content": "hello", "name": null } ], ``` but it seems that type checking results in an error with multimodal prompt messages like the following. ```json "prompt_messages": [ { "role": "user", "content": [ { "type": "text", "data": "hello with image" }, { "type": "image", "format": "png", "base64_data": "iVBORw0...(omit)...TkSuQmCC", "url": "", "mime_type": "image/png", "detail": "high" } ], ``` The error occurs in `get_llm_num_tokens` here: https://github.com/langgenius/dify-plugin-sdks/blob/0.0.1-beta.48/python/dify_plugin/core/plugin_executor.py#L147 I didn't make any further investigation, but perhaps this issue was introduced by https://github.com/langgenius/dify-plugin-sdks/pull/49 by @laipz8200. I have sent PRs to pin the SDK version up to `0.0.1b73` as a quick workaround. - https://github.com/langgenius/dify-official-plugins/pull/568 - https://github.com/langgenius/dify-official-plugins/pull/569 - https://github.com/langgenius/dify-official-plugins/pull/572
Author
Owner

@Shotaro-Yoshinaga-sti commented on GitHub (Mar 26, 2025):

@kurokobo
Thanks for your help!
In my case, I downloaded and installed the version 0.0.8 package from the marketplace and the above advice temporarily solved the problem.

Dify: v1.0.1

Image
Image

@Shotaro-Yoshinaga-sti commented on GitHub (Mar 26, 2025): @kurokobo Thanks for your help! In my case, I downloaded and installed the version 0.0.8 package from the marketplace and the above advice temporarily solved the problem. Dify: v1.0.1 ![Image](https://github.com/user-attachments/assets/b847e68f-0500-4b8d-920e-6e61ddf9925d) ![Image](https://github.com/user-attachments/assets/36cfca9d-e2d9-4190-9bad-daef424c3234)
Author
Owner

@kurokobo commented on GitHub (Mar 26, 2025):

Temporary workarounds have been released. For those facing this issue, upgrade your plugin and give it another try :)

  • Azure OpenAI: >= 0.0.11
  • OpenAI: >= 0.0.14
  • OpenRouter: >=0.0.6
@kurokobo commented on GitHub (Mar 26, 2025): Temporary workarounds have been released. For those facing this issue, upgrade your plugin and give it another try :) - Azure OpenAI: **>= 0.0.11** - OpenAI: **>= 0.0.14** - OpenRouter: **>=0.0.6**
Author
Owner

@laipz8200 commented on GitHub (Mar 26, 2025):

@kurokobo Hi,
Thanks a bunch! I’m working on fixing this issue in https://github.com/langgenius/dify-plugin-sdks/pull/73. Would you mind checking it out?

@laipz8200 commented on GitHub (Mar 26, 2025): @kurokobo Hi, Thanks a bunch! I’m working on fixing this issue in https://github.com/langgenius/dify-plugin-sdks/pull/73. Would you mind checking it out?
Author
Owner

@Carey8175 commented on GitHub (Mar 26, 2025):

Temporary workarounds have been released. For those facing this issue, upgrade your plugin and give it another try :)

  • Azure OpenAI: >= 0.0.11
  • OpenAI: >= 0.0.14
  • OpenRouter: >=0.0.6

Hi, same question happenned with volengine model provider plugin. So what should I do to solve this problem! Thanks so much

@Carey8175 commented on GitHub (Mar 26, 2025): > Temporary workarounds have been released. For those facing this issue, upgrade your plugin and give it another try :) > > * Azure OpenAI: **>= 0.0.11** > * OpenAI: **>= 0.0.14** > * OpenRouter: **>=0.0.6** Hi, same question happenned with volengine model provider plugin. So what should I do to solve this problem! Thanks so much
Author
Owner

@wys1010 commented on GitHub (Mar 27, 2025):

Temporary workarounds have been released. For those facing this issue, upgrade your plugin and give it another try :)

  • Azure OpenAI: >= 0.0.11
  • OpenAI: >= 0.0.14
  • OpenRouter: >=0.0.6

Hi, same question happenned with volengine model provider plugin. So what should I do to solve this problem! Thanks so much

me too

@wys1010 commented on GitHub (Mar 27, 2025): > > Temporary workarounds have been released. For those facing this issue, upgrade your plugin and give it another try :) > > > > * Azure OpenAI: **>= 0.0.11** > > * OpenAI: **>= 0.0.14** > > * OpenRouter: **>=0.0.6** > > Hi, same question happenned with volengine model provider plugin. So what should I do to solve this problem! Thanks so much me too
Author
Owner

@Carey8175 commented on GitHub (Mar 27, 2025):

Temporary workarounds have been released. For those facing this issue, upgrade your plugin and give it another try :)

  • Azure OpenAI: >= 0.0.11
  • OpenAI: >= 0.0.14
  • OpenRouter: >=0.0.6

Hi, same question happenned with volengine model provider plugin. So what should I do to solve this problem! Thanks so much

me too

Hi, I solved this problem now, feel free to reaching out to me if you need

@Carey8175 commented on GitHub (Mar 27, 2025): > > > Temporary workarounds have been released. For those facing this issue, upgrade your plugin and give it another try :) > > > > > > * Azure OpenAI: **>= 0.0.11** > > > * OpenAI: **>= 0.0.14** > > > * OpenRouter: **>=0.0.6** > > > > > > Hi, same question happenned with volengine model provider plugin. So what should I do to solve this problem! Thanks so much > > me too Hi, I solved this problem now, feel free to reaching out to me if you need
Author
Owner

@wys1010 commented on GitHub (Mar 27, 2025):

Temporary workarounds have been released. For those facing this issue, upgrade your plugin and give it another try :)

  • Azure OpenAI: >= 0.0.11
  • OpenAI: >= 0.0.14
  • OpenRouter: >=0.0.6

Hi, same question happenned with volengine model provider plugin. So what should I do to solve this problem! Thanks so much

me too

Hi, I solved this problem now, feel free to reaching out to me if you need

怎么解决的?麻烦告诉下我

@wys1010 commented on GitHub (Mar 27, 2025): > > > > Temporary workarounds have been released. For those facing this issue, upgrade your plugin and give it another try :) > > > > > > > > * Azure OpenAI: **>= 0.0.11** > > > > * OpenAI: **>= 0.0.14** > > > > * OpenRouter: **>=0.0.6** > > > > > > > > > Hi, same question happenned with volengine model provider plugin. So what should I do to solve this problem! Thanks so much > > > > > > me too > > Hi, I solved this problem now, feel free to reaching out to me if you need 怎么解决的?麻烦告诉下我
Author
Owner

@leozanee commented on GitHub (Mar 27, 2025):

At this stage, the issue has been identified as belonging to the dify_plugin SDK. The official team has not yet pushed the SDK to PyPI. For now, plugins encountering issues, you can manually modify the requirements.txt file in the plugin by changing:
dify_plugin~=xxx
to:
dify_plugin~=xxx,<0.0.1b74
Then resolve it by installing locally.

@leozanee commented on GitHub (Mar 27, 2025): At this stage, the issue has been identified as belonging to the `dify_plugin` SDK. The official team has not yet pushed the SDK to PyPI. For now, plugins encountering issues, you can manually modify the `requirements.txt` file in the plugin by changing: `dify_plugin~=xxx` to: `dify_plugin~=xxx,<0.0.1b74` Then resolve it by installing locally.
Author
Owner

@moshilangzi commented on GitHub (Mar 27, 2025):

At this stage, the issue has been identified as belonging to the dify_plugin SDK. The official team has not yet pushed the SDK to PyPI. For now, plugins encountering issues, you can manually modify the requirements.txt file in the plugin by changing: dify_plugin~=xxx to: dify_plugin~=xxx,<0.0.1b74 Then resolve it by installing locally.

VLLM plugin and OpenAI-API-compatible plugin still error :

Run failed: [vllm] Error: PluginInvokeError: {"args":{},"error_type":"ValidationError","message":"1 validation error for ModelInvokeLLMRequest\nprompt_messages.content.type\n Input should be \u003cPromptMessageContentType.TEXT: 'text'\u003e [type=literal_error, input_value='text', input_type=str]\n For further information visit [https://errors.pydantic.dev/2.10/v/literal_error"}](https://errors.pydantic.dev/2.10/v/literal_error%22%7D)

Run failed: [openai_api_compatible] Error: PluginInvokeError: {"args":{"description":"[models] Error: API request failed with status code 500: Internal Server Error"},"error_type":"InvokeError","message":"[models] Error: API request failed with status code 500: Internal Server Error"}

@moshilangzi commented on GitHub (Mar 27, 2025): > At this stage, the issue has been identified as belonging to the `dify_plugin` SDK. The official team has not yet pushed the SDK to PyPI. For now, plugins encountering issues, you can manually modify the `requirements.txt` file in the plugin by changing: `dify_plugin~=xxx` to: `dify_plugin~=xxx,<0.0.1b74` Then resolve it by installing locally. VLLM plugin and OpenAI-API-compatible plugin still error : `Run failed: [vllm] Error: PluginInvokeError: {"args":{},"error_type":"ValidationError","message":"1 validation error for ModelInvokeLLMRequest\nprompt_messages.content.type\n Input should be \u003cPromptMessageContentType.TEXT: 'text'\u003e [type=literal_error, input_value='text', input_type=str]\n For further information visit [https://errors.pydantic.dev/2.10/v/literal_error"}](https://errors.pydantic.dev/2.10/v/literal_error%22%7D)` `Run failed: [openai_api_compatible] Error: PluginInvokeError: {"args":{"description":"[models] Error: API request failed with status code 500: Internal Server Error"},"error_type":"InvokeError","message":"[models] Error: API request failed with status code 500: Internal Server Error"}`
Author
Owner

@Jimmy-L99 commented on GitHub (Apr 10, 2025):

所以应该怎么解决?我用的是zhipuai。

@Jimmy-L99 commented on GitHub (Apr 10, 2025): 所以应该怎么解决?我用的是zhipuai。
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#11879