Dev Design Library

In-Message Error

An accessible per-message error/retry block rendered inline on a failed assistant message (not a global toast), with auto-extracted error text, a classified hint (OOM / WebGPU lost / model load), and a retry action. Data source: useChat err.

In-Message Error preview
Library
LocalMode
Framework
React
Type
component
License
MIT
Dependencies
lucide-react
Install
npx shadcn add @localmode/ui/ui/conversation/in-message-error
Files
  • apps/ui/registry/localmode/conversation/in-message-error/in-message-error.tsx
  • apps/ui/registry/localmode/lib/utils.ts
  • apps/ui/registry/localmode/ui/button.tsx
Source
https://github.com/LocalMode-AI/LocalMode

Categories

More from LocalMode