add vectara chain

This commit is contained in:
Henry
2023-11-20 19:34:30 +00:00
parent 10c3066a91
commit 40a63008ec
6 changed files with 164 additions and 7 deletions
@@ -379,7 +379,10 @@ export const ChatMessage = ({ open, chatflowid, isDialog }) => {
{message.sourceDocuments && (
<div style={{ display: 'block', flexDirection: 'row', width: '100%' }}>
{removeDuplicateURL(message).map((source, index) => {
const URL = isValidURL(source.metadata.source)
const URL =
source.metadata && source.metadata.source
? isValidURL(source.metadata.source)
: undefined
return (
<Chip
size='small'