@dbx-tools/model 0.1.74 → 0.1.76

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/dist/index.d.ts CHANGED
@@ -194,7 +194,7 @@ interface ResolveModelInput {
194
194
  * canonical 404 if it doesn't exist).
195
195
  */
196
196
  fuzzy?: boolean;
197
- /** Fuse.js threshold forwarded to {@link resolveModelId}. */
197
+ /** Fuse.js threshold forwarded to the fuzzy `search` match ({@link searchServingEndpoints}). */
198
198
  threshold?: number;
199
199
  /**
200
200
  * Chat capability class to resolve when no `explicit` id is given.
package/dist/index.js CHANGED
@@ -405,23 +405,15 @@ function resolveModelId(input, endpoints, options = {}) {
405
405
  * chat-only: embedding endpoints surface only when `modelClass` is
406
406
  * explicitly {@link ModelClass.Embedding}.
407
407
  *
408
- * Ranking entry points (return a ranked list):
409
- *
410
- * - {@link rankModels} is the pure ranker over an endpoint list you
411
- * already hold. A chat `modelClass` acts as a ceiling: only that
412
- * band and the less-capable chat bands below it are eligible (see
413
- * {@link classesAtOrBelow}), so a `chat-balanced` ask can fall to
414
- * `chat-fast` but never escalate to `chat-thinking`.
415
- * - {@link searchModels} is the I/O wrapper: hand it a
416
- * `WorkspaceClient` and it lists `/serving-endpoints` (cached) then
417
- * ranks in one step.
418
- *
419
- * Single-selection entry points (return one id + how it was reached):
420
- *
421
- * - {@link resolveModel} is the pure selector; it delegates to
422
- * {@link rankModels} with `limit: 1` and adds the operator-pinned
423
- * fallback / static-floor safety net.
424
- * - {@link selectModel} is the I/O wrapper over {@link resolveModel}.
408
+ * Two shapes of selection, each in a pure form (over an endpoint list
409
+ * the caller already holds) and an I/O wrapper (that lists
410
+ * `/serving-endpoints` first): ranking, which returns a match- then
411
+ * class-ordered list, and single-selection, which collapses to one id
412
+ * plus how it was reached and layers the operator-pinned fallback /
413
+ * static-floor safety net on top. A chat `modelClass` acts as a
414
+ * ceiling: that band and the less-capable chat bands below it are
415
+ * eligible (see {@link classesAtOrBelow}), so a `chat-balanced` ask can
416
+ * fall to `chat-fast` but never escalate to `chat-thinking`.
425
417
  */
426
418
  /**
427
419
  * Round a Fuse score to the display precision so version siblings that
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@dbx-tools/model",
3
- "version": "0.1.74",
3
+ "version": "0.1.76",
4
4
  "dependencies": {
5
- "@dbx-tools/model-shared": "0.1.74",
6
- "@dbx-tools/shared": "0.1.74",
5
+ "@dbx-tools/model-shared": "0.1.76",
6
+ "@dbx-tools/shared": "0.1.76",
7
7
  "fuse.js": "^7.0.0"
8
8
  },
9
9
  "exports": {