Chainlit / chainlit

Build Conversational AI in minutes ⚡️
https://docs.chainlit.io
Apache License 2.0
6.75k stars 875 forks source link

pydantic.error_wrappers.ValidationError: 1 validation error for ChainlitConfig chatbot_name #1253

Open Rizwanali324 opened 3 weeks ago

Rizwanali324 commented 3 weeks ago

A validation error occurs during deployment on Hugging Face due to a missing or improperly set chatbot_name field in the Chainlit configuration file. The error message is: pydantic.error_wrappers.ValidationError: 1 validation error for ChainlitConfig chatbot_name none is not an allowed value (type=type_error.none.not_allowed).

To Reproduce Steps to reproduce the behavior:

Configure Chainlit with a config.toml file. Deploy the application on Hugging Face. Observe the deployment logs or error messages. Expected behavior The application should deploy successfully without validation errors related to the configuration file. Specifically, the chatbot_name field should be correctly set to avoid None value errors.

Screenshots image

Desktop (please complete the following information):

Browser: [e.g., Chrome]

The error indicates that the chatbot_name field in the Chainlit configuration is either missing or set to None, which is not allowed. Ensure that this field is properly defined and not left empty. The configuration file should include a valid name under the [UI] section,

here is my config file code `[project]

[UI] name = "Chatbot"

default_collapse_content = false

cot = "hidden" custom_font = "https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.swap"

[code] action_callbacks.sync = true

[UI.theme] default = "dark" layout = "wide" font_family = "Inter, sans-serif"

[UI.theme.light] [UI.theme.light.primary] [UI.theme.light.text]

[UI.theme.dark] [UI.theme.dark.primary] [UI.theme.dark.text]

[meta] generated_by = "1.1.402"

`

dokterbob commented 3 weeks ago

chatbot_name is not currently a valid configuration option. Did you mean to use name?

Rizwanali324 commented 3 weeks ago

chatbot_name is not currently a valid configuration option. Did you mean to use name?

yes

Rizwanali324 commented 3 weeks ago

i was getting this error while deployment on huggingface i have added this "name" to ui features. also i search alot but did not find any solutions