diff --git a/frontend/src/conversation/ConversationBubble.tsx b/frontend/src/conversation/ConversationBubble.tsx index ff970da0..e4add343 100644 --- a/frontend/src/conversation/ConversationBubble.tsx +++ b/frontend/src/conversation/ConversationBubble.tsx @@ -13,7 +13,6 @@ import copy from 'copy-to-clipboard'; import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter'; import { vscDarkPlus } from 'react-syntax-highlighter/dist/cjs/styles/prism'; import DocsGPT3 from '../assets/cute_docsgpt3.svg'; - const DisableSourceFE = import.meta.env.VITE_DISABLE_SOURCE_FE || false; const ConversationBubble = forwardRef< @@ -64,9 +63,9 @@ const ConversationBubble = forwardRef< bubble = (
-
+
{type === 'ERROR' && ( alert )} (
setOpenSource(openSource === index ? null : index) } >

{index + 1}. {source.title.substring(0, 45)}

@@ -196,9 +192,9 @@ const ConversationBubble = forwardRef< )}
{ handleFeedback?.('LIKE'); setIsLikeClicked(true); @@ -255,25 +249,22 @@ const ConversationBubble = forwardRef<
{ handleFeedback?.('DISLIKE'); setIsDislikeClicked(true); @@ -288,7 +279,7 @@ const ConversationBubble = forwardRef<
{sources && openSource !== null && sources[openSource] && ( -
+

Source: {sources[openSource].title}