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 +7 -3
- chainlit/copilot/dist/index.js +262 -262
- chainlit/data/__init__.py +37 -9
- chainlit/data/sql_alchemy.py +246 -144
- chainlit/emitter.py +19 -9
- chainlit/frontend/dist/assets/{index-a8e1b559.js → index-d200e7ad.js} +119 -119
- chainlit/frontend/dist/assets/{react-plotly-b225b63c.js → react-plotly-10f4012e.js} +1 -1
- chainlit/frontend/dist/index.html +1 -1
- chainlit/llama_index/callbacks.py +2 -3
- chainlit/openai/__init__.py +5 -9
- chainlit/server.py +6 -4
- chainlit/session.py +4 -0
- chainlit/socket.py +5 -1
- chainlit/types.py +19 -1
- chainlit/user_session.py +1 -0
- {chainlit-1.0.503.dist-info → chainlit-1.0.505.dist-info}/METADATA +2 -2
- {chainlit-1.0.503.dist-info → chainlit-1.0.505.dist-info}/RECORD +19 -19
- {chainlit-1.0.503.dist-info → chainlit-1.0.505.dist-info}/WHEEL +0 -0
- {chainlit-1.0.503.dist-info → chainlit-1.0.505.dist-info}/entry_points.txt +0 -0
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
|
-
|
|
251
|
-
|
|
253
|
+
set_chat_profiles: Optional[Callable[[Optional["User"]], List["ChatProfile"]]] = (
|
|
254
|
+
None
|
|
255
|
+
)
|
|
252
256
|
|
|
253
257
|
|
|
254
258
|
@dataclass()
|