Expand description
Shared transcript cleanup applied after every provider.
Whisper (and some remote models) emit control / non-speech tokens that should
not leak into scripted txt/srt/json output.
Functions§
- normalize_
result - Clean provider output into a stable, scriptable result.
- truncate_
chars - UTF-8–safe truncation for error messages (never panics on char boundaries).