13 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
Antonio-Faure
b4cb6615d0 feat(providers): add xAI model coverage and Mistral embeddings/voice
- register xAI as an OpenAI-compatible Grok provider (dynamic /v1/models)\n- add Mistral embeddings (mistral-embed / codestral-embed)\n- add xAI Grok Imagine image and video generation\n- add xAI Grok Voice and Mistral Voxtral TTS/STT adapters\n- expose provider/voice hints and add mocked contract tests
2026-10-30 14:57:35 +01:00
Bingxi Zhao (Frank)
a531e650f7 fix(llm): say why a self-hosted model endpoint refused the connection
Pointing DeepTutor at a local Ollama and getting it wrong produces
"Unable to reach the model provider. Please retry." in the UI and a bare
`httpcore.ConnectError: All connection attempts failed` in the log.
Neither says what to do, and the two ways this fails need opposite
fixes: nothing is listening on the address, or DeepTutor is inside a
container where `localhost` is the container rather than the machine
serving the model.

`unreachable_endpoint_hint` names which. It stays silent for a cloud
endpoint — there "please retry" really is the whole story — and for a
loopback address inside a container it points at
`host.docker.internal`, the answer CONTAINERIZATION.md already
documents but that nobody reads at the moment they need it. An address
that is already the host gateway gets the "start the server" advice
instead, not advice to use the gateway it is using.

Appended only when the round produced no output: an interrupted answer
is a different failure and the endpoint is demonstrably reachable.
2026-09-10 22:51:08 +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)
c15e22a4b3 chore: stable fix, add tutorbot 2026-03-20 20:27:17 +08:00
Bingxi Zhao (Frank)
e11db5001b fix: improv cli 2026-03-15 00:04:34 +08:00
Bingxi Zhao (Frank)
f3779138ae fix: remove lightrag and unify llm & search config 2026-03-13 23:48:49 +08:00
Bingxi Zhao (Frank)
9c18bf0705 codebase cleanup and decoupled, introduce cli operation 2026-03-13 20:42:16 +08:00