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/0daf7f872fce4940a9bff35d
Modified Files:
	exec/chat_llm.js
Log Message:
chat_llm: iterate HTML-entity decode for double-escaped replies

The 7B model sometimes DOUBLE-escapes ("<...>"); the
single-pass decode peeled only one layer and left "<...>" literal
in the reply (seen in a live "who is Dr Seuss?" turn). Decode in a
bounded loop (max 3 passes) until the string stops changing, so
double-/triple-escaped entities fully resolve. Safe because a chat
reply never legitimately contains a literal "<".

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

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