chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

chainlit --version produces: Input should be a dictionary or an instance of MultiModalFeature

Open miriam-z opened this issue 2 months ago • 1 comments

Describe the bug

Upgraded:

pip install --upgrade chainlit==1.0.505

chainlit --version

pydantic_core._pydantic_core.ValidationError: 1 validation error for FeaturesSettings multi_modal Input should be a dictionary or an instance of MultiModalFeature [type=dataclass_type, input_value=True, input_type=bool] For further information visit https://errors.pydantic.dev/2.5/v/dataclass_type

Is this related to pydantic also needing to be upgraded.

To Reproduce Steps to reproduce the behavior:

  1. pip install --upgrade chainlit==1.0.505
  2. chainlit --version

Expected behavior Chainlit, version 1.0.5xx

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS] Mac OS
  • Browser chrome
  • Version 123.0.6312.122

miriam-z avatar Apr 28 '24 02:04 miriam-z

I am facing the same issue.

AshSid00 avatar Apr 28 '24 15:04 AshSid00

Hello, you would need to either:

  • remove the entire ./chainlit/config.toml file and restart your app
  • or update the multi_modal setting manually (example here)

This is part of the migration to chainlit v1.0.500: https://docs.chainlit.io/guides/migration/1.0.500#2-update-the-multi-modal-config-setting.

tpatel avatar Apr 29 '24 08:04 tpatel