mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
Update CitationsModal.svelte
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
function calculatePercentage(distance: number) {
|
||||
if (distance < 0) return 0;
|
||||
if (distance > 1) return 100;
|
||||
return Math.round((distance * 10000) / 100;
|
||||
return Math.round(distance * 10000) / 100;
|
||||
}
|
||||
|
||||
function getRelevanceColor(percentage: number) {
|
||||
|
||||
Reference in New Issue
Block a user