Skip to content
Source
Sign inSign up
TanStack/schemas

Show completeness per activity and origin links on the home page and /models #732 (GitHub #733)

Mergedtombeckenhammerged 7 commits intomain fromfeat/715-completeness-uimerged by tombeckenham View on GitHub

Showing 2 changed files with 35 additions and 15 deletions (loading 1).

x
0 of 2 viewed, 2 left
35 additions and 15 deletionssrc/routes/models/index.tsxModified
View file
@@ -28,7 +28,7 @@
q?: string
​
-/** Chat facts filled of those scored for one row; null for non-chat rows. */
+/** Facts of the row's own activity filled of those scored for it. */
interface RowCompleteness {
filled: number
needed: number
@@ -37,8 +37,8 @@
​
interface CatalogData {
count: number
- /** By model id, for the rows shown. */
- completeness: Record<string, RowCompleteness>
+ /** By model id, for the rows shown; null when the activity has no fact set. */
+ completeness: Record<string, RowCompleteness | null>
models: Array<SerializableModel>
providers: Array<string>
truncated: boolean
@@ -53,7 +53,8 @@
const { getDb } = await import('#/db/index.ts')
const { listModelsCatalog, knownProviderIds } =