Просмотр исходного кода

Merge branch 'dev' of https://github.com/OriginalSimon/open-webui into dev

SimonOriginal 9 месяцев назад
Родитель
Сommit
07283ca0cf
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      src/lib/components/chat/Messages/CitationsModal.svelte

+ 3 - 1
src/lib/components/chat/Messages/CitationsModal.svelte

@@ -59,7 +59,9 @@
 								<a
 								<a
 									href={document?.metadata?.file_id
 									href={document?.metadata?.file_id
 										? `/api/v1/files/${document?.metadata?.file_id}/content`
 										? `/api/v1/files/${document?.metadata?.file_id}/content`
-										: document.source.name}
+										: document.source.name.includes('http')
+										? document.source.name
+										: `#`}
 									target="_blank"
 									target="_blank"
 								>
 								>
 									{document?.metadata?.name ?? document.source.name}
 									{document?.metadata?.name ?? document.source.name}