mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
changing based on PR review
This commit is contained in:
@@ -21,9 +21,6 @@ export function UserMessage({ content }: UserMessageProps) {
|
||||
);
|
||||
}
|
||||
|
||||
// function sanitizeUserMessage(content: string) {
|
||||
// return content.replace(modificationsRegex, '').replace(MODEL_REGEX, 'Using: $1').replace(PROVIDER_REGEX, ' ($1)\n\n').trim();
|
||||
// }
|
||||
function sanitizeUserMessage(content: string | Array<{type: string, text?: string, image_url?: {url: string}}>) {
|
||||
if (Array.isArray(content)) {
|
||||
return content.map(item => {
|
||||
|
||||
Reference in New Issue
Block a user