10 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
0d9b45f37f Merge PR #2562: fix(llm): stop dropping the answer when a reply mentions <think>
Protect fenced and inline Markdown examples while stripping real closed, mixed-spelling, and interrupted reasoning blocks; add regressions for literal tags and code inside reasoning.
2026-11-14 23:08:23 +08:00
Bingxi Zhao (Frank)
c4c37ee7f7 Merge PR #2567: fix(llm): drop null text parts instead of streaming the word None 2026-11-14 22:51:16 +08:00
mpichini1
b9a86ec831 fix: accept case-insensitive HTTP URL schemes 2026-11-13 19:05:15 +01:00
aplicity
dd795a8a7a fix(llm): drop null text parts instead of streaming the word "None"
A response part shaped {"text": None} was stringified, so a provider that
streams an empty text field injected the literal word "None" into the reply,
or "Nonehi" when a real part followed it.

Parts whose text is null now contribute nothing. A part with no text key
already behaved that way; this makes an explicit null match it. Empty strings
and numeric content are unchanged.
2026-11-09 23:13:37 +08:00
aplicity
0e2e3dbf39 fix(llm): stop dropping the answer when a reply mentions <think>
Two inputs lost text that should have been shown:

- a reply that names the tag in prose ("Use <think> to start a reasoning
  block.") matched the unterminated-block rule, which deletes from the tag to
  the end of the text, so only the words before it survived;
- a block opened with one spelling and closed with the other
  ("<think>...</thinking>") matched neither pattern, fell through to the same
  rule, and took the answer after the closing tag with it.

The unterminated rule now applies only to a tag that starts a line, which is
what a truncated scratchpad actually looks like, and either spelling closes a
block. A closed block still disappears; a mid-sentence mention now survives.
2026-11-09 22:45:27 +08:00
Bingxi Zhao (Frank)
144c90f3f7 prepare v1.3.4 release
Made-with: Cursor
2026-05-01 13:51:45 +08:00
Bingxi Zhao (Frank)
28e225ee0e chore: prepare v1.3.1 release
Stability release after v1.3.0 covering safer RAG/KB routing, stronger
embedding validation, more reliable Docker/TutorBot restarts, Web UX
fixes, and Windows/encoding hardening. See assets/releases/ver1-3-1.md
for the full notes.

Made-with: Cursor
2026-04-28 12:00:11 +08:00
Bingxi Zhao (Frank)
e11db5001b fix: improv cli 2026-03-15 00:04:34 +08:00
Bingxi Zhao (Frank)
9c18bf0705 codebase cleanup and decoupled, introduce cli operation 2026-03-13 20:42:16 +08:00
Scarlet Moore
6224e93092 Feature/llm hardening core slim (#52)
* Core LLM hardening (slim): essential fixes and tests only

* Add Anthropic and Local provider implementations
2026-01-29 14:08:39 +11:00