Skip to content

Commit

Permalink
feat: show assistant icon in chat history
Browse files Browse the repository at this point in the history
  • Loading branch information
ix-leejss committed Feb 26, 2025
1 parent e14df59 commit 63f4764
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion client/src/components/Conversations/Convo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ import { useParams } from 'react-router-dom';
import { Constants } from 'librechat-data-provider';
import type { MouseEvent, FocusEvent, KeyboardEvent } from 'react';
import type { TConversation } from 'librechat-data-provider';
import { useNavigateToConvo, useMediaQuery, useLocalize } from '~/hooks';
import {
useNavigateToConvo,
useMediaQuery,
useLocalize,
useAuthContext,
useAssistantsMap,
} from '~/hooks';
import { useUpdateConversationMutation } from '~/data-provider';
import EndpointIcon from '~/components/Endpoints/EndpointIcon';
import { useGetEndpointsQuery } from '~/data-provider';
Expand Down Expand Up @@ -44,6 +50,8 @@ export default function Conversation({
const [isPopoverActive, setIsPopoverActive] = useState(false);
const isSmallScreen = useMediaQuery('(max-width: 768px)');
const localize = useLocalize();
const { isAuthenticated } = useAuthContext();
const assistantMap = useAssistantsMap({ isAuthenticated });

const clickHandler = async (event: MouseEvent<HTMLAnchorElement>) => {
if (event.button === 0 && (event.ctrlKey || event.metaKey)) {
Expand Down Expand Up @@ -195,6 +203,7 @@ export default function Conversation({
<EndpointIcon
conversation={conversation}
endpointsConfig={endpointsConfig}
assistantMap={assistantMap}
size={20}
context="menu-item"
/>
Expand Down

0 comments on commit 63f4764

Please sign in to comment.