chainlit 1.0.401__py3-none-any.whl → 2.0.4__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.

Files changed (113) hide show
  1. chainlit/__init__.py +98 -279
  2. chainlit/_utils.py +8 -0
  3. chainlit/action.py +12 -10
  4. chainlit/{auth.py → auth/__init__.py} +28 -36
  5. chainlit/auth/cookie.py +123 -0
  6. chainlit/auth/jwt.py +39 -0
  7. chainlit/cache.py +4 -6
  8. chainlit/callbacks.py +362 -0
  9. chainlit/chat_context.py +64 -0
  10. chainlit/chat_settings.py +3 -1
  11. chainlit/cli/__init__.py +77 -8
  12. chainlit/config.py +191 -102
  13. chainlit/context.py +42 -13
  14. chainlit/copilot/dist/index.js +8750 -903
  15. chainlit/data/__init__.py +101 -416
  16. chainlit/data/acl.py +6 -2
  17. chainlit/data/base.py +107 -0
  18. chainlit/data/chainlit_data_layer.py +614 -0
  19. chainlit/data/dynamodb.py +590 -0
  20. chainlit/data/literalai.py +500 -0
  21. chainlit/data/sql_alchemy.py +721 -0
  22. chainlit/data/storage_clients/__init__.py +0 -0
  23. chainlit/data/storage_clients/azure.py +81 -0
  24. chainlit/data/storage_clients/azure_blob.py +89 -0
  25. chainlit/data/storage_clients/base.py +26 -0
  26. chainlit/data/storage_clients/gcs.py +88 -0
  27. chainlit/data/storage_clients/s3.py +75 -0
  28. chainlit/data/utils.py +29 -0
  29. chainlit/discord/__init__.py +6 -0
  30. chainlit/discord/app.py +354 -0
  31. chainlit/element.py +91 -33
  32. chainlit/emitter.py +81 -29
  33. chainlit/frontend/dist/assets/DailyMotion-Ce9dQoqZ.js +1 -0
  34. chainlit/frontend/dist/assets/Dataframe-C1XonMcV.js +22 -0
  35. chainlit/frontend/dist/assets/Facebook-DVVt6lrr.js +1 -0
  36. chainlit/frontend/dist/assets/FilePlayer-c7stW4vz.js +1 -0
  37. chainlit/frontend/dist/assets/Kaltura-BmMmgorA.js +1 -0
  38. chainlit/frontend/dist/assets/Mixcloud-Cw8hDmiO.js +1 -0
  39. chainlit/frontend/dist/assets/Mux-DiRZfeUf.js +1 -0
  40. chainlit/frontend/dist/assets/Preview-6Jt2mRHx.js +1 -0
  41. chainlit/frontend/dist/assets/SoundCloud-DKwcT58_.js +1 -0
  42. chainlit/frontend/dist/assets/Streamable-BVdxrEeX.js +1 -0
  43. chainlit/frontend/dist/assets/Twitch-DFqZR7Gu.js +1 -0
  44. chainlit/frontend/dist/assets/Vidyard-0BQAAtVk.js +1 -0
  45. chainlit/frontend/dist/assets/Vimeo-CRFSH0Vu.js +1 -0
  46. chainlit/frontend/dist/assets/Wistia-CKrmdQaG.js +1 -0
  47. chainlit/frontend/dist/assets/YouTube-CQpL-rvU.js +1 -0
  48. chainlit/frontend/dist/assets/index-DQmLRKyv.css +1 -0
  49. chainlit/frontend/dist/assets/index-QdmxtIMQ.js +8665 -0
  50. chainlit/frontend/dist/assets/react-plotly-B9hvVpUG.js +3484 -0
  51. chainlit/frontend/dist/index.html +2 -4
  52. chainlit/haystack/callbacks.py +4 -7
  53. chainlit/input_widget.py +8 -4
  54. chainlit/langchain/callbacks.py +103 -68
  55. chainlit/langflow/__init__.py +1 -0
  56. chainlit/llama_index/callbacks.py +65 -40
  57. chainlit/markdown.py +22 -6
  58. chainlit/message.py +54 -56
  59. chainlit/mistralai/__init__.py +50 -0
  60. chainlit/oauth_providers.py +266 -8
  61. chainlit/openai/__init__.py +10 -18
  62. chainlit/secret.py +1 -1
  63. chainlit/server.py +789 -228
  64. chainlit/session.py +108 -90
  65. chainlit/slack/__init__.py +6 -0
  66. chainlit/slack/app.py +397 -0
  67. chainlit/socket.py +199 -116
  68. chainlit/step.py +141 -89
  69. chainlit/sync.py +2 -1
  70. chainlit/teams/__init__.py +6 -0
  71. chainlit/teams/app.py +338 -0
  72. chainlit/translations/bn.json +244 -0
  73. chainlit/translations/en-US.json +122 -8
  74. chainlit/translations/gu.json +244 -0
  75. chainlit/translations/he-IL.json +244 -0
  76. chainlit/translations/hi.json +244 -0
  77. chainlit/translations/ja.json +242 -0
  78. chainlit/translations/kn.json +244 -0
  79. chainlit/translations/ml.json +244 -0
  80. chainlit/translations/mr.json +244 -0
  81. chainlit/translations/nl-NL.json +242 -0
  82. chainlit/translations/ta.json +244 -0
  83. chainlit/translations/te.json +244 -0
  84. chainlit/translations/zh-CN.json +243 -0
  85. chainlit/translations.py +60 -0
  86. chainlit/types.py +133 -28
  87. chainlit/user.py +14 -3
  88. chainlit/user_session.py +6 -3
  89. chainlit/utils.py +52 -5
  90. chainlit/version.py +3 -2
  91. {chainlit-1.0.401.dist-info → chainlit-2.0.4.dist-info}/METADATA +48 -50
  92. chainlit-2.0.4.dist-info/RECORD +107 -0
  93. chainlit/cli/utils.py +0 -24
  94. chainlit/frontend/dist/assets/index-9711593e.js +0 -723
  95. chainlit/frontend/dist/assets/index-d088547c.css +0 -1
  96. chainlit/frontend/dist/assets/react-plotly-d8762cc2.js +0 -3602
  97. chainlit/playground/__init__.py +0 -2
  98. chainlit/playground/config.py +0 -40
  99. chainlit/playground/provider.py +0 -108
  100. chainlit/playground/providers/__init__.py +0 -13
  101. chainlit/playground/providers/anthropic.py +0 -118
  102. chainlit/playground/providers/huggingface.py +0 -75
  103. chainlit/playground/providers/langchain.py +0 -89
  104. chainlit/playground/providers/openai.py +0 -408
  105. chainlit/playground/providers/vertexai.py +0 -171
  106. chainlit/translations/pt-BR.json +0 -155
  107. chainlit-1.0.401.dist-info/RECORD +0 -66
  108. /chainlit/copilot/dist/assets/{logo_dark-2a3cf740.svg → logo_dark-IkGJ_IwC.svg} +0 -0
  109. /chainlit/copilot/dist/assets/{logo_light-b078e7bc.svg → logo_light-Bb_IPh6r.svg} +0 -0
  110. /chainlit/frontend/dist/assets/{logo_dark-2a3cf740.svg → logo_dark-IkGJ_IwC.svg} +0 -0
  111. /chainlit/frontend/dist/assets/{logo_light-b078e7bc.svg → logo_light-Bb_IPh6r.svg} +0 -0
  112. {chainlit-1.0.401.dist-info → chainlit-2.0.4.dist-info}/WHEEL +0 -0
  113. {chainlit-1.0.401.dist-info → chainlit-2.0.4.dist-info}/entry_points.txt +0 -0
