Skip to content

Commit

Permalink
feat: add tooltip to vision model icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Neet-Nestor committed Sep 29, 2024
1 parent a2ff238 commit e148fc5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ import {
showConfirm,
showPrompt,
showToast,
Tooltip,
} from "./ui-lib";
import { useNavigate } from "react-router-dom";
import {
Expand Down Expand Up @@ -549,7 +550,11 @@ export function ChatActions(props: {
title: m.name,
value: m.name,
family: m.family,
icon: isVisionModel(m.name) ? <EyeIcon /> : undefined,
icon: isVisionModel(m.name) ? (
<Tooltip content={<div>Vision Model</div>} direction="bottom">
<EyeIcon />
</Tooltip>
) : undefined,
}))}
onClose={() => setShowModelSelector(false)}
onSelection={(s) => {
Expand Down

0 comments on commit e148fc5

Please sign in to comment.