diff --git a/ui/litellm-dashboard/.eslintrc.json b/ui/litellm-dashboard/.eslintrc.json index 843164aaf82..99acb96b8f0 100644 --- a/ui/litellm-dashboard/.eslintrc.json +++ b/ui/litellm-dashboard/.eslintrc.json @@ -90,6 +90,7 @@ "src/components/mcp_tools/OAuthFormFields.tsx", "src/components/transform_request.tsx", "src/components/Navbar/UserDropdown/UserDropdown.tsx", + "src/components/playground/chat_ui/ChatMessageBubble.tsx", "src/components/permissions/VectorStorePermissions.tsx", "src/components/permissions/AgentPermissions.tsx", "src/components/permissions/MCPServerPermissions.tsx", diff --git a/ui/litellm-dashboard/src/components/playground/chat_ui/ChatMessageBubble.tsx b/ui/litellm-dashboard/src/components/playground/chat_ui/ChatMessageBubble.tsx index 15978c17f7e..56136530550 100644 --- a/ui/litellm-dashboard/src/components/playground/chat_ui/ChatMessageBubble.tsx +++ b/ui/litellm-dashboard/src/components/playground/chat_ui/ChatMessageBubble.tsx @@ -1,4 +1,5 @@ -import { RobotOutlined, UserOutlined } from "@ant-design/icons"; +import { Bot, User } from "lucide-react"; +import { cn } from "@/lib/utils"; import React from "react"; import ReactMarkdown from "react-markdown"; import { Prism as SyntaxHighlighter } from "react-syntax-highlighter"; @@ -41,32 +42,34 @@ function ChatMessageBubble({ const isUser = message.role === "user"; return ( -
{children}
);
},
- pre: ({ node, ...props }) => (
-
+ pre: ({ ...props }) => (
+
),
}}
>
@@ -174,10 +178,11 @@ function ChatMessageBubble({
{/* Generated image from chat completions */}
{message.image && (