Dev Design Library

Provider Badge

Displays the RESOLVED provider identity - composing ProviderFallbackBadge for the tier and name - alongside the model id that actually served the request. While providerName is null it shows a Resolving provider placeholder, so the badge ne.

Provider Badge preview
Library
LocalMode
Framework
React
Type
component
License
MIT
Install
npx shadcn add @localmode/ui/ui/local-first/provider-badge
Files
  • apps/ui/registry/localmode/local-first/provider-badge/provider-badge.tsx
  • apps/ui/registry/localmode/local-first/provider-fallback-badge/provider-fallback-badge.tsx
  • apps/ui/src/lib/use-environment.ts
  • apps/ui/registry/localmode/lib/utils.ts
Source
https://github.com/LocalMode-AI/LocalMode

Categories

More from LocalMode