BBS:      TELESC.NET.BR
Assunto:  exec/chat_llm.js
De:       Rob Swindell (on Debian Linux)
Data:     Fri, 29 May 2026 23:59:56 -0700
-----------------------------------------------------------
https://gitlab.synchro.net/main/sbbs/-/commit/c356c273bcd6534a1e269d6f
Modified Files:
	exec/chat_llm.js
Log Message:
chat_llm: decode HTML entities + don't archive-route Synchronet how-tos

Two fixes surfaced while testing "pkzip" queries:

1. final_reply_postprocess() now HTML-entity-decodes replies. The 7B
   model occasionally emits "<http://...>" (an autolinked URL in
   angle brackets) or "&" inside a URL; plain-text IRC/terminal
   then showed the literal entities. Decode </>/"/'/
   ' then & (last, to avoid double-decoding) before the
   markdown-strip and URL-validation passes.

2. classify_intent() no longer pre-routes to external_archives when the
   query is a Synchronet how-to/config question that merely NAMES a
   BBS-era topic. "how do I configure pkzip in sbbs?" was forced to
   external_archives and answered with SEA v. PKWARE lawsuit trivia;
   docstyle-shaped queries now skip the archive route and fall through
   to the model + wiki RAG. Pure-history phrasing ("how did the SJG
   raid happen", "tell me about pkzip") is not docstyle, so it still
   routes to the archive.

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

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