Join the discord for live updates: https://discord.gg/AzyvDHWARx
Updating Chainlit
Begin the migration by updating Chainlit to the latest version:New Feature: Starters

starters.py
starters_with_chat_profiles.py
Rework: Debugging
We created Chainlit with a vision to make debugging as easy as possible. This is why Chainlit was supporting complex Chain of Thoughts and even had its own prompt playground. This was great but was mixing two different concepts in one place:- Building conversational AI with best in class user experience.
- Debugging and iterating efficiently.
- Provide an even better UX (see the new Chain of Thought).
- Provide an even better debugging experience.
-d to your chainlit run command. If your data layer supports it, you will see a debug button below each message taking you to the trace/prompt playground.

Rework: Chain of Thought
The Chain of Thought has been reworked to only be one level deep and only include tools; ultimately users are only interested in the tools used by the LLM to generate the response.new_cot.py
Rework: Avatars
The previouscl.Avatar element was adding overhead to developers forcing them to resend the avatars to each session.
It was also not working with resumed conversations.
cl.Avatar has been removed entirely. Now, you should place your avatar files in /public/avatars.
Let’s say your message author is My Assistant, then you should place the avatar in /public/avatars/my-assistant.png.
If no avatar is found, it will default to the favicon.
Rework: Custom Endpoints
Chainlit is now mountable as a FastAPI sub application. This allows you to use Chainlit on your existing FastAPI application. Check the FastAPI integration and API documentation for more information.Minor Changes
- You can now configure the default theme in the
config.tomlfile.
config.toml
-
The
running,took_oneandtook_othertranslations have been replaced byused. Either manually replace them in your translations or delete the translations file to regenerate it. -
The
show_readme_as_defaultconfig has been removed in favor of starters. - Root level messages will no longer collapse.
Conclusion
Full changelog available
here.