chainlit 1.0.506__py3-none-any.whl → 1.1.0__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/__init__.py +34 -1
- chainlit/config.py +43 -21
- chainlit/context.py +19 -7
- chainlit/copilot/dist/index.js +650 -528
- chainlit/data/__init__.py +4 -2
- chainlit/data/acl.py +4 -1
- chainlit/data/sql_alchemy.py +39 -31
- chainlit/discord/__init__.py +6 -0
- chainlit/discord/app.py +304 -0
- chainlit/element.py +9 -3
- chainlit/emitter.py +11 -2
- chainlit/frontend/dist/assets/{index-d4233b49.js → index-0a52365d.js} +189 -185
- chainlit/frontend/dist/assets/react-plotly-509d26a7.js +3602 -0
- chainlit/frontend/dist/index.html +1 -1
- chainlit/llama_index/callbacks.py +7 -6
- chainlit/message.py +3 -3
- chainlit/server.py +31 -4
- chainlit/session.py +83 -62
- chainlit/slack/__init__.py +6 -0
- chainlit/slack/app.py +368 -0
- chainlit/socket.py +91 -33
- chainlit/step.py +25 -1
- chainlit/types.py +21 -1
- chainlit/user_session.py +6 -2
- chainlit/utils.py +2 -1
- {chainlit-1.0.506.dist-info → chainlit-1.1.0.dist-info}/METADATA +4 -3
- {chainlit-1.0.506.dist-info → chainlit-1.1.0.dist-info}/RECORD +29 -25
- chainlit/frontend/dist/assets/react-plotly-2b7fa4f9.js +0 -3484
- {chainlit-1.0.506.dist-info → chainlit-1.1.0.dist-info}/WHEEL +0 -0
- {chainlit-1.0.506.dist-info → chainlit-1.1.0.dist-info}/entry_points.txt +0 -0
chainlit/utils.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import functools
|
|
2
2
|
import importlib
|
|
3
3
|
import inspect
|
|
4
|
+
from asyncio import CancelledError
|
|
4
5
|
from typing import Callable
|
|
5
6
|
|
|
6
7
|
from chainlit.context import context
|
|
@@ -39,7 +40,7 @@ def wrap_user_function(user_function: Callable, with_task=False) -> Callable:
|
|
|
39
40
|
return await user_function(**params_values)
|
|
40
41
|
else:
|
|
41
42
|
return user_function(**params_values)
|
|
42
|
-
except
|
|
43
|
+
except CancelledError:
|
|
43
44
|
pass
|
|
44
45
|
except Exception as e:
|
|
45
46
|
logger.exception(e)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: chainlit
|
|
3
|
-
Version: 1.0
|
|
3
|
+
Version: 1.1.0
|
|
4
4
|
Summary: Build Conversational AI.
|
|
5
5
|
Home-page: https://github.com/Chainlit/chainlit
|
|
6
6
|
License: Apache-2.0 license
|
|
@@ -22,13 +22,12 @@ Requires-Dist: fastapi-socketio (>=0.0.10,<0.0.11)
|
|
|
22
22
|
Requires-Dist: filetype (>=1.2.0,<2.0.0)
|
|
23
23
|
Requires-Dist: httpx (>=0.23.0)
|
|
24
24
|
Requires-Dist: lazify (>=0.4.0,<0.5.0)
|
|
25
|
-
Requires-Dist: literalai (==0.0.
|
|
25
|
+
Requires-Dist: literalai (==0.0.601)
|
|
26
26
|
Requires-Dist: nest-asyncio (>=1.5.6,<2.0.0)
|
|
27
27
|
Requires-Dist: packaging (>=23.1,<24.0)
|
|
28
28
|
Requires-Dist: pydantic (>=1,<3)
|
|
29
29
|
Requires-Dist: pyjwt (>=2.8.0,<3.0.0)
|
|
30
30
|
Requires-Dist: python-dotenv (>=1.0.0,<2.0.0)
|
|
31
|
-
Requires-Dist: python-graphql-client (>=0.4.3,<0.5.0)
|
|
32
31
|
Requires-Dist: python-multipart (>=0.0.9,<0.0.10)
|
|
33
32
|
Requires-Dist: starlette (>=0.37.2,<0.38.0)
|
|
34
33
|
Requires-Dist: syncer (>=2.0.3,<3.0.0)
|
|
@@ -51,6 +50,7 @@ Chainlit is an open-source async Python framework which allows developers to bui
|
|
|
51
50
|
|
|
52
51
|
- ✅ ChatGPT-like application
|
|
53
52
|
- ✅ Embedded Chatbot & Software Copilot
|
|
53
|
+
- ✅ Slack & Discord
|
|
54
54
|
- ✅ Custom frontend (build your own agentic experience)
|
|
55
55
|
- ✅ API Endpoint
|
|
56
56
|
|
|
@@ -113,6 +113,7 @@ $ chainlit run demo.py -w
|
|
|
113
113
|
```
|
|
114
114
|
|
|
115
115
|
<img src="/images/quick-start.png" alt="Quick Start"></img>
|
|
116
|
+
|
|
116
117
|
## 🎉 Key Features and Integrations
|
|
117
118
|
|
|
118
119
|
Full documentation is available [here](https://docs.chainlit.io). Key features:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
chainlit/__init__.py,sha256=
|
|
1
|
+
chainlit/__init__.py,sha256=2-juj1u5enzZfNk5OG81Jer5H30fndgsub74xVJaDrI,10470
|
|
2
2
|
chainlit/__main__.py,sha256=7Vg3w3T3qDuz4KDu5lQhLH6lQ3cYdume7gHH7Z1V97U,87
|
|
3
3
|
chainlit/action.py,sha256=k-GsblVHI4DnDWFyF-RZgq3KfdfAFICFh2OBeU4w8N8,1410
|
|
4
4
|
chainlit/auth.py,sha256=lLHePwmwKzX0LiWqpTAtKTdSecrDLqCMSY9Yw4c-TD8,2681
|
|
@@ -6,24 +6,26 @@ chainlit/cache.py,sha256=Bv3dT4eHhE6Fq3c6Do0ZTpiyoXgXYewdxTgpYghEd9g,1361
|
|
|
6
6
|
chainlit/chat_settings.py,sha256=2ByenmwS8O6jQjDVJjhhbLrBPGA5aY2F7R3VvQQxXPk,877
|
|
7
7
|
chainlit/cli/__init__.py,sha256=JEB3Z3VWpzPgcfdSOQ6Z-L7dHdl7A1y47KUZP8H08GQ,4951
|
|
8
8
|
chainlit/cli/utils.py,sha256=mE2d9oOk-B2b9ZvDV1zENoDWxjfMriGP7bVwEFduZP4,717
|
|
9
|
-
chainlit/config.py,sha256=
|
|
10
|
-
chainlit/context.py,sha256=
|
|
9
|
+
chainlit/config.py,sha256=Knk88P47PHBNfxaqrrA_Tx0qSTxd_XYcTAfXxqtEnTs,16138
|
|
10
|
+
chainlit/context.py,sha256=kBnJiKKNhft1nrXFLQnAW6M-_mzMpYqDEFAG5-lrHyo,2813
|
|
11
11
|
chainlit/copilot/dist/assets/logo_dark-2a3cf740.svg,sha256=Kjz3QMh-oh-ag4YatjU0YCPqGF7F8nHh8VUQoJIs01E,8887
|
|
12
12
|
chainlit/copilot/dist/assets/logo_light-b078e7bc.svg,sha256=sHjnvEq1rfqh3bcexJNYUY7WEDdTQZq3aKZYpi4w4ck,8889
|
|
13
|
-
chainlit/copilot/dist/index.js,sha256=
|
|
14
|
-
chainlit/data/__init__.py,sha256=
|
|
15
|
-
chainlit/data/acl.py,sha256=
|
|
16
|
-
chainlit/data/sql_alchemy.py,sha256=
|
|
13
|
+
chainlit/copilot/dist/index.js,sha256=kd2VVPOnKieJnE9aymf8cQRd--Ssao8UUdCNahspjFM,6963910
|
|
14
|
+
chainlit/data/__init__.py,sha256=CUkwYx9GYqIbgrLh7gmQm4qvO1mu4D0Es-z31dc00DU,16486
|
|
15
|
+
chainlit/data/acl.py,sha256=5EwZuKVcZediw77L661MohGce3JzGIaYmw6NutmMTw0,578
|
|
16
|
+
chainlit/data/sql_alchemy.py,sha256=XGiqUWnT64qv9tg08C7evCRoZolv8XtqtqJno3wg9H0,26524
|
|
17
17
|
chainlit/data/storage_clients.py,sha256=D9KY1XKDjZh2uuh01ECxeoEtjw-JlrCR-WCuOuePVQI,3007
|
|
18
|
-
chainlit/
|
|
19
|
-
chainlit/
|
|
18
|
+
chainlit/discord/__init__.py,sha256=kZ_AAMaCToqO-1FdeQ8_IHS2pqNT0QJ-yyd8bCMaHHs,198
|
|
19
|
+
chainlit/discord/app.py,sha256=-_jtZh7T6COSPa2sAeEmV7S42H619JHrw_TAhrmbvzA,9296
|
|
20
|
+
chainlit/element.py,sha256=MIp-iyvsnK2iJ6Z_1Q-9JGZz_j_rrIxMM_L1LPA_5hw,10414
|
|
21
|
+
chainlit/emitter.py,sha256=54MPYoYHkOCKJvT30Vvg9mWYzWunGN9I3cFaqIoQ8oU,13037
|
|
22
|
+
chainlit/frontend/dist/assets/index-0a52365d.js,sha256=1SqvmFMT0x8BJoKFvXDPMP_MBqtS3xLvt7WM7xNXEug,3040232
|
|
20
23
|
chainlit/frontend/dist/assets/index-d088547c.css,sha256=0IhUfCm_IY1kjvlTR2edW1qKXAFDya3LZ6mnZnP6ovk,6605
|
|
21
|
-
chainlit/frontend/dist/assets/index-d4233b49.js,sha256=Hdn8483Y7q-k-5ObLn5uWLlKgt9XDjLD7OW3FIWaxBY,3073946
|
|
22
24
|
chainlit/frontend/dist/assets/logo_dark-2a3cf740.svg,sha256=Kjz3QMh-oh-ag4YatjU0YCPqGF7F8nHh8VUQoJIs01E,8887
|
|
23
25
|
chainlit/frontend/dist/assets/logo_light-b078e7bc.svg,sha256=sHjnvEq1rfqh3bcexJNYUY7WEDdTQZq3aKZYpi4w4ck,8889
|
|
24
|
-
chainlit/frontend/dist/assets/react-plotly-
|
|
26
|
+
chainlit/frontend/dist/assets/react-plotly-509d26a7.js,sha256=HHlX6YLs73sNrihLPCNKy7XBD0nUCqQLM470dy6jXSs,3739251
|
|
25
27
|
chainlit/frontend/dist/favicon.svg,sha256=0Cy8x28obT5eWW3nxZRhsEvu6_zMqrqbg0y6hT3D0Q0,6455
|
|
26
|
-
chainlit/frontend/dist/index.html,sha256=
|
|
28
|
+
chainlit/frontend/dist/index.html,sha256=1bGigtrNNB1RuhPnClhDk5umbnW_QrltDT8hE7cPKHI,1005
|
|
27
29
|
chainlit/haystack/__init__.py,sha256=uZ77YiPy-qleSTi3dQCDO9HE6S6F6GpJWmh7jO4cxXA,217
|
|
28
30
|
chainlit/haystack/callbacks.py,sha256=tItLc6OmskPeDEJH2Qjtg7KgAgIy1TuYQYHTZm9cr3U,5209
|
|
29
31
|
chainlit/hello.py,sha256=LwENQWo5s5r8nNDn4iKSV77vX60Ky5r_qGjQhyi7qlY,416
|
|
@@ -32,10 +34,10 @@ chainlit/langchain/__init__.py,sha256=zErMw0_3ufSGeF9ye7X0ZX3wDat4mTOx97T40ePDO2
|
|
|
32
34
|
chainlit/langchain/callbacks.py,sha256=bABLMuLx0h-It0zfB9tqcSeCAu_-uxMLgm2gPIGb4VY,20484
|
|
33
35
|
chainlit/langflow/__init__.py,sha256=wxhxdsl1yxdsRyNTgZticxFF_8VFtJJ4OdIy3tnEIyM,817
|
|
34
36
|
chainlit/llama_index/__init__.py,sha256=weRoIWCaRBGvA1LczCEfsqhWsltQSVlhtRnTovtdo8w,227
|
|
35
|
-
chainlit/llama_index/callbacks.py,sha256=
|
|
37
|
+
chainlit/llama_index/callbacks.py,sha256=nvmLTdKPV-WFjTTXnkIb-sPa7ZvQ49DrKH7UUQ_AGdg,7277
|
|
36
38
|
chainlit/logger.py,sha256=wTwRSZsLfXwWy6U4351IgWAm4KCMThgxm9EZpjGUEr4,373
|
|
37
39
|
chainlit/markdown.py,sha256=VUpqW7MqgjiPIQYHU4funwqC4GmHZBu_TGZTjTI4B0k,2025
|
|
38
|
-
chainlit/message.py,sha256=
|
|
40
|
+
chainlit/message.py,sha256=NQiNzzJgE5D5ciOSzdWYNH5e7fBFbrjxLWeGpczXQGs,17961
|
|
39
41
|
chainlit/oauth_providers.py,sha256=WiKUFpNp0RRN5Vq6LHCR9V-9td_1YEn2yD8iGu8atvY,17459
|
|
40
42
|
chainlit/openai/__init__.py,sha256=DJP_ptclLUM5Zylr4RO1Vk0lCufo3yDqXyH5J9izYS8,1814
|
|
41
43
|
chainlit/playground/__init__.py,sha256=igNRcBgqLKPTjOQtTNhhGNJFmZn-Dl1fHRQzQSjDGTQ,80
|
|
@@ -49,20 +51,22 @@ chainlit/playground/providers/openai.py,sha256=9aDSgXVW3sW-gaybBBWMIE8cJPyk9ZuGv
|
|
|
49
51
|
chainlit/playground/providers/vertexai.py,sha256=zKy501f-MHnLrvuRzN50FqgB3xoHzfQFTVbw83Nsj20,5084
|
|
50
52
|
chainlit/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
51
53
|
chainlit/secret.py,sha256=cQvIFGTQ7r2heC8EOGdgifSZZYqslh-qQxhUhKhD8vU,295
|
|
52
|
-
chainlit/server.py,sha256=
|
|
53
|
-
chainlit/session.py,sha256=
|
|
54
|
-
chainlit/
|
|
55
|
-
chainlit/
|
|
54
|
+
chainlit/server.py,sha256=dlxN9CM0jzrEvUrMYP8rlkGUGlGPqcBeAYrlQa25nvo,24630
|
|
55
|
+
chainlit/session.py,sha256=SOX2zFct3apiSNcIzCDWgDRsUFgUG_6hewqWU8gfIZE,9694
|
|
56
|
+
chainlit/slack/__init__.py,sha256=Q41ztJHeVmpoXVgVqAcwGOufQp_bjf7dDT7eEXDdhPI,207
|
|
57
|
+
chainlit/slack/app.py,sha256=jlZeumG68WyDFsvfFPqTDK69BFT2JMH319nRvH9QHPI,10839
|
|
58
|
+
chainlit/socket.py,sha256=KHabfdproCBlzF4VzLgtvqDA1xMB6_Xai6Ih6MZXogg,11703
|
|
59
|
+
chainlit/step.py,sha256=KEKpQngkp6hwT2mGz62DWhWfcFNtxXWuJwomi0CzauQ,13876
|
|
56
60
|
chainlit/sync.py,sha256=G1n-7-3WgXsN8y1bJkEyws_YwmHZIyDZoZUwhprigag,1235
|
|
57
61
|
chainlit/telemetry.py,sha256=Rk4dnZv0OnGOgV4kD-VHdhgl4i7i3ypqhSE_R-LZceM,3060
|
|
58
62
|
chainlit/translations/en-US.json,sha256=uUuS4hlNoYSlDp0DZGTAlPZxwLfsP4Jiu4ckrfr-fI0,7835
|
|
59
63
|
chainlit/translations.py,sha256=WG_r7HzxBYns-zk9tVvoGdoofv71okTZx8k1RlcoTIg,2034
|
|
60
|
-
chainlit/types.py,sha256=
|
|
64
|
+
chainlit/types.py,sha256=pS0kW3cRmMRQky6nU6_LX8UEwpp7lvkwhhjbHW8DZuE,5358
|
|
61
65
|
chainlit/user.py,sha256=Cw4uGz0ffivWFszv8W__EHwkvTHQ3Lj9hqpRCPxFujo,619
|
|
62
|
-
chainlit/user_session.py,sha256=
|
|
63
|
-
chainlit/utils.py,sha256=
|
|
66
|
+
chainlit/user_session.py,sha256=G1amgs1_h2tVn4mtAXZmunm9nlBHQ_rCYvJQh3nsVwQ,1645
|
|
67
|
+
chainlit/utils.py,sha256=ObNTLIhRDWcx1tHhpULUkpgWSJBlsi2USat2TLaaiTM,2604
|
|
64
68
|
chainlit/version.py,sha256=iosXhlXclBwBqlADFKEilxAC2wWKbtuBKi87AmPi7s8,196
|
|
65
|
-
chainlit-1.0.
|
|
66
|
-
chainlit-1.0.
|
|
67
|
-
chainlit-1.0.
|
|
68
|
-
chainlit-1.0.
|
|
69
|
+
chainlit-1.1.0.dist-info/METADATA,sha256=8Spl2oZhMcZzK1Tiz7XaEUl-dTCyfqN9rR2Q2lknl-8,5527
|
|
70
|
+
chainlit-1.1.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
71
|
+
chainlit-1.1.0.dist-info/entry_points.txt,sha256=FrkqdjrFl8juSnvBndniyX7XuKojmUwO4ghRh-CFMQc,45
|
|
72
|
+
chainlit-1.1.0.dist-info/RECORD,,
|