@overandoutnerd/dumbledore-bot-core 1.0.3 → 1.0.4

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.
@@ -54,7 +54,7 @@ export async function getRelevantQuote(message, apiKey) {
54
54
  console.log("[QuoteSearch] Message:", message);
55
55
  const matches = await getTopMatches(message, apiKey, 5);
56
56
  console.log("[QuoteSearch] Top Matches:", matches);
57
- const selected = matches[Math.floor(Math.random() * 2)];
57
+ const selected = matches[Math.floor(Math.random() * matches.length)];
58
58
  if (!selected) {
59
59
  throw new Error("No matching quotes found");
60
60
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@overandoutnerd/dumbledore-bot-core",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Semantic Dumbledore quote search powered by Gemini embeddings",
5
5
  "license": "MIT",
6
6
  "type": "module",