@dbx-tools/model 0.1.74 → 0.1.75
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 +1 -1
- package/dist/index.js +9 -17
- package/package.json +3 -3
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
|
|
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
|
-
*
|
|
409
|
-
*
|
|
410
|
-
*
|
|
411
|
-
*
|
|
412
|
-
*
|
|
413
|
-
*
|
|
414
|
-
*
|
|
415
|
-
*
|
|
416
|
-
*
|
|
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.
|
|
3
|
+
"version": "0.1.75",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@dbx-tools/model-shared": "0.1.
|
|
6
|
-
"@dbx-tools/shared": "0.1.
|
|
5
|
+
"@dbx-tools/model-shared": "0.1.75",
|
|
6
|
+
"@dbx-tools/shared": "0.1.75",
|
|
7
7
|
"fuse.js": "^7.0.0"
|
|
8
8
|
},
|
|
9
9
|
"exports": {
|