chainlit/version.py CHANGED
@@ -3,5 +3,6 @@ from importlib import metadata
3
3
  try:
4
4
  __version__ = metadata.version(__package__)
5
5
  except metadata.PackageNotFoundError:
6
- # Case where package metadata is not available.
7
- __version__ = ""
6
+ # Case where package metadata is not available, default to a 'non-outdated' version.
7
+ # Ref: config.py::load_settings()
8
+ __version__ = "2.0.4"
@@ -1,41 +1,48 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: chainlit
3
- Version: 1.0.401
3
+ Version: 2.0.4
4
4
  Summary: Build Conversational AI.
5
- Home-page: https://github.com/Chainlit/chainlit
6
- License: Apache-2.0 license
5
+ Home-page: https://chainlit.io/
6
+ License: Apache-2.0
7
7
  Keywords: LLM,Agents,gen ai,chat ui,chatbot ui,openai,copilot,langchain,conversational ai
8
- Author: Chainlit
9
- Requires-Python: >=3.8.1,<4.0.0
10
- Classifier: License :: Other/Proprietary License
8
+ Author: Willy Douhard
9
+ Requires-Python: >=3.9,<4.0.0
10
+ Classifier: Environment :: Web Environment
11
+ Classifier: Framework :: FastAPI
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Programming Language :: JavaScript
11
14
  Classifier: Programming Language :: Python :: 3
12
15
  Classifier: Programming Language :: Python :: 3.9
