github Chainlit/chainlit 2.0.0

latest release: 2.0.1
3 days ago

The Chainlit UI (including the copilot) has been completely re-written with Shadcn/Tailwind. This brings several advantages:

  1. The codebase is simpler and more contribution friendly.
  2. It enabled the new custom element feature.
  3. The theme customisation is more powerful.

Added

  • Custom Elements (code your own elements)
  • Cmd+k thread search
  • Thread rename
  • Official PostGres open source data layer
  • New @data_layer decorator for configuring custom data layers declaratively

Changed

  • Authentication is now based on cookies. Cross Origins are disallowed unless added in allow_origins in the config.toml file
  • No longer need to click on resume to resume a thread
  • [breaking]: Theme customisation is now handled in public/theme.json instead of config.toml.
  • [breaking]: Changed fields on the Action class:
    • The value field has replaced with payload which accepts a Python dict
    • The description field has been renamed tooltip
    • The field icon has been added
    • The collapsed field has been removed.
  • [breaking]: Completely revamped audio implementation (#1401, #1410):
    • Replaced AudioChunk with InputAudioChunk and OutputAudioChunk
    • Changed default audio sampling rate from 44100 to 24000
    • Removed several audio configuration options (min_decibels, initial_silence_timeout, silence_timeout, chunk_duration, max_duration)

Fixed

  • Autoscaling of Chainlit app behind a load balancer should now work. Don't forget to enable sticky sessions

Don't miss a new chainlit release

NewReleases is sending notifications on new releases.