unsloth/studio
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
..
backend fix: add tool-use system prompt nudge and strip leaked tool-call XML 2026-03-27 13:33:20 +00:00
frontend Fall back to parsing model name when HF API has no param count (#4656) 2026-03-27 05:57:49 -07:00
__init__.py Final cleanup 2026-03-12 18:28:04 +00:00
install_llama_prebuilt.py fix(studio): source-build fallback prefers Unsloth's tested tag over upstream latest (#4593) 2026-03-25 07:25:47 -07:00
install_python_stack.py fix: no-torch install deps without pulling torch transitively (#4650) 2026-03-27 05:19:26 -07:00
LICENSE.AGPL-3.0 Add AGPL-3.0 license to studio folder 2026-03-09 19:36:25 +00:00
setup.bat Final cleanup 2026-03-12 18:28:04 +00:00
setup.ps1 studio: setup log styling (#4494) 2026-03-27 03:12:48 -07:00
setup.sh studio: setup log styling (#4494) 2026-03-27 03:12:48 -07:00
Unsloth_Studio_Colab.ipynb Allow install_python_stack to run on Colab (#4633) 2026-03-27 00:29:27 +04:00