Skip to content

Commit

Permalink
fix: display tooltip that was previously not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-on committed Nov 20, 2024
1 parent a22b7e1 commit 1d61aaa
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/components/chat-view/AssistantMessageActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,13 @@ function LLMResponesInfoButton({ message }: { message: ChatAssistantMessage }) {
<Tooltip.Provider delayDuration={0}>
<Tooltip.Root>
<Tooltip.Trigger asChild>
<LLMResponseInfoPopover
usage={message.metadata?.usage}
estimatedPrice={cost}
model={message.metadata?.model?.model}
/>
<div>
<LLMResponseInfoPopover
usage={message.metadata?.usage}
estimatedPrice={cost}
model={message.metadata?.model?.model}
/>
</div>
</Tooltip.Trigger>
<Tooltip.Portal>
<Tooltip.Content className="smtcmp-tooltip-content">
Expand Down

0 comments on commit 1d61aaa

Please sign in to comment.