Buckets:

download
raw
390 Bytes
from typing import Optional
import chainlit as cl
@cl.header_auth_callback
async def header_auth_callback(headers) -> Optional[cl.User]:
if headers.get("test-header"):
return cl.User(identifier="admin")
else:
return None
@cl.on_chat_start
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.