fix: enhance UserMessage component to support image parts and improve rendering
- Updated UserMessage to accept a new `parts` prop for handling different message types, including images. - Refactored image handling to extract and display images from the parts array, ensuring proper rendering of image content. - Adjusted the layout and styling of the UserMessage component for better visual presentation.
This commit is contained in:
@@ -589,6 +589,8 @@ export const ChatImpl = memo(
|
||||
textareaRef.current?.blur();
|
||||
};
|
||||
|
||||
console.log(messages);
|
||||
|
||||
/**
|
||||
* Handles the change event for the textarea and updates the input state.
|
||||
* @param event - The change event from the textarea.
|
||||
|
||||
Reference in New Issue
Block a user