Fix TypeError when processing multimodal messages containing both text and images. The error "textContent.text.trim is not a function" occurred when textContent was null or textContent.text was not a string type. Changes: - Add comprehensive type checking for textContent.text access - Implement getTextContent() utility function for unified content extraction - Enhance error handling to support multimodal content display - Fix message copy functionality to handle array-format content - Improve message reset functionality to extract text content for retry - Add user-friendly warnings when copying messages without text content Technical improvements: - Validate textContent existence and text property type before calling trim() - Extract text content from multimodal messages for operations like copy/retry - Maintain backward compatibility with string-format content - Preserve all existing functionality while adding robust error handling Fixes issues with: - Image + text message processing - Message copying from multimodal content - Message retry with image attachments - Error display for complex message formats This ensures the playground component handles multimodal content gracefully without breaking existing text-only message functionality.
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| custom | Loading commit data... | |
| playground | Loading commit data... | |
| AuthRedirect.js | Loading commit data... | |
| ChannelsTable.js | Loading commit data... | |
| Footer.js | Loading commit data... | |
| HeaderBar.js | Loading commit data... | |
| LinuxDoIcon.js | Loading commit data... | |
| Loading.js | Loading commit data... | |
| LoginForm.js | Loading commit data... | |
| LogsTable.js | Loading commit data... | |
| MjLogsTable.js | Loading commit data... | |
| ModelPricing.js | Loading commit data... | |
| ModelSetting.js | Loading commit data... | |
| NoticeModal.js | Loading commit data... | |
| OAuth2Callback.js | Loading commit data... | |
| OIDCIcon.js | Loading commit data... | |
| OperationSetting.js | Loading commit data... | |
| OtherSetting.js | Loading commit data... | |
| PageLayout.js | Loading commit data... | |
| PasswordResetConfirm.js | Loading commit data... | |
| PasswordResetForm.js | Loading commit data... | |
| PersonalSetting.js | Loading commit data... | |
| PrivateRoute.js | Loading commit data... | |
| RateLimitSetting.js | Loading commit data... | |
| RedemptionsTable.js | Loading commit data... | |
| RegisterForm.js | Loading commit data... | |
| SetupCheck.js | Loading commit data... | |
| SiderBar.js | Loading commit data... | |
| SystemSetting.js | Loading commit data... | |
| TaskLogsTable.js | Loading commit data... | |
| TokensTable.js | Loading commit data... | |
| UsersTable.js | Loading commit data... | |
| WeChatIcon.js | Loading commit data... | |
| fetchTokenKeys.js | Loading commit data... | |
| utils.js | Loading commit data... |