@drsamonline/prober 0.12.33 → 0.12.34

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.
Files changed (2) hide show
  1. package/package.json +3 -2
  2. package/src/index.js +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drsamonline/prober",
3
- "version": "0.12.33",
3
+ "version": "0.12.34",
4
4
  "description": "Canary prober: liveness, readiness and suitability checks that decide what may be routed to.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -24,7 +24,8 @@
24
24
  "registry": "https://registry.npmjs.org/"
25
25
  },
26
26
  "dependencies": {
27
- "@drsamonline/catalog": "^0.12.0"
27
+ "@drsamonline/catalog": "^0.12.0",
28
+ "@drsamonline/core": "^0.12.0"
28
29
  },
29
30
  "engines": {
30
31
  "node": ">=20"
package/src/index.js CHANGED
@@ -18,6 +18,7 @@
18
18
  */
19
19
 
20
20
  import { poolKey } from '@drsamonline/catalog';
21
+ import { pickChatModel } from '@drsamonline/core';
21
22
 
22
23
  /** Bump when a fixture changes, so probe history stays comparable. */
23
24
  /**
@@ -374,7 +375,11 @@ async function probeTools({ fetchImpl, base, headers, entry, timeoutMs }) {
374
375
  */
375
376
  function probeModel(entry, discovered = []) {
376
377
  if (entry.probe_model) return entry.probe_model;
377
- if (discovered.length) return discovered[0];
378
+ if (discovered.length) {
379
+ // a provider's /models lists TTS, embedding and guard models too: taking the
380
+ // first id put Groq's Arabic TTS voice in front of a chat probe
381
+ return pickChatModel(discovered) ?? discovered[0];
382
+ }
378
383
  const family = entry.model_family;
379
384
  if (family && !/compatible|mixed|unknown/i.test(family)) return family;
380
385
  return 'default';