mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 12:55:19 +00:00
Update CitationsModal.svelte
This commit is contained in:
parent
ad0b599940
commit
67cb3455ad
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue