chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Get access to headers and other request data in Chainlit code

Open bibelwort opened this issue 1 year ago • 2 comments

Dear Chainlit team, could you tell, is there a way to get request headers in Chainlit code? (for example, in FastAPI it is possible to get access to the request data) Specifically, I would like to get the URL which user uses when works with my app. For example, my app can be accessed over two different URLs: bot1.example.com and bot2.example.com. I want to differentiate users by the URL they use.

Unfortunately, I didn't find any information about that in docs.

bibelwort avatar Jul 16 '24 19:07 bibelwort