Skip to content

OpenCode can not support DeepSeek tool calling method: DSML(DeepSeek Makeup Language) #24566

Closed as not planned

Description

@lyutian623

Description

DeepSeek return tool calls data is DSML style (like XML) rather than JSON, so tool calls will always be fail.
And for now, can't find any workable way to support it.

model: DeepSeek-V4-Flash

<|DSML|tool_calls
<|DSML|invoke name="question">
<|DSML|parameter name="questions" string="false">[{"question": "xxx:", "options": {"label": "xxx", "description": "xxx"}, {"label": "xxx", "description": "xxx"}, "header": "xxx"}]</|DSML|parameter>
</|DSML|invoke>
</|DSML|tool_calls>

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 27, 2026
  2. github-actions commented on Apr 27, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  3. rekram1-node commented on Apr 27, 2026

    @rekram1-node
    Collaborator

    Need way more info it seems like whatever api / provider you are using isnt parsing tool calls correctly

  4. removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  5. github-actions commented on Jul 4, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  6. amcique commented on Jul 24, 2026

    @amcique

    Still haven't been fixed.

    <|DSML|tool_calls>
    <|DSML|invoke name="read">
    <|DSML|parameter name="filePath" string="true">I:\hrc\usermode\src\hypercall\hypercall.cpp</|DSML|parameter>
    <|DSML|parameter name="limit" string="false">15</|DSML|parameter>
    <|DSML|parameter name="offset" string="false">357</|DSML|parameter>
    </|DSML|invoke>
    </|DSML|tool_calls>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions