New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I get an error when I try to run the UI #280
Comments
same error here |
@uebhh Looks like the guys merged a bad PR request at Chainlit. In your .chainlit/config.toml comment out the following lines in [features] and you are good to go for now. This is me assuming your app does not require multi modal or speech to text capabilities in the Chainlit UI.
I have mine like
Hope it helps for now. |
It seems chainlit has a version upgrade and the configurations have changed and it is incompatible with the previous.
to
|
Thank you, after the modification, it can be started. |
Thank you, it worked. |
There's also a solution described in the migration guide: |
Environment Information (please complete the following information):
When I try to run the UI I get this error:
(taskweaver) D:\TaskWeaver\playground\UI>chainlit run app.py
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "D:\software\anaconda\envs\taskweaver\Scripts\chainlit.exe_main.py", line 4, in
File "D:\software\anaconda\envs\taskweaver\Lib\site-packages\chainlit_init.py", line 24, in
from chainlit.action import Action
File "D:\software\anaconda\envs\taskweaver\Lib\site-packages\chainlit\action.py", line 5, in
from chainlit.telemetry import trace_event
File "D:\software\anaconda\envs\taskweaver\Lib\site-packages\chainlit\telemetry.py", line 12, in
from chainlit.config import config
File "D:\software\anaconda\envs\taskweaver\Lib\site-packages\chainlit\config.py", line 469, in
config = load_config()
^^^^^^^^^^^^^
File "D:\software\anaconda\envs\taskweaver\Lib\site-packages\chainlit\config.py", line 438, in load_config
settings = load_settings()
^^^^^^^^^^^^^^^
File "D:\software\anaconda\envs\taskweaver\Lib\site-packages\chainlit\config.py", line 408, in load_settings
features_settings = FeaturesSettings(**features_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\software\anaconda\envs\taskweaver\Lib\site-packages\pydantic_internal_dataclasses.py", line 135, in init
s.pydantic_validator.validate_python(ArgsKwargs(args, kwargs), self_instance=s)
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.6/v/dataclass_type
The text was updated successfully, but these errors were encountered: