Reading view

Lucet: components for the unhappy AI states (refusals, rate limits, stale answers)

Lucet: components for the unhappy AI states (refusals, rate limits, stale answers)

I kept rebuilding the same things around AI features: what to show when the model refuses, when the stream dies halfway, when the answer came out of a cache that’s four hours old, when the source you cited has since been deleted, when the month’s budget runs out mid-conversation. Every time it ended up as a toast and a spinner.

So I made a library out of them.

Demo with every state as a URL: https://lucet.design/?state=refusal — and service-down, stale-result, budget-spent.

Repo: https://github.com/I4NL4RS0N/lucet · npm i lucet-core lucet-react · MIT, 0.5.0, 12 components.

React-only right now.

If you’ve solved these states differently I’d like to hear how.

submitted by /u/Vladimir3000 to r/reactjs
[link] [comments]
  •  
❌