chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

How to read URL parameters?

Open palmentropyc opened this issue 1 year ago • 3 comments
trafficstars

Hi everyone, I'm trying to obtain a URL parameter or find another way to identify a specific chat session in Chainlit, without using authentication.

I'm looking for guidance on how to read URL parameters from within Chainlit, as accessing them directly from the Python backend seems not straightforward. Specifically, I'm unsure how to bridge the gap between the frontend (React or similar) and the Python backend to achieve this.

I.E if I run mydomain.com/?param1=hello, how can I read this from chainlit?

Any advice or pointers on how to approach this within Chainlit?

Thank you!

palmentropyc avatar Feb 27 '24 11:02 palmentropyc