Closed mattt closed 5 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
llama-chat | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 3, 2024 1:58pm |
Success case (show turnstile):
https://github.com/replicate/llama-chat/assets/14149230/ee909311-5811-47e8-8cf9-0b244d47264e
Success case (invisible):
https://github.com/replicate/llama-chat/assets/14149230/c3d112fc-9ce3-4eeb-b3a9-85e868d5b8f2
Fail case:
https://github.com/replicate/llama-chat/assets/14149230/6ea5ac67-c527-4485-a9b3-c62ac1f1aadc
This PR adds a Cloudflare Turnstile challenge on page load to help reduce bot traffic.
From https://developers.cloudflare.com/turnstile/:
The current modal treatment is a bit heavy-handed, but it works for a proof-of-concept. The dev environment and preview deployment use a hard-coded test key, which always passes after showing the widget.
As an improvement, we should conditionalize the dialog to show only when the widget is showing. If we do that, then users passing an invisible challenges could use the app without noticing any change from how it works today.