unsloth/studio/backend/core
Daniel Han 38abdbe0b0 fix: add tool-use system prompt nudge and strip leaked tool-call XML
Small models (e.g. Qwen3.5-4B) frequently skip tool calls when tools
are enabled, defaulting to plain text answers instead.  This adds a
short, model-agnostic system prompt nudge when tools are active that
encourages the model to use them for math/code/search tasks.  The nudge
varies depending on which tools are enabled (code, web, or both).

Also fixes tool-call XML leaking into visible chat output:
- Strip <tool_call> / <function=...> tags from outgoing SSE content
  deltas before they reach the frontend.
- Sanitize stale <tool_call> XML from conversation history messages
  so prior leaked text does not re-enter the model context.
- Strip raw content_accum in the false-positive DRAINING path that
  previously yielded unprocessed text.
2026-03-27 13:33:20 +00:00
..
data_recipe build(deps): bump oxc-parser (#4571) 2026-03-25 02:44:38 -07:00
export feat: support GGUF export for non-PEFT models + fix venv_t5 switching for local checkpoints (#4455) 2026-03-20 12:13:18 +04:00
inference fix: add tool-use system prompt nudge and strip leaked tool-call XML 2026-03-27 13:33:20 +00:00
training [Studio] Try installing causal-conv1d from prebuilt wheels if avialable (#4547) 2026-03-25 02:22:26 -07:00
__init__.py Combine studio setup fixes: frontend caching, venv isolation, Windows CPU support (#4413) 2026-03-18 03:52:25 -07:00