mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-03-02 06:10:18 +01:00
fix: agent icons/labels for messages
This commit is contained in:
parent
2150c4815d
commit
9a9f993f32
4 changed files with 57 additions and 7 deletions
|
|
@ -35,9 +35,10 @@ const ContentRender = memo(
|
|||
isSubmittingFamily,
|
||||
}: ContentRenderProps) => {
|
||||
const {
|
||||
ask,
|
||||
// ask,
|
||||
edit,
|
||||
index,
|
||||
agent,
|
||||
assistant,
|
||||
enterEdit,
|
||||
conversation,
|
||||
|
|
@ -55,6 +56,8 @@ const ContentRender = memo(
|
|||
setCurrentEditId,
|
||||
});
|
||||
|
||||
console.log('ContentRender', { agent, conversation, msg });
|
||||
|
||||
const fontSize = useRecoilValue(store.fontSize);
|
||||
const handleRegenerateMessage = useCallback(() => regenerateMessage(), [regenerateMessage]);
|
||||
// const { isCreatedByUser, error, unfinished } = msg ?? {};
|
||||
|
|
@ -108,7 +111,12 @@ const ContentRender = memo(
|
|||
<div>
|
||||
<div className="pt-0.5">
|
||||
<div className="flex h-6 w-6 items-center justify-center overflow-hidden rounded-full">
|
||||
<Icon message={msg} conversation={conversation} assistant={assistant} />
|
||||
<Icon
|
||||
message={msg}
|
||||
conversation={conversation}
|
||||
assistant={assistant}
|
||||
agent={agent}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue