@dbx-tools/shared-model 0.3.4 → 0.3.6

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 CHANGED
@@ -25,8 +25,8 @@ Key features:
25
25
  ```ts
26
26
  import { display } from "@dbx-tools/shared-model";
27
27
 
28
- display.toModelDisplayName("databricks-claude-sonnet-4-6"); // "Claude Sonnet 4 6"
29
- display.toModelDisplayName("system.ai.bge_large_en"); // "Bge Large En"
28
+ display.toModelDisplayName("databricks-claude-sonnet-4-6"); // "Claude Sonnet 4.6"
29
+ display.toModelDisplayName("system.ai.bge_large_en"); // "BGE Large En"
30
30
  display.toModelDisplayName("x", "Claude 4.6 (Preview)"); // provided name wins
31
31
  ```
32
32
 
package/package.json CHANGED
@@ -12,14 +12,14 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "zod": "^4.3.6",
15
- "@dbx-tools/shared-core": "0.3.4"
15
+ "@dbx-tools/shared-core": "0.3.6"
16
16
  },
17
17
  "main": "index.ts",
18
18
  "license": "UNLICENSED",
19
19
  "publishConfig": {
20
20
  "access": "public"
21
21
  },
22
- "version": "0.3.4",
22
+ "version": "0.3.6",
23
23
  "types": "index.ts",
24
24
  "type": "module",
25
25
  "exports": {
package/src/display.ts CHANGED
@@ -22,8 +22,13 @@ const STRIP_LEADING_TOKENS = new Set(["databricks", "system", "dbx"]);
22
22
  /** `ai` is stripped only as the `system.ai.*` namespace half (after `system`). */
23
23
  const NAMESPACE_SECOND_TOKENS: Record<string, string> = { system: "ai" };
24
24
 
25
- /** Segment-internal tokens rendered fully uppercased (acronyms), not title-cased. */
26
- const ACRONYMS = new Set(["gpt", "gte", "bge", "dbrx", "oss", "ai", "llm", "moe"]);
25
+ /**
26
+ * Segment-internal tokens rendered fully uppercased (acronyms), not
27
+ * title-cased. `ai` is intentionally omitted: the shared tokenizer already
28
+ * force-cases `ai` -> `AI` via its {@link string.TokenizeOptions} `capitalize`
29
+ * override, which `renderSegment` always passes.
30
+ */
31
+ const ACRONYMS = new Set(["gpt", "gte", "bge", "dbrx", "oss", "llm", "moe"]);
27
32
 
28
33
  /** Parameter-count unit letters glued to a preceding number (`120b` -> `120B`). */
29
34
  const SIZE_UNITS = new Set(["b", "m", "k"]);