tui: display 'Free' badge for zero-cost models in model selection dialog

This commit is contained in:
Dax Raad
2025-11-08 16:20:13 -05:00
parent f8a1a0b26f
commit ce9b758d0a
2 changed files with 11 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ export interface DialogSelectOption<T = any> {
title: string
value: T
description?: string
footer?: string
footer?: JSX.Element | string
category?: string
disabled?: boolean
bg?: RGBA
@@ -172,7 +172,6 @@ export function DialogSelect<T>(props: DialogSelectProps<T>) {
props.onFilter?.(e)
})
}}
onKeyDown={(e) => {}}
focusedBackgroundColor={theme.backgroundPanel}
cursorColor={theme.primary}
focusedTextColor={theme.textMuted}
@@ -256,7 +255,7 @@ function Option(props: {
description?: string
active?: boolean
current?: boolean
footer?: string
footer?: JSX.Element | string
onMouseOver?: () => void
}) {
const { theme } = useTheme()