adaptive-memory-multi-model-router 1.8.0 → 1.9.0

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.
@@ -45,7 +45,7 @@ class MemoryTree {
45
45
  for (const word of words) {
46
46
  // Strip punctuation for better matching
47
47
  const clean = word.replace(/[^a-z0-9-]/g, '');
48
- if (clean.length > 3) { // Skip short words
48
+ if (clean.length >= 3) { // Skip very short words
49
49
  if (!this.index.has(clean)) this.index.set(clean, new Set());
50
50
  this.index.get(clean).add(chunk.id);
51
51
  }
@@ -76,7 +76,7 @@ class MemoryTree {
76
76
 
77
77
  for (const word of words) {
78
78
  const clean = word.replace(/[^a-z0-9-]/g, '');
79
- if (clean.length <= 3) continue;
79
+ if (clean.length < 3) continue;
80
80
  // Try exact match first, then substring match
81
81
  let ids = this.index.get(clean);
82
82
  if (!ids) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adaptive-memory-multi-model-router",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "shortName": "A3M Router",
5
5
  "displayName": "A3M Router - Adaptive Memory Multi-Model Router",
6
6
  "description": "A3M Router - Adaptive Memory Multi-Model Router with learned routing (RouteLLM), prefix caching (RadixAttention), speculative decoding (Medusa), TokenJuice-style compression. 14 LLM providers, 10 integrations, Python bindings. 20x more adaptable for ML/AI developers.",