13
16
  Classifier: Programming Language :: Python :: 3.10
14
17
  Classifier: Programming Language :: Python :: 3.11
15
18
  Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Topic :: Communications :: Chat
20
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
21
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
22
+ Classifier: Topic :: Software Development :: User Interfaces
16
23
  Requires-Dist: aiofiles (>=23.1.0,<24.0.0)
17
- Requires-Dist: asyncer (>=0.0.2,<0.0.3)
24
+ Requires-Dist: asyncer (>=0.0.7,<0.0.8)
18
25
  Requires-Dist: click (>=8.1.3,<9.0.0)
19
- Requires-Dist: dataclasses_json (>=0.5.7,<0.6.0)
20
- Requires-Dist: fastapi (>=0.100)
21
- Requires-Dist: fastapi-socketio (>=0.0.10,<0.0.11)
26
+ Requires-Dist: dataclasses_json (>=0.6.7,<0.7.0)
27
+ Requires-Dist: fastapi (>=0.115.3,<0.116)
22
28
  Requires-Dist: filetype (>=1.2.0,<2.0.0)
23
29
  Requires-Dist: httpx (>=0.23.0)
24
30
  Requires-Dist: lazify (>=0.4.0,<0.5.0)
25
- Requires-Dist: literalai (==0.0.300)
26
- Requires-Dist: nest-asyncio (>=1.5.6,<2.0.0)
31
+ Requires-Dist: literalai (==0.1.103)
32
+ Requires-Dist: nest-asyncio (>=1.6.0,<2.0.0)
27
33
  Requires-Dist: packaging (>=23.1,<24.0)
28
34
  Requires-Dist: pydantic (>=1,<3)
29
35
  Requires-Dist: pyjwt (>=2.8.0,<3.0.0)
30
36
  Requires-Dist: python-dotenv (>=1.0.0,<2.0.0)
31
- Requires-Dist: python-graphql-client (>=0.4.3,<0.5.0)
32
- Requires-Dist: python-multipart (>=0.0.9,<0.0.10)
33
- Requires-Dist: starlette (<0.33.0)
37
+ Requires-Dist: python-multipart (>=0.0.18,<0.0.19)
38
+ Requires-Dist: python-socketio (>=5.11.0,<6.0.0)
39
+ Requires-Dist: starlette (>=0.41.2,<0.42.0)
34
40
  Requires-Dist: syncer (>=2.0.3,<3.0.0)
35
41
  Requires-Dist: tomli (>=2.0.1,<3.0.0)
36
42
  Requires-Dist: uptrace (>=1.22.0,<2.0.0)
37
43
  Requires-Dist: uvicorn (>=0.25.0,<0.26.0)
38
44
  Requires-Dist: watchfiles (>=0.20.0,<0.21.0)
45
+ Project-URL: Documentation, https://docs.chainlit.io/
39
46
  Project-URL: Repository, https://github.com/Chainlit/chainlit
40
47
  Description-Content-Type: text/markdown
41
48
 
@@ -43,34 +50,40 @@ Description-Content-Type: text/markdown
43
50
 
