chainlit 1.0.501__py3-none-any.whl → 1.0.502__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/socket.py CHANGED
@@ -276,6 +276,9 @@ async def call_action(sid, action):
276
276
  action = Action(**action)
277
277
 
278
278
  try:
279
+ if not context.session.has_first_interaction:
280
+ context.session.has_first_interaction = True
281
+ asyncio.create_task(context.emitter.init_thread(action.name))
279
282
  res = await process_action(action)
280
283
  await context.emitter.send_action_response(
281
284
  id=action.id, status=True, response=res if isinstance(res, str) else None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: chainlit
3
- Version: 1.0.501
3
+ Version: 1.0.502
4
4
  Summary: Build Conversational AI.
5
5
  Home-page: https://github.com/Chainlit/chainlit
6
6
  License: Apache-2.0 license
@@ -49,7 +49,7 @@ chainlit/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
49
49
  chainlit/secret.py,sha256=cQvIFGTQ7r2heC8EOGdgifSZZYqslh-qQxhUhKhD8vU,295
50
50
  chainlit/server.py,sha256=5HY4W6-iUYriEfgndYMcilTHTow1YsdrDewiGD0dWcY,23716
51
51
  chainlit/session.py,sha256=AP9xhIM0HuvlOrPgcWR6sg161rSmZZ-iDPvJF0f6pZg,8844
52
- chainlit/socket.py,sha256=1-w2uRyGzDNK3v-0Lk6O9eRIJoVjPkyG285pAGePx5E,9810
52
+ chainlit/socket.py,sha256=xcLxqZls_nrUrFHseF_AaYghtwmOCoTv7l6QPr5mwoY,9995
53
53
  chainlit/step.py,sha256=JdXVqG73d9kNtHJjLhmfo1mqkCYtgqfF3jm08uGaCMs,13102
54
54
  chainlit/sync.py,sha256=G1n-7-3WgXsN8y1bJkEyws_YwmHZIyDZoZUwhprigag,1235
55
55
  chainlit/telemetry.py,sha256=Rk4dnZv0OnGOgV4kD-VHdhgl4i7i3ypqhSE_R-LZceM,3060
@@ -60,7 +60,7 @@ chainlit/user.py,sha256=Cw4uGz0ffivWFszv8W__EHwkvTHQ3Lj9hqpRCPxFujo,619
60
60
  chainlit/user_session.py,sha256=nyPx8vSICP8BhpPcW5h9vbHVf9ixj39SrkvJBUI_6zs,1368
61
61
  chainlit/utils.py,sha256=3HzhfZ4XJhBIe9sJ_3Lxv3lMH4mFXsi6nLBGqm8Gtdw,2571
62
62
  chainlit/version.py,sha256=iosXhlXclBwBqlADFKEilxAC2wWKbtuBKi87AmPi7s8,196
63
- chainlit-1.0.501.dist-info/METADATA,sha256=U8cztrSQt_TwKjJOs3eqD1ZP5Y1L9o0wBwTPmDqRtdk,5560
64
- chainlit-1.0.501.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
65
- chainlit-1.0.501.dist-info/entry_points.txt,sha256=FrkqdjrFl8juSnvBndniyX7XuKojmUwO4ghRh-CFMQc,45
66
- chainlit-1.0.501.dist-info/RECORD,,
63
+ chainlit-1.0.502.dist-info/METADATA,sha256=x_a6epCKzziT_oxQYdiVcH4Gcv4jBN4gxIlqjo_KK5k,5560
64
+ chainlit-1.0.502.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
65
+ chainlit-1.0.502.dist-info/entry_points.txt,sha256=FrkqdjrFl8juSnvBndniyX7XuKojmUwO4ghRh-CFMQc,45
66
+ chainlit-1.0.502.dist-info/RECORD,,