diff --git a/src/hooks/use-preset-button.hooks.ts b/src/hooks/use-preset-button.hooks.ts index 8562958..f06be8c 100644 --- a/src/hooks/use-preset-button.hooks.ts +++ b/src/hooks/use-preset-button.hooks.ts @@ -7,14 +7,14 @@ const usePresetButton = () => { const { addMessage, setLoading, updateLastMessage, updateLastReference, updateReferenceDisabled } = useChatStore(); const handleReferenceButtonClick = (references: referenceState[]) => { - let content = '๐ก๋ต๋ณ ์ถ์ฒ๋ฅผ ์๋ ค๋๋ฆด๊ฒ์! ๋งํฌ๋ฅผ ํด๋ฆญํ๋ฉด ๋ชจ์ง์๊ฐ์ผ๋ก ํ์ธํ ์ ์์ด์!\n'; + let content = '๐ก๋ต๋ณ ์ถ์ฒ๋ฅผ ์๋ ค๋๋ฆด๊ฒ์! ์ถ์ฒ๋ฅผ ํด๋ฆญํ๋ฉด ๋ชจ์ง์๊ฐ์ผ๋ก ํ์ธํ ์ ์์ด์!\n'; // references๊ฐ null, undefined, ๋๋ ๊ธธ์ด๊ฐ 0์ธ ๊ฒฝ์ฐ ์ฒดํฌ if (!references || references.length === 0) { addMessage({ content: '์ถ์ฒ ์ ๋ณด๊ฐ ์์ต๋๋ค.', role: 'system' }); return; } references.map((reference, index) => { - content += `\n์ถ์ฒ${index + 1}๋ฒ: ${reference.link}\n`; + content += `\n[์ถ์ฒ ${index + 1}๋ฒ](${reference.link})\n`; }); content += '\n๐ **๋ต๋ณ์ ๊ผญ ํ์ธํด์ฃผ์ธ์!** '; addMessage({ content: content, role: 'system' }); diff --git a/src/ui/components/atom/chat-card/chat-card.tsx b/src/ui/components/atom/chat-card/chat-card.tsx index ed9a5aa..5bc70b2 100644 --- a/src/ui/components/atom/chat-card/chat-card.tsx +++ b/src/ui/components/atom/chat-card/chat-card.tsx @@ -26,7 +26,22 @@ const ChatCard = ({ content, role, children }: ChatCardProps) => { })} >