• 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
codai Loading commit data...
docs Loading commit data...
packaging Loading commit data...
samples Loading commit data...
tests Loading commit data...
tools Loading commit data...
.dockerignore Loading commit data...
.gitignore Loading commit data...
AI.PROMPT Loading commit data...
CODERAI_API_DOCUMENTATION.md Loading commit data...
CoderAI.gif Loading commit data...
DISTRIBUTION.md Loading commit data...
LICENSE.md Loading commit data...
MULTIMODAL_CAPABILITIES.md Loading commit data...
MULTIMODAL_UI_EXAMPLES.md Loading commit data...
README.md Loading commit data...
build-oci.sh Loading commit data...
build.ps1 Loading commit data...
build.sh Loading commit data...
coderai Loading commit data...
coderai-broker-implementation-reference.md Loading commit data...
coderai-integration.md Loading commit data...
commands Loading commit data...
osxbuild.sh Loading commit data...
package-oci.sh Loading commit data...
package-tarball.sh Loading commit data...
requirements-nvidia.txt Loading commit data...
requirements-vulkan.txt Loading commit data...
requirements.txt Loading commit data...
run-oci.sh Loading commit data...
smoke-test-oci.sh Loading commit data...
todo.md Loading commit data...
video_editor.config.json Loading commit data...