Skip to main content
Decorator to define the list of chat profiles. If authentication is enabled, you can access the user details to create the list of chat profiles conditionally. The icon is optional.

Parameters

User
The message coming from the UI.

ChatProfile Fields

Usage

Simple example
With authentication

With Localization

The @cl.set_chat_profiles callback accepts an optional language parameter, allowing you to return localized chat profile labels and descriptions.
With localization

Display Name

Use display_name to show a user-friendly label in the UI while keeping a stable internal identifier in name. This is useful for localised names or names containing special characters.
Since version 2.8.5.

Dynamic Configuration

You can override the global config.toml for specific ChatProfiles by configuring overrides