• Stefy Lanza (nextime / spora )'s avatar
    text: stop DeepSeek V4 DSML tool markup leaking during streaming · 6e20c8a3
    Stefy Lanza (nextime / spora ) authored
    The streaming tool-content gate withheld <tool>/<|tool_call>/call: markers but
    not DeepSeek V4's native <|DSML|tool_calls>… block (| = U+FF5C), so during a
    streamed tool call the raw markup reached the client token-by-token as visible
    content (even though the post-stream parser extracted the tool_calls correctly).
    
    _gate_tool_content now withholds everything from the first <|DSML| marker to the
    end (dropped on final, surfaced as structured tool_calls), and the trailing-
    partial hold list includes the DSML open tag so a marker split across chunks
    doesn't leak its leading chars.
    Co-Authored-By: 's avatarClaude Opus 4.8 <noreply@anthropic.com>
    6e20c8a3
Name
Last commit
Last update
..
__init__.py Loading commit data...
_film_net.py Loading commit data...
_rife_ifnet.py Loading commit data...
app.py Loading commit data...
archive.py Loading commit data...
audio_backends.py Loading commit data...
audio_clean.py Loading commit data...
audio_gen.py Loading commit data...
audio_stems.py Loading commit data...
characters.py Loading commit data...
custom_pipelines.py Loading commit data...
ds4_worker.py Loading commit data...
embeddings.py Loading commit data...
environments.py Loading commit data...
faceswap.py Loading commit data...
images.py Loading commit data...
log.py Loading commit data...
loras.py Loading commit data...
parler_worker.py Loading commit data...
pipelines.py Loading commit data...
prompt_cache.py Loading commit data...
ratelimit.py Loading commit data...
spatial.py Loading commit data...
state.py Loading commit data...
text.py Loading commit data...
transcriptions.py Loading commit data...
tts.py Loading commit data...
tts_backends.py Loading commit data...
urlutils.py Loading commit data...
video.py Loading commit data...
voice_clone.py Loading commit data...
voice_convert.py Loading commit data...