• Stefy Lanza (nextime / spora )'s avatar
    parser: handle DeepSeek V4 DSML tool calls; reword waiting message · 7f39ce8f
    Stefy Lanza (nextime / spora ) authored
    DeepSeek V4 (ds4) emits native tool calls as <|DSML|invoke name="…">
    <|DSML|parameter name="p" string="true">val</|DSML|parameter></|DSML|invoke>
    (the | is U+FF5C). No parser recognised this, so ToolCallParser returned None
    and the raw markup leaked to the client as content even though ds4 reported
    finish=tool_calls.
    
    - parse_deepseek_dsml_tool_calls(): extract (name, args); string="false" params
      are JSON-decoded, others kept as strings; ASCII | tolerated.
    - Wired into DeepSeekParser and ToolCallParser.extract_tool_calls (the live path).
    - strip_dsml_tool_calls(): drop the DSML block from displayed content in both
      strip_tool_calls_from_content paths. Guarded by 'DSML' in text -> no effect on
      other models.
    
    Also reword the slow-reply notice from "Waiting for model to load..." to
    "Waiting for model reply..." (the model is usually loaded, just slow).
    Co-Authored-By: 's avatarClaude Opus 4.8 <noreply@anthropic.com>
    7f39ce8f
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...