Workflow: Image upload not JSON serializable

How to solve the following error?

Conversation image upload error: Operation failed: req_id: 9b1c7ca6ad PluginInvokeError: {“args”:{“description”:“\[models\] error: ‘ImagePromptMessageContent’ object has no attribute ‘startswith’”},“error_type”:“InvokeError”,“message”:“\[models\] error: ‘ImagePromptMessageContent’”}