@tzyc/dsh-model-visibility 1.10.2 → 1.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -15
- package/client-src/catalog-store.mjs +95 -18
- package/client-src/checker-view.mjs +158 -65
- package/client-src/css.mjs +153 -221
- package/client-src/dict.mjs +119 -81
- package/client-src/format.mjs +9 -2
- package/client-src/pure.mjs +24 -7
- package/client-src/settings-section.mjs +242 -137
- package/client-src/usage-view.mjs +69 -65
- package/client.js +869 -596
- package/index.js +4 -2
- package/lib/check-catalog.js +868 -108
- package/lib/export-csv.js +48 -14
- package/lib/learned-catalog.js +10 -2
- package/lib/model-info.js +4 -2
- package/lib/model-overrides.js +9 -4
- package/lib/provider-probe.js +138 -22
- package/lib/provider-write.js +31 -7
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -312,7 +312,6 @@ export function apply(ctx, config) {
|
|
|
312
312
|
imageInput.refresh()
|
|
313
313
|
},
|
|
314
314
|
})
|
|
315
|
-
|
|
316
315
|
/** Answer with JSON; the route is diagnostics-friendly on purpose. */
|
|
317
316
|
const json = (value, status = 200) =>
|
|
318
317
|
new Response(JSON.stringify(value), {
|
|
@@ -596,9 +595,12 @@ export function apply(ctx, config) {
|
|
|
596
595
|
}
|
|
597
596
|
// The sweep runs in the background: the response only reports that
|
|
598
597
|
// it was accepted, and polling GET observes the progress state.
|
|
598
|
+
// `concurrency` is a per-run choice (how many checker calls may be
|
|
599
|
+
// in flight), so a fast relay can use more threads than the default.
|
|
600
|
+
const concurrency = Number.isFinite(body?.concurrency) ? body.concurrency : undefined
|
|
599
601
|
if (!verifier.isRunning()) {
|
|
600
602
|
verifier
|
|
601
|
-
.start({ checker: { provider, model }, writeBack: body?.writeBack !== false })
|
|
603
|
+
.start({ checker: { provider, model }, writeBack: body?.writeBack !== false, concurrency })
|
|
602
604
|
.then(() => {
|
|
603
605
|
// Learned facts (and possibly provider settings) changed.
|
|
604
606
|
service.invalidate()
|