chainlit 1.1.402__py3-none-any.whl → 1.1.403rc0__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/cli/__init__.py +2 -4
- chainlit/frontend/dist/assets/{DailyMotion-f314e070.js → DailyMotion-dd3d0f11.js} +1 -1
- chainlit/frontend/dist/assets/{Facebook-8ccafb69.js → Facebook-53a09094.js} +1 -1
- chainlit/frontend/dist/assets/{FilePlayer-278edbf8.js → FilePlayer-7fd97f72.js} +1 -1
- chainlit/frontend/dist/assets/{Kaltura-ae0d33ee.js → Kaltura-127ca0f7.js} +1 -1
- chainlit/frontend/dist/assets/{Mixcloud-8cf7a152.js → Mixcloud-14459c9d.js} +1 -1
- chainlit/frontend/dist/assets/{Mux-7a9417e1.js → Mux-913f2511.js} +1 -1
- chainlit/frontend/dist/assets/{Preview-7932fd5a.js → Preview-cb48c96c.js} +1 -1
- chainlit/frontend/dist/assets/{SoundCloud-a6b17460.js → SoundCloud-f416790b.js} +1 -1
- chainlit/frontend/dist/assets/{Streamable-bdaaac70.js → Streamable-304738e0.js} +1 -1
- chainlit/frontend/dist/assets/{Twitch-5c0aa780.js → Twitch-0fdf7e43.js} +1 -1
- chainlit/frontend/dist/assets/{Vidyard-8927f435.js → Vidyard-0fb7aefe.js} +1 -1
- chainlit/frontend/dist/assets/{Vimeo-715c5361.js → Vimeo-10a415ff.js} +1 -1
- chainlit/frontend/dist/assets/{Wistia-8b2b2dba.js → Wistia-7239a75e.js} +1 -1
- chainlit/frontend/dist/assets/{YouTube-77d859f9.js → YouTube-f2b37e5e.js} +1 -1
- chainlit/frontend/dist/assets/{index-f35e8b65.js → index-b8952cd9.js} +3 -3
- chainlit/frontend/dist/assets/{react-plotly-9938b97b.js → react-plotly-cae83415.js} +1 -1
- chainlit/frontend/dist/index.html +1 -1
- chainlit/langchain/callbacks.py +7 -6
- chainlit/server.py +8 -5
- chainlit/utils.py +1 -1
- {chainlit-1.1.402.dist-info → chainlit-1.1.403rc0.dist-info}/METADATA +3 -3
- {chainlit-1.1.402.dist-info → chainlit-1.1.403rc0.dist-info}/RECORD +25 -25
- {chainlit-1.1.402.dist-info → chainlit-1.1.403rc0.dist-info}/WHEEL +0 -0
- {chainlit-1.1.402.dist-info → chainlit-1.1.403rc0.dist-info}/entry_points.txt +0 -0
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
<script>
|
|
22
22
|
const global = globalThis;
|
|
23
23
|
</script>
|
|
24
|
-
<script type="module" crossorigin src="/assets/index-
|
|
24
|
+
<script type="module" crossorigin src="/assets/index-b8952cd9.js"></script>
|
|
25
25
|
<link rel="stylesheet" href="/assets/index-aaf974a9.css">
|
|
26
26
|
</head>
|
|
27
27
|
<body>
|
chainlit/langchain/callbacks.py
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import json
|
|
2
2
|
import time
|
|
3
|
-
from typing import Any, Dict, List, Optional, Tuple, TypedDict, Union
|
|
3
|
+
from typing import Any, Dict, List, Optional, Sequence, Tuple, TypedDict, Union
|
|
4
4
|
from uuid import UUID
|
|
5
5
|
|
|
6
|
+
from chainlit.context import context_var
|
|
7
|
+
from chainlit.message import Message
|
|
8
|
+
from chainlit.step import Step
|
|
6
9
|
from langchain.callbacks.tracers.base import BaseTracer
|
|
7
10
|
from langchain.callbacks.tracers.schemas import Run
|
|
8
11
|
from langchain.schema import BaseMessage
|
|
@@ -12,10 +15,6 @@ from literalai import ChatGeneration, CompletionGeneration, GenerationMessage
|
|
|
12
15
|
from literalai.helper import utc_now
|
|
13
16
|
from literalai.step import TrueStepType
|
|
14
17
|
|
|
15
|
-
from chainlit.context import context_var
|
|
16
|
-
from chainlit.message import Message
|
|
17
|
-
from chainlit.step import Step
|
|
18
|
-
|
|
19
18
|
DEFAULT_ANSWER_PREFIX_TOKENS = ["Final", "Answer", ":"]
|
|
20
19
|
|
|
21
20
|
|
|
@@ -592,7 +591,9 @@ class LangchainTracer(BaseTracer, GenerationHelper, FinalStreamHelper):
|
|
|
592
591
|
output = outputs.get(output_keys[0], outputs)
|
|
593
592
|
|
|
594
593
|
if current_step:
|
|
595
|
-
current_step.output =
|
|
594
|
+
current_step.output = (
|
|
595
|
+
output[0] if isinstance(output, Sequence) and len(output) else output
|
|
596
|
+
)
|
|
596
597
|
current_step.end = utc_now()
|
|
597
598
|
self._run_sync(current_step.update())
|
|
598
599
|
|
chainlit/server.py
CHANGED
|
@@ -172,15 +172,18 @@ copilot_build_dir = get_build_dir(os.path.join("libs", "copilot"), "copilot")
|
|
|
172
172
|
app = FastAPI(lifespan=lifespan)
|
|
173
173
|
|
|
174
174
|
sio = socketio.AsyncServer(
|
|
175
|
-
cors_allowed_origins=[]
|
|
175
|
+
cors_allowed_origins=[], async_mode="asgi"
|
|
176
176
|
)
|
|
177
177
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
178
|
+
sio_mount_location = f"{ROOT_PATH}/ws" if ROOT_PATH else "ws"
|
|
179
|
+
|
|
180
|
+
asgi_app = socketio.ASGIApp(
|
|
181
|
+
socketio_server=sio,
|
|
182
|
+
socketio_path=f"{sio_mount_location}/socket.io",
|
|
182
183
|
)
|
|
183
184
|
|
|
185
|
+
app.mount(f"/{sio_mount_location}", asgi_app)
|
|
186
|
+
|
|
184
187
|
app.add_middleware(
|
|
185
188
|
CORSMiddleware,
|
|
186
189
|
allow_origins=config.project.allow_origins,
|
chainlit/utils.py
CHANGED
|
@@ -118,7 +118,7 @@ def mount_chainlit(app: FastAPI, target: str, path="/chainlit"):
|
|
|
118
118
|
os.environ["CHAINLIT_ROOT_PATH"] = path
|
|
119
119
|
os.environ["CHAINLIT_SUBMOUNT"] = "true"
|
|
120
120
|
from chainlit.config import config, load_module
|
|
121
|
-
from chainlit.server import
|
|
121
|
+
from chainlit.server import app as chainlit_app
|
|
122
122
|
|
|
123
123
|
config.run.root_path = path
|
|
124
124
|
config.run.debug = os.environ.get("CHAINLIT_DEBUG", False)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: chainlit
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.403rc0
|
|
4
4
|
Summary: Build Conversational AI.
|
|
5
5
|
Home-page: https://github.com/Chainlit/chainlit
|
|
6
6
|
License: Apache-2.0 license
|
|
@@ -14,7 +14,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.11
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.12
|
|
16
16
|
Requires-Dist: aiofiles (>=23.1.0,<24.0.0)
|
|
17
|
-
Requires-Dist: asyncer (>=0.0.
|
|
17
|
+
Requires-Dist: asyncer (>=0.0.7,<0.0.8)
|
|
18
18
|
Requires-Dist: click (>=8.1.3,<9.0.0)
|
|
19
19
|
Requires-Dist: dataclasses_json (>=0.5.7,<0.6.0)
|
|
20
20
|
Requires-Dist: fastapi (>=0.110.1,<0.111.0)
|
|
@@ -22,7 +22,7 @@ Requires-Dist: filetype (>=1.2.0,<2.0.0)
|
|
|
22
22
|
Requires-Dist: httpx (>=0.23.0)
|
|
23
23
|
Requires-Dist: lazify (>=0.4.0,<0.5.0)
|
|
24
24
|
Requires-Dist: literalai (==0.0.607)
|
|
25
|
-
Requires-Dist: nest-asyncio (>=1.
|
|
25
|
+
Requires-Dist: nest-asyncio (>=1.6.0,<2.0.0)
|
|
26
26
|
Requires-Dist: numpy (>=1.24.4,<2.0.0) ; python_version < "3.9"
|
|
27
27
|
Requires-Dist: numpy (>=1.26,<2.0) ; python_version >= "3.9"
|
|
28
28
|
Requires-Dist: packaging (>=23.1,<24.0)
|
|
@@ -5,7 +5,7 @@ chainlit/auth.py,sha256=lLHePwmwKzX0LiWqpTAtKTdSecrDLqCMSY9Yw4c-TD8,2681
|
|
|
5
5
|
chainlit/cache.py,sha256=Bv3dT4eHhE6Fq3c6Do0ZTpiyoXgXYewdxTgpYghEd9g,1361
|
|
6
6
|
chainlit/chat_context.py,sha256=X1NInuCkhrfFhFUNIbipVaqf-90xXuyCAB9fvJlEUD4,1868
|
|
7
7
|
chainlit/chat_settings.py,sha256=2ByenmwS8O6jQjDVJjhhbLrBPGA5aY2F7R3VvQQxXPk,877
|
|
8
|
-
chainlit/cli/__init__.py,sha256=
|
|
8
|
+
chainlit/cli/__init__.py,sha256=Hw6nqTIwRnEIemzFewWAPUSt5ClJ04S6xW11vd-PWuU,6128
|
|
9
9
|
chainlit/config.py,sha256=sPcSSSg9aKD87-ajWkGfPE1KiRAso2dCpvLUvybdTQA,16807
|
|
10
10
|
chainlit/context.py,sha256=RdLGlRjx8nBW1onooQdCdcbtMyIBGFlxYkL95oHacdk,3338
|
|
11
11
|
chainlit/copilot/dist/assets/logo_dark-2a3cf740.svg,sha256=Kjz3QMh-oh-ag4YatjU0YCPqGF7F8nHh8VUQoJIs01E,8887
|
|
@@ -20,33 +20,33 @@ chainlit/discord/__init__.py,sha256=kZ_AAMaCToqO-1FdeQ8_IHS2pqNT0QJ-yyd8bCMaHHs,
|
|
|
20
20
|
chainlit/discord/app.py,sha256=-efl4v9wNvfidYPjS2kqNqaaUCvvfBlErZe6lyQF_IE,11174
|
|
21
21
|
chainlit/element.py,sha256=sjOgHjDaTuQ-t663dmBT-iBOgSVTn3mTlbSGjE42LjE,10990
|
|
22
22
|
chainlit/emitter.py,sha256=vfPtgqeHfm5CxZrMHIUXjw7U0wGWYCrQonaEC2SK0vo,13036
|
|
23
|
-
chainlit/frontend/dist/assets/DailyMotion-
|
|
24
|
-
chainlit/frontend/dist/assets/Facebook-
|
|
25
|
-
chainlit/frontend/dist/assets/FilePlayer-
|
|
26
|
-
chainlit/frontend/dist/assets/Kaltura-
|
|
27
|
-
chainlit/frontend/dist/assets/Mixcloud-
|
|
28
|
-
chainlit/frontend/dist/assets/Mux-
|
|
29
|
-
chainlit/frontend/dist/assets/Preview-
|
|
30
|
-
chainlit/frontend/dist/assets/SoundCloud-
|
|
31
|
-
chainlit/frontend/dist/assets/Streamable-
|
|
32
|
-
chainlit/frontend/dist/assets/Twitch-
|
|
33
|
-
chainlit/frontend/dist/assets/Vidyard-
|
|
34
|
-
chainlit/frontend/dist/assets/Vimeo-
|
|
35
|
-
chainlit/frontend/dist/assets/Wistia-
|
|
36
|
-
chainlit/frontend/dist/assets/YouTube-
|
|
23
|
+
chainlit/frontend/dist/assets/DailyMotion-dd3d0f11.js,sha256=yFpoZE_pLTZjllpvslIyBO0NoAJwy_1j_IaOQlI4bzQ,2961
|
|
24
|
+
chainlit/frontend/dist/assets/Facebook-53a09094.js,sha256=G-fYO7xd9ZWRVxsQ17Q6HC09ZqVkPaEj1MhBYbBBtIE,3216
|
|
25
|
+
chainlit/frontend/dist/assets/FilePlayer-7fd97f72.js,sha256=GGggK4okiaoQAneZfn7HAMEkv08RLw42GSA0R9yyl00,9041
|
|
26
|
+
chainlit/frontend/dist/assets/Kaltura-127ca0f7.js,sha256=WJGnOctnn-vpkkhMLUpSbIvxPt91ekfag8zmOXYD7tI,2790
|
|
27
|
+
chainlit/frontend/dist/assets/Mixcloud-14459c9d.js,sha256=Ahci7NltV0oHH6pTi8Y6MtR4jcmCwD0Y6jWG756Z9ms,2638
|
|
28
|
+
chainlit/frontend/dist/assets/Mux-913f2511.js,sha256=7vc22T7eli5rSXGO38x1IRON7Gcz4jdT0SoLiEZn0AU,5360
|
|
29
|
+
chainlit/frontend/dist/assets/Preview-cb48c96c.js,sha256=AIsT3b3uKmZHxnvqn5Xm5DufL9gkb4GionOMIasHseI,3011
|
|
30
|
+
chainlit/frontend/dist/assets/SoundCloud-f416790b.js,sha256=ADfXHwEFL72GFj1e2N_tD1uhgkdMVZQ2jl81uVCtkdc,2923
|
|
31
|
+
chainlit/frontend/dist/assets/Streamable-304738e0.js,sha256=bvdSmKAfwbagt2cOvm8ZO5mmgRPi1DK-t3AoWIUcIrc,2935
|
|
32
|
+
chainlit/frontend/dist/assets/Twitch-0fdf7e43.js,sha256=LQVyAOCgS_ktKO3NpogTOmZsMV8IbqmYUf03Iwf-TfU,3083
|
|
33
|
+
chainlit/frontend/dist/assets/Vidyard-0fb7aefe.js,sha256=m03blgyCWkzH_sgCI0LwFQ1kqDRZi7JC6RoE-DRDYCk,2857
|
|
34
|
+
chainlit/frontend/dist/assets/Vimeo-10a415ff.js,sha256=CnoiWWRmPgc9JVrC7hYuDs1TJr2SDJgM9JibknTLEns,3627
|
|
35
|
+
chainlit/frontend/dist/assets/Wistia-7239a75e.js,sha256=Y-Mx7z27og_hcHG0S13fGoBYKBOCdO5LO1Km-R9e6rw,3514
|
|
36
|
+
chainlit/frontend/dist/assets/YouTube-f2b37e5e.js,sha256=daQq_Z_g6h2VEwoPgJ5cxDFWt0G8R2tba0_85MWHD-s,4448
|
|
37
37
|
chainlit/frontend/dist/assets/index-aaf974a9.css,sha256=qvl0qUmR5u0JcmJAfkzaZpN-0ZKdQjzqCSE9cnrQpZQ,2559
|
|
38
|
-
chainlit/frontend/dist/assets/index-
|
|
38
|
+
chainlit/frontend/dist/assets/index-b8952cd9.js,sha256=_JM0adC5swdRlAqyclLZiD2cOZqz8uSnWJ9fpJa23sw,2757360
|
|
39
39
|
chainlit/frontend/dist/assets/logo_dark-2a3cf740.svg,sha256=Kjz3QMh-oh-ag4YatjU0YCPqGF7F8nHh8VUQoJIs01E,8887
|
|
40
40
|
chainlit/frontend/dist/assets/logo_light-b078e7bc.svg,sha256=sHjnvEq1rfqh3bcexJNYUY7WEDdTQZq3aKZYpi4w4ck,8889
|
|
41
|
-
chainlit/frontend/dist/assets/react-plotly-
|
|
41
|
+
chainlit/frontend/dist/assets/react-plotly-cae83415.js,sha256=PkUoCjmJ2wIpq3lsqvFSUNkQJt8pHCSKAXL5jMu3vZY,3739251
|
|
42
42
|
chainlit/frontend/dist/favicon.svg,sha256=0Cy8x28obT5eWW3nxZRhsEvu6_zMqrqbg0y6hT3D0Q0,6455
|
|
43
|
-
chainlit/frontend/dist/index.html,sha256=
|
|
43
|
+
chainlit/frontend/dist/index.html,sha256=hkjcAIT4kI5lJDU9v0Ey06IShO-mo-mjJUm1bI_4FqA,965
|
|
44
44
|
chainlit/haystack/__init__.py,sha256=uZ77YiPy-qleSTi3dQCDO9HE6S6F6GpJWmh7jO4cxXA,217
|
|
45
45
|
chainlit/haystack/callbacks.py,sha256=goF1_Ua_SB0u_yaiYcAvvXCf-t47-DObmeuqE4VWrQc,5074
|
|
46
46
|
chainlit/hello.py,sha256=LwENQWo5s5r8nNDn4iKSV77vX60Ky5r_qGjQhyi7qlY,416
|
|
47
47
|
chainlit/input_widget.py,sha256=KmOn1nPTBvnld3iIBHR0Vih0KsCxVnTbo2t_xBNANzo,4949
|
|
48
48
|
chainlit/langchain/__init__.py,sha256=zErMw0_3ufSGeF9ye7X0ZX3wDat4mTOx97T40ePDO2g,217
|
|
49
|
-
chainlit/langchain/callbacks.py,sha256=
|
|
49
|
+
chainlit/langchain/callbacks.py,sha256=cY9dCbNKZL3BKeO8j6YiDj3n9DFVY4Mjcao9zMFl5Uo,21204
|
|
50
50
|
chainlit/langflow/__init__.py,sha256=wxhxdsl1yxdsRyNTgZticxFF_8VFtJJ4OdIy3tnEIyM,817
|
|
51
51
|
chainlit/llama_index/__init__.py,sha256=weRoIWCaRBGvA1LczCEfsqhWsltQSVlhtRnTovtdo8w,227
|
|
52
52
|
chainlit/llama_index/callbacks.py,sha256=ix9KGUbug10fZNnK02liq72I6oQlhpjEfbvVmAwNmbg,6547
|
|
@@ -58,7 +58,7 @@ chainlit/oauth_providers.py,sha256=Mv31biQ84EBJfQGBxqhFfnbpl-jfQ_Zn6IxKY3XZg6Q,2
|
|
|
58
58
|
chainlit/openai/__init__.py,sha256=aj8toIwvCktANU1TaH1verKS7ApS6tlhDZFtm1oTyCM,1715
|
|
59
59
|
chainlit/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
60
60
|
chainlit/secret.py,sha256=cQvIFGTQ7r2heC8EOGdgifSZZYqslh-qQxhUhKhD8vU,295
|
|
61
|
-
chainlit/server.py,sha256=
|
|
61
|
+
chainlit/server.py,sha256=T6TeEasvMJ5yGgSG9IRaf1ciOYUdUtNbIifc7Bzi0N8,28337
|
|
62
62
|
chainlit/session.py,sha256=_f99uxAyiRea3nf_E3acfFnDdLZU7evk4WXKtplkwXU,9283
|
|
63
63
|
chainlit/slack/__init__.py,sha256=Q41ztJHeVmpoXVgVqAcwGOufQp_bjf7dDT7eEXDdhPI,207
|
|
64
64
|
chainlit/slack/app.py,sha256=jzy6Nz9kmnJ6j1wfoI94cweSNDjdv7X-ur_lWnq5oVE,11741
|
|
@@ -74,9 +74,9 @@ chainlit/translations.py,sha256=WG_r7HzxBYns-zk9tVvoGdoofv71okTZx8k1RlcoTIg,2034
|
|
|
74
74
|
chainlit/types.py,sha256=494SAbZ2m46KVcpWmxdBtaPVIG1gvEt-1l3rxYlrMbU,5173
|
|
75
75
|
chainlit/user.py,sha256=mUhnGhYQ__qEx8YzigHhF2Z9xxuqQo5C2U8opKpiVRs,752
|
|
76
76
|
chainlit/user_session.py,sha256=T1nQVN_weELXTrkDIV54YgdrA3zIvJGe1tN-nypunt4,1531
|
|
77
|
-
chainlit/utils.py,sha256=
|
|
77
|
+
chainlit/utils.py,sha256=BjkIiU09gRJKRqgd8igQ-hMw0LTbkMI6Y_ugpYfMOPw,3988
|
|
78
78
|
chainlit/version.py,sha256=iosXhlXclBwBqlADFKEilxAC2wWKbtuBKi87AmPi7s8,196
|
|
79
|
-
chainlit-1.1.
|
|
80
|
-
chainlit-1.1.
|
|
81
|
-
chainlit-1.1.
|
|
82
|
-
chainlit-1.1.
|
|
79
|
+
chainlit-1.1.403rc0.dist-info/METADATA,sha256=iBkorkJHfuKp1zH_Fntp86g1ZCdSpAdWQesnn9uFGeA,6294
|
|
80
|
+
chainlit-1.1.403rc0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
81
|
+
chainlit-1.1.403rc0.dist-info/entry_points.txt,sha256=FrkqdjrFl8juSnvBndniyX7XuKojmUwO4ghRh-CFMQc,45
|
|
82
|
+
chainlit-1.1.403rc0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|