Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /rpidhe_chainlit-pypi /cypress /e2e /header_auth /main.py
| from typing import Optional | |
| import chainlit as cl | |
| async def header_auth_callback(headers) -> Optional[cl.User]: | |
| if headers.get("test-header"): | |
| return cl.User(identifier="admin") | |
| else: | |
| return None | |
| async def on_chat_start(): | |
| user = cl.user_session.get("user") | |
| await cl.Message(f"Hello {user.identifier}").send() | |
Xet Storage Details
- Size:
- 390 Bytes
- Xet hash:
- d4ce9c7e48a7c9b96b81a2d51b91c275fe876fdafb61a4f1818e15a7c8066e45
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.