fix: agent icons/labels for messages

This commit is contained in:
Danny Avila 2024-09-03 12:57:44 -04:00
parent 2150c4815d
commit 9a9f993f32
No known key found for this signature in database
GPG key ID: 2DD9CC89B9B50364
4 changed files with 57 additions and 7 deletions

View file

@ -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>