chainlit 2.0.dev1__py3-none-any.whl → 2.0.dev2__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/server.py +8 -7
- {chainlit-2.0.dev1.dist-info → chainlit-2.0.dev2.dist-info}/METADATA +5 -5
- {chainlit-2.0.dev1.dist-info → chainlit-2.0.dev2.dist-info}/RECORD +5 -5
- {chainlit-2.0.dev1.dist-info → chainlit-2.0.dev2.dist-info}/WHEEL +0 -0
- {chainlit-2.0.dev1.dist-info → chainlit-2.0.dev2.dist-info}/entry_points.txt +0 -0
chainlit/server.py
CHANGED
|
@@ -881,7 +881,7 @@ async def upload_file(
|
|
|
881
881
|
async def get_file(
|
|
882
882
|
file_id: str,
|
|
883
883
|
session_id: str,
|
|
884
|
-
current_user: Annotated[Union[User, PersistedUser], Depends(get_current_user)],
|
|
884
|
+
# current_user: Annotated[Union[User, PersistedUser], Depends(get_current_user)], #TODO: Causes 401 error. See https://github.com/Chainlit/chainlit/issues/1472
|
|
885
885
|
):
|
|
886
886
|
"""Get a file from the session files directory."""
|
|
887
887
|
|
|
@@ -895,12 +895,13 @@ async def get_file(
|
|
|
895
895
|
detail="Unauthorized",
|
|
896
896
|
)
|
|
897
897
|
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
898
|
+
#TODO: Causes 401 error. See https://github.com/Chainlit/chainlit/issues/1472
|
|
899
|
+
# if current_user:
|
|
900
|
+
# if not session.user or session.user.identifier != current_user.identifier:
|
|
901
|
+
# raise HTTPException(
|
|
902
|
+
# status_code=401,
|
|
903
|
+
# detail="You are not authorized to download files from this session",
|
|
904
|
+
# )
|
|
904
905
|
|
|
905
906
|
if file_id in session.files:
|
|
906
907
|
file = session.files[file_id]
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: chainlit
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.dev2
|
|
4
4
|
Summary: Build Conversational AI.
|
|
5
5
|
Home-page: https://chainlit.io/
|
|
6
|
-
License:
|
|
6
|
+
License: Apache-2.0
|
|
7
7
|
Keywords: LLM,Agents,gen ai,chat ui,chatbot ui,openai,copilot,langchain,conversational ai
|
|
8
8
|
Author: Willy Douhard
|
|
9
9
|
Requires-Python: >=3.9,<4.0.0
|
|
10
10
|
Classifier: Environment :: Web Environment
|
|
11
11
|
Classifier: Framework :: FastAPI
|
|
12
|
-
Classifier: License ::
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
13
|
Classifier: Programming Language :: JavaScript
|
|
14
14
|
Classifier: Programming Language :: Python :: 3
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.9
|
|
@@ -67,7 +67,7 @@ Chainlit is an open-source async Python framework which allows developers to bui
|
|
|
67
67
|
|
|
68
68
|
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!
|
|
69
69
|
|
|
70
|
-
> [!NOTE]
|
|
70
|
+
> [!NOTE]
|
|
71
71
|
> Check out [Literal AI](https://literalai.com), our product to monitor and evaluate LLM applications! It works with any Python or TypeScript applications and [seamlessly](https://docs.chainlit.io/data-persistence/overview) with Chainlit by adding a `LITERAL_API_KEY` in your project.
|
|
72
72
|
>
|
|
73
73
|
> Chainlit is developed and maintained by the Literal AI team, which is currently focused on expanding the capabilities of Literal AI. While we continue to support and maintain Chainlit, we are also committed to enabling the community to contribute, particularly in areas like integrations and data layers.
|
|
@@ -92,7 +92,7 @@ If this opens the `hello app` in your browser, you're all set!
|
|
|
92
92
|
The latest in-development version can be installed straight from GitHub with:
|
|
93
93
|
|
|
94
94
|
```sh
|
|
95
|
-
pip install git+https://github.com/Chainlit/chainlit.git
|
|
95
|
+
pip install git+https://github.com/Chainlit/chainlit.git#subdirectory=backend/
|
|
96
96
|
```
|
|
97
97
|
|
|
98
98
|
(Requires Node and pnpm installed on the system.)
|
|
@@ -66,7 +66,7 @@ chainlit/oauth_providers.py,sha256=e-HupFy6HFPCAavBfD3XGBgwHU1n0JrGHO7QjeBp0ts,2
|
|
|
66
66
|
chainlit/openai/__init__.py,sha256=CJp-3lr4NS3X-aZ0H3OvKcL5wFf-cJZffIK0Bwl9jxA,1690
|
|
67
67
|
chainlit/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
68
68
|
chainlit/secret.py,sha256=cQvIFGTQ7r2heC8EOGdgifSZZYqslh-qQxhUhKhD8vU,295
|
|
69
|
-
chainlit/server.py,sha256=
|
|
69
|
+
chainlit/server.py,sha256=wDb8yuKlSS8n_tj3aEEARSkZSXsShPYNgt7uFbHv4Gc,30605
|
|
70
70
|
chainlit/session.py,sha256=dU56wmJ9LSuSAOwKBpYF8ZofV5SoN1oPmWycHWEN85k,9219
|
|
71
71
|
chainlit/slack/__init__.py,sha256=gkC1iYlQrWHDN8bbsWOquwwlyW9DtKAe22GizJJzY7A,226
|
|
72
72
|
chainlit/slack/app.py,sha256=jzy6Nz9kmnJ6j1wfoI94cweSNDjdv7X-ur_lWnq5oVE,11741
|
|
@@ -93,7 +93,7 @@ chainlit/user.py,sha256=mUhnGhYQ__qEx8YzigHhF2Z9xxuqQo5C2U8opKpiVRs,752
|
|
|
93
93
|
chainlit/user_session.py,sha256=T1nQVN_weELXTrkDIV54YgdrA3zIvJGe1tN-nypunt4,1531
|
|
94
94
|
chainlit/utils.py,sha256=hXb5z3jb2syJP0P_jTz3zjDEuIfl0IAmQbA3MooSCTs,3989
|
|
95
95
|
chainlit/version.py,sha256=VcRO6Iwchkv80BWb4hRGkOnBgDhj87-Yjorcv1u5Z3g,276
|
|
96
|
-
chainlit-2.0.
|
|
97
|
-
chainlit-2.0.
|
|
98
|
-
chainlit-2.0.
|
|
99
|
-
chainlit-2.0.
|
|
96
|
+
chainlit-2.0.dev2.dist-info/METADATA,sha256=qdOnT9Ig7MwMr6ZLZvgM-DqZJbVF38dALzvcI4VBygQ,7061
|
|
97
|
+
chainlit-2.0.dev2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
98
|
+
chainlit-2.0.dev2.dist-info/entry_points.txt,sha256=FrkqdjrFl8juSnvBndniyX7XuKojmUwO4ghRh-CFMQc,45
|
|
99
|
+
chainlit-2.0.dev2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|