Skip to content
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

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

Open
Rizwanali324 opened this issue Aug 22, 2024 · 3 comments

Comments

@Rizwanali324
Copy link

Rizwanali324 commented Aug 22, 2024

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
Copy link
Collaborator

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

@Rizwanali324
Copy link
Author

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

yes

@Rizwanali324
Copy link
Author

Rizwanali324 commented Aug 23, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants