BBS:      TELESC.NET.BR
Assunto:  exec/chat_llm.js
De:       Rob Swindell (on Debian Linux)
Data:     Fri, 29 May 2026 23:59:57 -0700
-----------------------------------------------------------
https://gitlab.synchro.net/main/sbbs/-/commit/4a869e667393a7414094194e
Modified Files:
	exec/chat_llm.js
Log Message:
chat_llm: fix classify_intent under-routing for 3 query phrasings

classify_intent pre-executes a tool to bypass qwen2.5:7b's unreliable
tool-choice, but three natural phrasings fell through to the model,
which then answered tool-less:

- "how many BBSes are in the list?" -- no rule for an UNFILTERED total
  count (only filtered "how many  bbses" existed). Add a total-count
  rule AFTER the filtered ones so a network/software filter still wins;
  unfiltered list mode returns total = full directory size.
- "what has been committed to Synchronet lately?" -- the recent-commits
  pattern's end-anchor rejected a "to " phrase before "lately".
- "how many files were downloaded today?" -- the stats pattern didn't
  allow a passive-voice auxiliary ("were/was/has been") between noun
  and verb.

Regression: count-sbbslist, git-commits-recent, host-bbs-stats-today
now PASS; previously-matching forms still route (no regressions).

Co-Authored-By: Claude Opus 4.8 
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

-----------------------------------------------------------
[Voltar]