mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-11 22:12:23 +00:00
e5eb15918e
Some local models (llama.cpp, LM Studio) output internal control tokens like <|channel|>, <|constrain|>, <|message|> instead of using proper function calling. These tokens leak into the UI creating a poor UX. This adds sanitization to strip these control tokens from both streaming and non-streaming responses before they reach the user.