mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-26 04:06:12 +01:00
✨ feat: Add badge support to model specifications with TBadge type and schema
This commit is contained in:
parent
acafdb54c2
commit
b50406ab9e
2 changed files with 26 additions and 5 deletions
|
|
@ -76,6 +76,19 @@ const MenuItem: FC<MenuItemProps> = ({
|
|||
<div>
|
||||
{title}
|
||||
<div className="text-token-text-tertiary">{description}</div>
|
||||
{spec.badges && spec.badges.length > 0 && (
|
||||
<div className="mt-1 flex gap-2">
|
||||
{spec.badges.map((badge, index) => (
|
||||
<span
|
||||
key={index}
|
||||
className="inline-flex items-center px-2 py-0.5 rounded-full text-xs font-semibold shadow-sm"
|
||||
style={{ backgroundColor: badge.color, color: '#fff' }}
|
||||
>
|
||||
{badge.text}
|
||||
</span>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue