chainlit 1.0.503__py3-none-any.whl → 1.0.505__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of chainlit might be problematic. Click here for more details.

chainlit/config.py CHANGED
@@ -68,6 +68,9 @@ unsafe_allow_html = false
68
68
  # Process and display mathematical expressions. This can clash with "$" characters in messages.
69
69
  latex = false
70
70
 
71
+ # Automatically tag threads with the current chat profile (if a chat profile is used)
72
+ auto_tag_thread = true
73
+
71
74
  # Authorize users to upload files with messages
72
75
  [features.multi_modal]
73
76
  enabled = true
@@ -206,6 +209,7 @@ class FeaturesSettings(DataClassJsonMixin):
206
209
  latex: bool = False
207
210
  unsafe_allow_html: bool = False
208
211
  speech_to_text: Optional[SpeechToTextFeature] = None
212
+ auto_tag_thread: bool = True
209
213
 
210
214
 
211
215
  @dataclass()
@@ -246,9 +250,9 @@ class CodeSettings:
246
250
  on_message: Optional[Callable[[str], Any]] = None
247
251
  author_rename: Optional[Callable[[str], str]] = None
248
252
  on_settings_update: Optional[Callable[[Dict[str, Any]], Any]] = None
249
- set_chat_profiles: Optional[
250
- Callable[[Optional["User"]], List["ChatProfile"]]
251
- ] = None
253
+ set_chat_profiles: Optional[Callable[[Optional["User"]], List["ChatProfile"]]] = (
254
+ None
255
+ )
252
256
 
253
257
 
254
258
  @dataclass()