fix: resolve conflicts

This commit is contained in:
KevIsDev 2025-06-02 11:39:49 +01:00
parent 9e64c2cccf
commit 33e0860468
3 changed files with 69 additions and 67 deletions

View File

@ -83,6 +83,7 @@ export const AssistantMessage = memo(
return (
<div className="overflow-hidden w-full">
<>
<div className=" flex gap-2 items-center text-sm text-bolt-elements-textSecondary mb-2">
{(codeContext || chatSummary) && (
<Popover side="right" align="start" trigger={<div className="i-ph:info" />}>
@ -153,6 +154,7 @@ export const AssistantMessage = memo(
)}
</div>
</div>
</>
<Markdown append={append} chatMode={chatMode} setChatMode={setChatMode} model={model} provider={provider} html>
{content}
</Markdown>

View File

@ -370,8 +370,8 @@ export const BaseChat = React.forwardRef<HTMLDivElement, BaseChatProps>(
append={append}
chatMode={chatMode}
setChatMode={setChatMode}
model={model}
provider={provider}
model={model}
/>
) : null;
}}

View File

@ -151,7 +151,7 @@ export const Markdown = memo(
type: 'text',
text: `[Model: ${model}]\n\n[Provider: ${provider?.name}]\n\n${message}`,
},
] as any, // Type assertion to bypass compiler check
] as any,
role: 'user',
});
console.log('Message appended:', message);
@ -164,7 +164,7 @@ export const Markdown = memo(
type: 'text',
text: `[Model: ${model}]\n\n[Provider: ${provider?.name}]\n\n${message}`,
},
] as any, // Type assertion to bypass compiler check
] as any,
role: 'user',
});
} else if (type === 'link' && typeof href === 'string') {