44
51
  [![](https://dcbadge.vercel.app/api/server/ZThrUxbAYw?style=flat)](https://discord.gg/k73SQ3FyUh)
45
52
  [![Twitter](https://img.shields.io/twitter/url/https/twitter.com/chainlit_io.svg?style=social&label=Follow%20%40chainlit_io)](https://twitter.com/chainlit_io)
53
+ ![PyPI - Downloads](https://img.shields.io/pypi/dm/chainlit)
54
+ [![GitHub Contributors](https://img.shields.io/github/contributors/chainlit/chainlit)](https://github.com/chainlit/chainlit/graphs/contributors)
46
55
  [![CI](https://github.com/Chainlit/chainlit/actions/workflows/ci.yaml/badge.svg)](https://github.com/Chainlit/chainlit/actions/workflows/ci.yaml)
47
56
 
48
57
  **Build production-ready Conversational AI applications in minutes, not weeks ⚡️**
49
58
 
50
59
  Chainlit is an open-source async Python framework which allows developers to build scalable Conversational AI or agentic applications.
51
60
 
52
- - ChatGPT-like application
53
- - ✅ Embedded Chatbot & Software Copilot
54
- - ✅ Custom frontend (build your own agentic experience)
55
- - ✅ API Endpoint
61
+ Full documentation is available [here](https://docs.chainlit.io). You can ask Chainlit related questions to [Chainlit Help](https://help.chainlit.io/), an app built using Chainlit!
56
62
 
57
- Full documentation is available [here](https://docs.chainlit.io).
63
+ https://github.com/user-attachments/assets/b3738aba-55c0-42fa-ac00-6efd1ee0d148
58
64
 
59
- Contact us [here](https://forms.gle/BX3UNBLmTF75KgZVA) for **Enterprise Support** and to get early access to Literal AI, our product to evaluate and monitor LLM applications.
60
-
61
- https://github.com/Chainlit/chainlit/assets/13104895/8882af90-fdfa-4b24-8200-1ee96c6c7490
62
65
 
63
66
  ## Installation
64
67
 
65
68
  Open a terminal and run:
66
69
 
67
- ```bash
68
- $ pip install chainlit
69
- $ chainlit hello
70
+ ```sh
71
+ pip install chainlit
72
+ chainlit hello
70
73
  ```
71
74
 
72
75
  If this opens the `hello app` in your browser, you're all set!
73
76
 
77
+ ### Development version
78
+
79
+ The latest in-development version can be installed straight from GitHub with:
80
+
81
+ ```sh
82
+ pip install git+https://github.com/Chainlit/chainlit.git#subdirectory=backend/
83
+ ```
84
+
85
+ (Requires Node and pnpm installed on the system.)
86
+
74
87
  ## 🚀 Quickstart
75
88
 
76
89
  ### 🐍 Pure Python
@@ -81,8 +94,10 @@ Create a new file `demo.py` with the following code:
81
94
  import chainlit as cl
82
95
 
83
96
 
84
- @cl.step
85
- def tool():
97
+ @cl.step(type="tool")
98
+ async def tool():
99
+ # Fake tool
100
+ await cl.sleep(2)
86
101
  return "Response from the tool!"
87
102
 
88
103
 
@@ -99,37 +114,20 @@ async def main(message: cl.Message):
99
114
  None.
100
115
  """
101
116
 
117
+
102
118
  # Call the tool
103
- tool()
119
+ tool_res = await tool()
104
120
 
105
- # Send the final answer.
106
- await cl.Message(content="This is the final answer").send()
121
+ await cl.Message(content=tool_res).send()
107
122
  ```
108
123
 
109
124
  Now run it!
110
125
 
111
- ```
112
- $ chainlit run demo.py -w
126
+ ```sh
127
+ chainlit run demo.py -w
113
128
  ```
114
129
 
115
130
  <img src="/images/quick-start.png" alt="Quick Start"></img>
116
- ## 🎉 Key Features and Integrations
117
-
118
- Full documentation is available [here](https://docs.chainlit.io). Key features:
119
-
120
- - [💬 Multi Modal chats](https://docs.chainlit.io/advanced-features/multi-modal)
121
- - [💭 Chain of Thought visualisation](https://docs.chainlit.io/concepts/step)
122
- - [💾 Data persistence + human feedback](https://docs.chainlit.io/data-persistence/overview)
123
- - [🛝 In context Prompt Playground](https://docs.chainlit.io/advanced-features/prompt-playground/overview)
124
- - [👤 Authentication](https://docs.chainlit.io/authentication/overview)
125
-
126
- Chainlit is compatible with all Python programs and libraries. That being said, it comes with integrations for:
127
-
128
- - [LangChain](https://docs.chainlit.io/integrations/langchain)
129
- - [Llama Index](https://docs.chainlit.io/integrations/llama-index)
130
- - [Autogen](https://github.com/Chainlit/cookbook/tree/main/pyautogen)
131
- - [OpenAI Assistant](https://github.com/Chainlit/cookbook/tree/main/openai-assistant)
132
- - [Haystack](https://docs.chainlit.io/integrations/haystack)
133
131
 
134
132
  ## 📚 More Examples - Cookbook
135
133
 
@@ -0,0 +1,107 @@
1
+ chainlit/__init__.py,sha256=ZfEoaKPb53KVkzNvnsJLH2NWNaMyYvf0cPCZTAOsiNo,4371
2
+ chainlit/__main__.py,sha256=7Vg3w3T3qDuz4KDu5lQhLH6lQ3cYdume7gHH7Z1V97U,87
3
+ chainlit/_utils.py,sha256=vaKfEpXcL4kXktp54IRQWZRK4L_HGK8gJuAoIM29YYc,289
4
+ chainlit/action.py,sha256=ljtpsPYRtFYigw2G6VbBworRHDL2fq8hE9A4H_fEijw,1333
5
+ chainlit/auth/__init__.py,sha256=RB7rw0-fa4gVh6cAKieqFVGB7F-cr84IOBvx1yoKU1g,2613
6
+ chainlit/auth/cookie.py,sha256=z_8kBDdrY9t89oH0Qr-gt4zd0PRb50-f5_zTm-jp-I4,3817
7
+ chainlit/auth/jwt.py,sha256=2ZgwNljDk-ekpTU1kohvI55gaB9IM1bYJYHN1Xa7AKQ,965
8
+ chainlit/cache.py,sha256=tPWzO4UHMgNnAnKolKdW0pm08ceZykrs25kvpWJHhN8,1389
9
+ chainlit/callbacks.py,sha256=_77KLfR2tXHOLpmDZbWsXWRquXlMvPRpeBPGY1rohKM,10151
10
+ chainlit/chat_context.py,sha256=rVA4t2Df8YzMg-gNVArhDTZZ3wX83nOyKmgyHo8sJjQ,1848
11
+ chainlit/chat_settings.py,sha256=iZ2vSUUz9UIBwrRBTelTJFzvNMDZ5vX2f16BuSDThEY,898
12
+ chainlit/cli/__init__.py,sha256=00uuJPlSinXAV2WuHLIVQOQlZfOEUrwb1PD8coIFG6U,6582
13
+ chainlit/config.py,sha256=-5fArnxK7LJ1Am4Qww0i3aDAUWiWxKYxdMQo2ltcXak,16573
14
+ chainlit/context.py,sha256=BtbGRdmRRqOC5Vbz8zijkgiN0gyKuDamkPPNrscOgo4,3317
15
+ chainlit/copilot/dist/assets/logo_dark-IkGJ_IwC.svg,sha256=Kjz3QMh-oh-ag4YatjU0YCPqGF7F8nHh8VUQoJIs01E,8887
16
+ chainlit/copilot/dist/assets/logo_light-Bb_IPh6r.svg,sha256=sHjnvEq1rfqh3bcexJNYUY7WEDdTQZq3aKZYpi4w4ck,8889
17
+ chainlit/copilot/dist/index.js,sha256=mM3RbLtRiyXTfC6ssnYReQ2IHbjJsmFxMw8xtHVOWS8,7742095
18
+ chainlit/data/__init__.py,sha256=u9s1XLiryEW9t0PuJOSbIjOHqgOQ8_BbtAwJcJmZyXI,4729
19
+ chainlit/data/acl.py,sha256=1g9fWxq3K2n06g1Ngb_QNBhyKNXUpKEGiUW6VnAfqtg,575
20
+ chainlit/data/base.py,sha256=CmqWc9BtqGk79UUqJJIni81vAJFaV_UFpaFCw7gTkR0,2527
21
+ chainlit/data/chainlit_data_layer.py,sha256=rEs-MFcs7EEK3DIttsJZfpnuYC4ilbdtO1l-xW22NlI,21668
22
+ chainlit/data/dynamodb.py,sha256=UP3-3KZHFOCWxWQ-PL1VecLLSi0mKwFM-RiEfPtbVWE,19413
23
+ chainlit/data/literalai.py,sha256=TVzNbrc0-HhkfmQxuaIzqQco9i0kg-R9k_E397-CR1w,17090
24
+ chainlit/data/sql_alchemy.py,sha256=doDUh3lKXY1TlnHiF6-p576Opf6eIeYOaudtcdIqO8k,30521
25
+ chainlit/data/storage_clients/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
+ chainlit/data/storage_clients/azure.py,sha256=QQYX6J60kbYmQTggQQFaHdsVw61skh1FCL3V0X-Qy30,2531
27
+ chainlit/data/storage_clients/azure_blob.py,sha256=c3svW1jovdj-VtnhdJEsCqrABU2NQ9c565GuqER9ZB0,3283
28
+ chainlit/data/storage_clients/base.py,sha256=L_pp4dhLf--BzkfHDzuJbKJinFa9AHJHLZ9BGC-Z28c,644
29
+ chainlit/data/storage_clients/gcs.py,sha256=aRbbyrL7bOasOKVdycW4yykJVGt_IYM3ymoTO4Z3Ydw,2926
30
+ chainlit/data/storage_clients/s3.py,sha256=E9Qtw3SEZkLCd9UXPlz0dTpFz8X-UDYk95dMAen3FDg,2519
31
+ chainlit/data/utils.py,sha256=cVe8p9F-lITgmAD2xhON_h0nKJVrh1P0AUoLCq6JCWs,966
32
+ chainlit/discord/__init__.py,sha256=lTHHcYQmfa2wpJ35m3eveEpUbp6ti2YSA7AdopfsREs,219
33
+ chainlit/discord/app.py,sha256=Kx0Y48Isy1BbwtoVM16tXqAIYtf_j8y1z2kXS5zIkuk,11175
34
+ chainlit/element.py,sha256=k0Wui8-O7tQLGmWrM7qwsUmIS03K4a6eVk3R4Grp2B8,11799
35
+ chainlit/emitter.py,sha256=562UUR_tY9974Vrd8iL8lZ46gsONNnh4gPH4pfx4QmI,14135
36
+ chainlit/frontend/dist/assets/DailyMotion-Ce9dQoqZ.js,sha256=bD7L4DkyOZMuBr9FNkUW2umg7m_7a6vVn_bVxsI5qXk,2958
37
+ chainlit/frontend/dist/assets/Dataframe-C1XonMcV.js,sha256=RaUJVdUAbwKUK5KslrSkwQ8jaPAuNoy7fHCiO7sJQJU,53932
38
+ chainlit/frontend/dist/assets/Facebook-DVVt6lrr.js,sha256=Mvjh6cFYNywITjB1XFmA2R5T7HMDaZoUnkMP7PRR3aA,3213
39
+ chainlit/frontend/dist/assets/FilePlayer-c7stW4vz.js,sha256=B9OV6WUcgZ8JSFqHNKcwsCXNOTOOlbSVhYvzf-y6SYw,9038
40
+ chainlit/frontend/dist/assets/Kaltura-BmMmgorA.js,sha256=BvXI56moFAgc_cTOxe1WB3pSKlahNMByDdoiExkkRyE,2787
41
+ chainlit/frontend/dist/assets/Mixcloud-Cw8hDmiO.js,sha256=LOrEN8hj5tkxCx26B3w97PzRzsJZvpngeaKcq4T9JsY,2635
42
+ chainlit/frontend/dist/assets/Mux-DiRZfeUf.js,sha256=2QH_AY4Aqds-TNn6XmI9a1i3ZY12MMNHTq1gjJmfk9E,5357
43
+ chainlit/frontend/dist/assets/Preview-6Jt2mRHx.js,sha256=8lZTpr3UxRJX6mcUQQ9WD93ZLIuuqZhGp65Y-bgA7mc,3008
44
+ chainlit/frontend/dist/assets/SoundCloud-DKwcT58_.js,sha256=wmFSnF6xJ6deq0M8lDBxJFjZPWm93oaMAtgPZS11o6I,2920
45
+ chainlit/frontend/dist/assets/Streamable-BVdxrEeX.js,sha256=hEAApu65Bociw5hCGhdC6tYjqDIrepXPSAyTefGD-Xk,2932
46
+ chainlit/frontend/dist/assets/Twitch-DFqZR7Gu.js,sha256=dUSTQAylw7hTBAgCZhXq5HdW8c7YnhjZGFmbdb2Mr-Y,3080
47
+ chainlit/frontend/dist/assets/Vidyard-0BQAAtVk.js,sha256=-akjBaNUsaI0HGzf0aWPjj10GV9r8lr2RelyryRsznY,2854
48
+ chainlit/frontend/dist/assets/Vimeo-CRFSH0Vu.js,sha256=zj7IW38jCOekKtum8YM18AJQc3W3d4vcynna0jrs3QI,3624
49
+ chainlit/frontend/dist/assets/Wistia-CKrmdQaG.js,sha256=FH-Pm1IPetCXK7YXF9h9ykrIeXcHUuf06ssa3MX2ZBo,3516
50
+ chainlit/frontend/dist/assets/YouTube-CQpL-rvU.js,sha256=ABRiKLbdSU_KPbtsVQTOHa00ExXiiUUVqJ22bnwzNUA,4445
51
+ chainlit/frontend/dist/assets/index-DQmLRKyv.css,sha256=FDKGP8HgakbeXS5AJTjNIaL8VNkWbvidtAExskg855I,60923
52
+ chainlit/frontend/dist/assets/index-QdmxtIMQ.js,sha256=dukGku7SYRrUBX3ikM-RDmARoTykQUoZsx6x_YnwTS0,3735132
53
+ chainlit/frontend/dist/assets/logo_dark-IkGJ_IwC.svg,sha256=Kjz3QMh-oh-ag4YatjU0YCPqGF7F8nHh8VUQoJIs01E,8887
54
+ chainlit/frontend/dist/assets/logo_light-Bb_IPh6r.svg,sha256=sHjnvEq1rfqh3bcexJNYUY7WEDdTQZq3aKZYpi4w4ck,8889
55
+ chainlit/frontend/dist/assets/react-plotly-B9hvVpUG.js,sha256=2Xmwj4H9ByFH747kYsN-1h0E9wwsMds9rPL-Pg1ZNz4,3762918
56
+ chainlit/frontend/dist/favicon.svg,sha256=0Cy8x28obT5eWW3nxZRhsEvu6_zMqrqbg0y6hT3D0Q0,6455
57
+ chainlit/frontend/dist/index.html,sha256=MzfWFE-F4L4tWAeb549i-GgwuOxwBvBBVfM5MbpEM_A,972
58
+ chainlit/haystack/__init__.py,sha256=uZ77YiPy-qleSTi3dQCDO9HE6S6F6GpJWmh7jO4cxXA,217
59
+ chainlit/haystack/callbacks.py,sha256=J5t6YL3QoxyT0sg8t08nPA7b4VOGKIkmWtkbmFZXjBI,5038
60
+ chainlit/hello.py,sha256=LwENQWo5s5r8nNDn4iKSV77vX60Ky5r_qGjQhyi7qlY,416
61
+ chainlit/input_widget.py,sha256=crASWi5cijqVt90pnpWpe8fQI5TFXrS0Oj87VO1N0P4,4952
62
+ chainlit/langchain/__init__.py,sha256=zErMw0_3ufSGeF9ye7X0ZX3wDat4mTOx97T40ePDO2g,217
63
+ chainlit/langchain/callbacks.py,sha256=5TKjiHE3Ix2AgFyTq19PPMdlMvLx1bF6M4fuGAPZfP4,21535
64
+ chainlit/langflow/__init__.py,sha256=xXEWofu5NexIO-zBo_2p18w2rO6JMBntZjTfakKxxAM,818
65
+ chainlit/llama_index/__init__.py,sha256=weRoIWCaRBGvA1LczCEfsqhWsltQSVlhtRnTovtdo8w,227
66
+ chainlit/llama_index/callbacks.py,sha256=aCi39G4Sbh_MjuSZbBv3_PM5190YA5UqNTN7DrdtT1I,7282
67
+ chainlit/logger.py,sha256=wTwRSZsLfXwWy6U4351IgWAm4KCMThgxm9EZpjGUEr4,373
68
+ chainlit/markdown.py,sha256=V-Op4hyqyTTvXInU5QrHfxs0nb71lBMU8trOSAlast8,2142
69
+ chainlit/message.py,sha256=KoBretNwiS2i1BMPhRpqItlcEvyanxgaq8qh-Dwv6R0,17232
70
+ chainlit/mistralai/__init__.py,sha256=BeH3LRmJ5mUgMlOA8XS61nhoQwVreW6sENJdIrlfDXw,1508
71
+ chainlit/oauth_providers.py,sha256=AnH-bqeCnS7VgyIhgAHDI5-XkVWsFr52yo65ldePxxw,26653
72
+ chainlit/openai/__init__.py,sha256=qGC9yJydzlZffrC1oCPZwpuWwJkittDq74o6U2J_-Ho,1691
73
+ chainlit/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
74
+ chainlit/secret.py,sha256=eYbDDENGfk1XcQ-hIOT2kEejZeLi6Y3Y3qWD5Y7JbCg,293
75
+ chainlit/server.py,sha256=aA4-cCWcbzdD477hgZYCabCcLuclmccBIEklGPAn1II,39313
76
+ chainlit/session.py,sha256=ILL6j_J2gmiW5qwMIpmy1oO-3sQCob-p7HDgxXufwqk,9490
77
+ chainlit/slack/__init__.py,sha256=gkC1iYlQrWHDN8bbsWOquwwlyW9DtKAe22GizJJzY7A,226
78
+ chainlit/slack/app.py,sha256=OvbbGZARI1mHOEdVvxh8KTZ35Ryi4AbdP7grjr-VU1k,11742
79
+ chainlit/socket.py,sha256=QvN54a-1wJXGMtZ-qRTaTdwKrn7pGzsIyV3v9PW2gKg,12214
80
+ chainlit/step.py,sha256=_bJZ3EuPEcLmtvpfJGpgixQcz6aTUqXEil40-BuS5xE,14312
81
+ chainlit/sync.py,sha256=pEaqdEoOp4W26p9-E11BiXemVTN4_OsYEcYyjLBEj7E,1236
82
+ chainlit/teams/__init__.py,sha256=_lUcuc5R4bYwUoC15jyKES10KTeH8ciSWqV5JyLrW6M,236
83
+ chainlit/teams/app.py,sha256=PAvlGkfF-KGe9PYT6rL8UXu4OYzsPjfTiNsysH1X8NY,10534
84
+ chainlit/telemetry.py,sha256=Rk4dnZv0OnGOgV4kD-VHdhgl4i7i3ypqhSE_R-LZceM,3060
85
+ chainlit/translations/bn.json,sha256=x6S70VG86_D5xBUrOWV1BV-mlaz--zx_lDQyzMZF10M,13590
86
+ chainlit/translations/en-US.json,sha256=tbeKIy_rCI2kgYAUmxbqFpCyhp-A3BjPCHJQx8blOWs,9216
87
+ chainlit/translations/gu.json,sha256=l1Y1Gom_pZ7yd9bu6g8K50lIQC6y0KuSR7062a8-hdw,13117
88
+ chainlit/translations/he-IL.json,sha256=mG4bntc0XJauKxDX6E8wzsjo5V4XpO98rSctpfN-z4M,9207
89
+ chainlit/translations/hi.json,sha256=r5Vj0hlUG16cuVr3PK4uKf-LZQW9Ve5c1XrwqkcxsV8,12815
90
+ chainlit/translations/ja.json,sha256=Ma_kEJBwABZKUiPiZY_tk82DqiIUM3f_-s7rGtUkJRI,12079
91
+ chainlit/translations/kn.json,sha256=ijm0pkCuFW4Hthtd1jFpw4jx5ZVEHwPkIMHHgoFBSQo,13993
92
+ chainlit/translations/ml.json,sha256=9_LIvOlIBDeIXxMaLe0FqU6WhWNj4m_CSEfXMDRE4Uk,14688
93
+ chainlit/translations/mr.json,sha256=xpXYu6JeFpwNV0Yyq_r9Kh9V7PJq0Q8aGy_xuQOqG_M,12913
94
+ chainlit/translations/nl-NL.json,sha256=C8GLLeLRwBJh5AP3w7j406Y-OsaIylkn8a-U8kryvsE,10703
95
+ chainlit/translations/ta.json,sha256=4Cs4Xg5lJUt1rxN-CsZ-cO2TmVZ0A3RMVSAyGSkHGVQ,14570
96
+ chainlit/translations/te.json,sha256=fBe56Bc6qX1CNxoH-_XOeFFoqYzbQfYSWVtcVaqU7TY,14026
97
+ chainlit/translations/zh-CN.json,sha256=r4fksXNim12FGKhwUbFu-W2A8VCPThHRQpaDIsIrsgg,7968
98
+ chainlit/translations.py,sha256=WG_r7HzxBYns-zk9tVvoGdoofv71okTZx8k1RlcoTIg,2034
99
+ chainlit/types.py,sha256=Kx3G-gWd6LeGQweBo5kfC6HaXYysjJT_wU7ztC784Lg,5378
100
+ chainlit/user.py,sha256=yC9WvWYogoAa-6-mBR2HNHuZdE5rejGQD4vqQixIckA,772
101
+ chainlit/user_session.py,sha256=OWkIuDuy-He9_u6NHmH_mqpMiWFNPR2RoB8Cveum4Vw,1597
102
+ chainlit/utils.py,sha256=ht6S0RM0-51_EyKZ128yRYAT294Bf3gwgMBzIHv1xRI,3990
103
+ chainlit/version.py,sha256=E5ZxglNCvhAwudGTBLD34cbi-boURDdk4bjDDhwQHGc,276
104
+ chainlit-2.0.4.dist-info/METADATA,sha256=3iOLduRPCRtrdaq_VeNBCA922y2Io0n8qFe0SoNPP80,5150
105
+ chainlit-2.0.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
106
+ chainlit-2.0.4.dist-info/entry_points.txt,sha256=FrkqdjrFl8juSnvBndniyX7XuKojmUwO4ghRh-CFMQc,45
107
+ chainlit-2.0.4.dist-info/RECORD,,
chainlit/cli/utils.py DELETED
@@ -1,24 +0,0 @@
1
- import os
2
-
3
- import click
4
-
5
-
6
- def check_file(target: str):
7
- # Define accepted file extensions for Chainlit
8
- ACCEPTED_FILE_EXTENSIONS = ("py", "py3")
9
-
10
- _, extension = os.path.splitext(target)
11
-
12
- # Check file extension
13
- if extension[1:] not in ACCEPTED_FILE_EXTENSIONS:
14
- if extension[1:] == "":
15
- raise click.BadArgumentUsage(
16
- "Chainlit requires raw Python (.py) files, but the provided file has no extension."
17
- )
18
- else:
19
- raise click.BadArgumentUsage(
20
- f"Chainlit requires raw Python (.py) files, not {extension}."
21
- )
22
-
23
- if not os.path.exists(target):
24
- raise click.BadParameter(f"File does not exist: {target}")