mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-08 03:08:02 +00:00
refac/fix: duplicated api calls for evaluation
This commit is contained in:
parent
0c369d195b
commit
2dd09223f2
2 changed files with 4 additions and 8 deletions
|
|
@ -80,11 +80,7 @@
|
|||
}
|
||||
};
|
||||
|
||||
$: if (page) {
|
||||
getFeedbacks();
|
||||
}
|
||||
|
||||
$: if (orderBy && direction) {
|
||||
$: if (orderBy && direction && page) {
|
||||
getFeedbacks();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -79,9 +79,9 @@
|
|||
debounceTimer = setTimeout(() => loadLeaderboard(query), 500);
|
||||
};
|
||||
|
||||
$: query, debouncedLoad();
|
||||
|
||||
onMount(() => loadLeaderboard());
|
||||
$: if (query !== null) {
|
||||
debouncedLoad();
|
||||
}
|
||||
|
||||
$: sortedModels = [...rankedModels].sort((a, b) => {
|
||||
const getValue = (m, key) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue