Skip to content

Eval bug: [Autoparser] Qwen3-Coder-Next Failed to parse input at pos xx when using opencode #10

@wenyifancc

Description

@wenyifancc

Name and Version

3096eca

Operating systems

Windows

GGML backends

Vulkan

Hardware

Intel Ultra 265K + NVIDIA RTX 5090

Models

Qwen3-Coder-Next-UD-Q4_K_XL.gguf

Problem description & steps to reproduce

When using opencode to call Qwen3-Coder-Next, an error 500 occurs when calling the tool.The main branch of llama.cpp does not have this issue.

Opencode plan mode:
Enter prompt:
Modify the com.mli.cms.hrm.module.policy.service.impl.AgentPolicyApplyServiceImpl#deleteAgentPolicyApply method to add the following functionality: After deleting the adjustment record, query the AadeEntity where ahapNo = ahapEntity.ahapRefNo, and if it exists, delete that AadeEntity record.

First Bad Commit

e40d4cd Get rid of some crazy formatting

Relevant log output

data: {"choices":[{"finish_reason":null,"index":0,"delta":{"content":"。"}}],"created":1770863333,"id":"chatcmpl-LS76DbjoHkF15FsSMfggTMTRs2Jc9ZE5","model":"Qwen3-Coder-Next-80B-A3B","system_fingerprint":"b8029-3096ecaa9","object":"chat.completion.chunk"}

data: {"choices":[{"finish_reason":null,"index":0,"delta":{"tool_calls":[{"index":0,"id":"rXWVM62q1hjpBJmDk7JFQM1GZJWLecxD","type":"function","function":{"name":"glob","arguments":"{"}}]}}],"created":1770863333,"id":"chatcmpl-LS76DbjoHkF15FsSMfggTMTRs2Jc9ZE5","model":"Qwen3-Coder-Next-80B-A3B","system_fingerprint":"b8029-3096ecaa9","object":"chat.completion.chunk"}

data: {"error":{"code":500,"message":"Failed to parse input at pos 86: <tool_call>\n<function=glob>\n<parameter=pattern>\n**/AgentPolicyApplyServiceImpl.java\n\n\n</tool_call>\n<tool_call>\n<function=glob>\n<parameter=pattern>\n**/AadeEntity.java\n\n\n</tool_call>\n<tool_call>\n<function=glob>\n<parameter=pattern>\n**/AhapEntity.java\n\n\n</tool_call>","type":"server_error"}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions