Run failed: [vllm] Error: PluginInvokeError: {"args":{},"error_type":"ValidationError","message":"1 validation error for ModelInvokeLLMRequest\nprompt_messages.content.type\n Input should be \u003cPromptMessageContentType.IMAGE: 'image'\u003e #135

Closed
opened 2026-02-16 10:18:11 -05:00 by yindo · 12 comments
Owner

Originally created by @moshilangzi on GitHub (Mar 27, 2025).

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

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

mistralai/Mistral-Small-3.1-24B-Instruct-2503:
VLLM_ATTENTION_BACKEND=FLASHINFER CUDA_VISIBLE_DEVICES=2,3,5,6 nohup vllm serve mistralai/Mistral-Small-3.1-24B-Instruct-2503 --tokenizer_mode mistral --config_format mistral --load_format mistral --tool-call-parser mistral --enable-auto-tool-choice --tensor-parallel-size 4 --enforce-eager --kv-cache-dtype fp8 --disable-custom-all-reduce --enable-chunked-prefill --swap-space 6 --num-scheduler-steps 6 --limit_mm_per_prompt 'image=10' --max_model_len 49152 --max_num_batched_tokens 49152 > /home/models/mistral.log 2>&1 &

when use image chat ,ERROR as follow:
Run failed: [vllm] Error: PluginInvokeError: {"args":{},"error_type":"ValidationError","message":"1 validation error for ModelInvokeLLMRequest\nprompt_messages.content.type\n Input should be \u003cPromptMessageContentType.IMAGE: 'image'\u003e [type=literal_error, input_value='image', 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)

✔️ Expected Behavior

like gpt-4o,when i use text and images, it should work,but errror occures now

Actual Behavior

No response

Originally created by @moshilangzi on GitHub (Mar 27, 2025). ### 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.0.0 ### Cloud or Self Hosted Self Hosted (Source) ### Steps to reproduce mistralai/Mistral-Small-3.1-24B-Instruct-2503: `VLLM_ATTENTION_BACKEND=FLASHINFER CUDA_VISIBLE_DEVICES=2,3,5,6 nohup vllm serve mistralai/Mistral-Small-3.1-24B-Instruct-2503 --tokenizer_mode mistral --config_format mistral --load_format mistral --tool-call-parser mistral --enable-auto-tool-choice --tensor-parallel-size 4 --enforce-eager --kv-cache-dtype fp8 --disable-custom-all-reduce --enable-chunked-prefill --swap-space 6 --num-scheduler-steps 6 --limit_mm_per_prompt 'image=10' --max_model_len 49152 --max_num_batched_tokens 49152 > /home/models/mistral.log 2>&1 &` when use image chat ,ERROR as follow: `Run failed: [vllm] Error: PluginInvokeError: {"args":{},"error_type":"ValidationError","message":"1 validation error for ModelInvokeLLMRequest\nprompt_messages.content.type\n Input should be \u003cPromptMessageContentType.IMAGE: 'image'\u003e [type=literal_error, input_value='image', 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)` ### ✔️ Expected Behavior like gpt-4o,when i use text and images, it should work,but errror occures now ### ❌ Actual Behavior _No response_
yindo closed this issue 2026-02-16 10:18:11 -05:00
Author
Owner

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

To resolve the "ValidationError" related to "prompt_messages.content.type" when using image chat with the Mistral-Small-3.1-24B-Instruct-2503 model in a self-hosted Dify setup, you should upgrade your plugins to the following minimum versions:

  • Azure OpenAI: version 0.0.11 or higher
  • OpenAI: version 0.0.14 or higher
  • OpenRouter: version 0.0.6 or higher

This upgrade addresses the validation error that occurred due to type checking issues with multimodal prompt messages in SDK version 0.0.1b74 [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[bot] commented on GitHub (Mar 27, 2025): <!-- Answer --> To resolve the "ValidationError" related to "prompt_messages.content.type" when using image chat with the Mistral-Small-3.1-24B-Instruct-2503 model in a self-hosted Dify setup, you should upgrade your plugins to the following minimum versions: - Azure OpenAI: version 0.0.11 or higher - OpenAI: version 0.0.14 or higher - OpenRouter: version 0.0.6 or higher This upgrade addresses the validation error that occurred due to type checking issues with multimodal prompt messages in SDK version 0.0.1b74 <sup>[[1]](https://github.com/langgenius/dify/issues/16353)</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/a28f9718-4ada-4f02-bd6e-e5310b6dc934?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/a28f9718-4ada-4f02-bd6e-e5310b6dc934?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/a28f9718-4ada-4f02-bd6e-e5310b6dc934?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/a28f9718-4ada-4f02-bd6e-e5310b6dc934?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/a28f9718-4ada-4f02-bd6e-e5310b6dc934?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/a28f9718-4ada-4f02-bd6e-e5310b6dc934?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/a28f9718-4ada-4f02-bd6e-e5310b6dc934?feedback_type=other)</sup>
Author
Owner

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

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

@kurokobo commented on GitHub (Mar 27, 2025): See: https://github.com/langgenius/dify/issues/16816
Author
Owner

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

To resolve the "ValidationError" related to "prompt_messages.content.type" when using image chat with the Mistral-Small-3.1-24B-Instruct-2503 model in a self-hosted Dify setup, you should upgrade your plugins to the following minimum versions:

  • Azure OpenAI: version 0.0.11 or higher
  • OpenAI: version 0.0.14 or higher
  • OpenRouter: version 0.0.6 or higher

This upgrade addresses the validation error that occurred due to type checking issues with multimodal prompt messages in SDK version 0.0.1b74 [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

I use VLLM serve

@moshilangzi commented on GitHub (Mar 27, 2025): > To resolve the "ValidationError" related to "prompt_messages.content.type" when using image chat with the Mistral-Small-3.1-24B-Instruct-2503 model in a self-hosted Dify setup, you should upgrade your plugins to the following minimum versions: > > * Azure OpenAI: version 0.0.11 or higher > * OpenAI: version 0.0.14 or higher > * OpenRouter: version 0.0.6 or higher > > This upgrade addresses the validation error that occurred due to type checking issues with multimodal prompt messages in SDK version 0.0.1b74 [[1]](https://github.com/langgenius/dify/issues/16353). > > _To continue talking to [Dosu](https://dosu.dev), mention [@dosu](https://github.com/dosu)._ > > Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/a28f9718-4ada-4f02-bd6e-e5310b6dc934?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/a28f9718-4ada-4f02-bd6e-e5310b6dc934?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/a28f9718-4ada-4f02-bd6e-e5310b6dc934?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/a28f9718-4ada-4f02-bd6e-e5310b6dc934?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/a28f9718-4ada-4f02-bd6e-e5310b6dc934?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/a28f9718-4ada-4f02-bd6e-e5310b6dc934?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/a28f9718-4ada-4f02-bd6e-e5310b6dc934?feedback_type=other) I use VLLM serve
Author
Owner

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

See: #16816

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): > See: [#16816](https://github.com/langgenius/dify/issues/16816) > 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

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

See: #16816

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"}

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): > See: [#16816](https://github.com/langgenius/dify/issues/16816) 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

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

To resolve the "ValidationError" related to "prompt_messages.content.type" when using image chat with the Mistral-Small-3.1-24B-Instruct-2503 model in a self-hosted Dify setup, you should upgrade your plugins to the following minimum versions:

  • Azure OpenAI: version 0.0.11 or higher
  • OpenAI: version 0.0.14 or higher
  • OpenRouter: version 0.0.6 or higher

This upgrade addresses the validation error that occurred due to type checking issues with multimodal prompt messages in SDK version 0.0.1b74 [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

OpenAI: version 0.0.14 :
when use image chat,error:
Run failed: [models] Bad Request Error, Error code: 400 - {'error': {'message': 'Invalid image data. (request id: 2025032806082989295528yyrFCiv6) (request id: 2025032806082988576420SYQJt3l0) (request id: )', 'type': 'api_error'}}

@moshilangzi commented on GitHub (Mar 28, 2025): > To resolve the "ValidationError" related to "prompt_messages.content.type" when using image chat with the Mistral-Small-3.1-24B-Instruct-2503 model in a self-hosted Dify setup, you should upgrade your plugins to the following minimum versions: > > * Azure OpenAI: version 0.0.11 or higher > * OpenAI: version 0.0.14 or higher > * OpenRouter: version 0.0.6 or higher > > This upgrade addresses the validation error that occurred due to type checking issues with multimodal prompt messages in SDK version 0.0.1b74 [[1]](https://github.com/langgenius/dify/issues/16353). > > _To continue talking to [Dosu](https://dosu.dev), mention [@dosu](https://github.com/dosu)._ > > Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/a28f9718-4ada-4f02-bd6e-e5310b6dc934?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/a28f9718-4ada-4f02-bd6e-e5310b6dc934?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/a28f9718-4ada-4f02-bd6e-e5310b6dc934?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/a28f9718-4ada-4f02-bd6e-e5310b6dc934?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/a28f9718-4ada-4f02-bd6e-e5310b6dc934?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/a28f9718-4ada-4f02-bd6e-e5310b6dc934?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/a28f9718-4ada-4f02-bd6e-e5310b6dc934?feedback_type=other) OpenAI: version 0.0.14 : when use image chat,error: `Run failed: [models] Bad Request Error, Error code: 400 - {'error': {'message': 'Invalid image data. (request id: 2025032806082989295528yyrFCiv6) (request id: 2025032806082988576420SYQJt3l0) (request id: )', 'type': 'api_error'}}`
Author
Owner

@xiaoyunjie commented on GitHub (Mar 28, 2025):

@moshilangzi https://github.com/yangyaofei/dify-vllm-provider/issues/3

@xiaoyunjie commented on GitHub (Mar 28, 2025): @moshilangzi https://github.com/yangyaofei/dify-vllm-provider/issues/3
Author
Owner

@yangyaofei commented on GitHub (Mar 31, 2025):

See: #16816

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"}

For the vLLM plugin, there is a feature that use the second message as CFG param, but the plugin not deal with non-text message, I think it should fix in https://github.com/yangyaofei/dify-vllm-provider/commit/60716e1500729b500129cd1ab36b0be6c98cf0b1 commit, can you give it a try?

I don't have enough resource to run a VLM model 😂

@yangyaofei commented on GitHub (Mar 31, 2025): > > See: [#16816](https://github.com/langgenius/dify/issues/16816) > > > 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"}` For the vLLM plugin, there is a feature that use the second message as CFG param, but the plugin not deal with non-text message, I think it should fix in https://github.com/yangyaofei/dify-vllm-provider/commit/60716e1500729b500129cd1ab36b0be6c98cf0b1 commit, can you give it a try? I don't have enough resource to run a VLM model 😂
Author
Owner

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

See: #16816

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"}

For the vLLM plugin, there is a feature that use the second message as CFG param, but the plugin not deal with non-text message, I think it should fix in yangyaofei/dify-vllm-provider@60716e1 commit, can you give it a try?

I don't have enough resource to run a VLM model 😂

feige, I have tried VLLM-plugin(0.1.3), still error

@moshilangzi commented on GitHub (Mar 31, 2025): > > > See: [#16816](https://github.com/langgenius/dify/issues/16816) > > > > > > > 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"}` > > For the vLLM plugin, there is a feature that use the second message as CFG param, but the plugin not deal with non-text message, I think it should fix in [yangyaofei/dify-vllm-provider@60716e1](https://github.com/yangyaofei/dify-vllm-provider/commit/60716e1500729b500129cd1ab36b0be6c98cf0b1) commit, can you give it a try? > > I don't have enough resource to run a VLM model 😂 feige, I have tried VLLM-plugin(0.1.3), still error
Author
Owner

@yangyaofei commented on GitHub (Mar 31, 2025):

See: #16816

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"}

For the vLLM plugin, there is a feature that use the second message as CFG param, but the plugin not deal with non-text message, I think it should fix in yangyaofei/dify-vllm-provider@60716e1 commit, can you give it a try?
I don't have enough resource to run a VLM model 😂

feige, I have tried VLLM-plugin(0.1.3), still error

yangyaofei/dify-vllm-provider@60716e1 this commit ,need to package by yourself

@yangyaofei commented on GitHub (Mar 31, 2025): > > > > See: [#16816](https://github.com/langgenius/dify/issues/16816) > > > > > > > > > > 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"}` > > > > > > For the vLLM plugin, there is a feature that use the second message as CFG param, but the plugin not deal with non-text message, I think it should fix in [yangyaofei/dify-vllm-provider@60716e1](https://github.com/yangyaofei/dify-vllm-provider/commit/60716e1500729b500129cd1ab36b0be6c98cf0b1) commit, can you give it a try? > > I don't have enough resource to run a VLM model 😂 > > feige, I have tried VLLM-plugin(0.1.3), still error yangyaofei/dify-vllm-provider@60716e1 this commit ,need to package by yourself
Author
Owner

@findmover commented on GitHub (Apr 7, 2025):

官方sdk问题吧,我用vllm插件运行多模态上传图片报相同的错误。

Image
改为这个插件后正常对话

@findmover commented on GitHub (Apr 7, 2025): 官方sdk问题吧,我用vllm插件运行多模态上传图片报相同的错误。 ![Image](https://github.com/user-attachments/assets/c55d271f-0fbd-4381-9fa8-83041e722ca6) 改为这个插件后正常对话
Author
Owner

@yangyaofei commented on GitHub (Apr 14, 2025):

Try to use the latest release v0.1.4

@yangyaofei commented on GitHub (Apr 14, 2025): Try to use the latest release v0.1.4
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#135