diff --git a/components/MessageList.tsx b/components/MessageList.tsx index 0171a08..4a587aa 100644 --- a/components/MessageList.tsx +++ b/components/MessageList.tsx @@ -60,11 +60,39 @@ export default function MessageList() { {m.content} )} - {m.sources && m.sources.length > 0 && ( -
- Sources: {[...new Set(m.sources)].join(', ')} -
- )} +
+ {m.role === 'assistant' && ( + + )} + {m.sources && m.sources.length > 0 && ( +
+ Sources: {[...new Set(m.sources)].join(', ')} +
+ )} +
))}