You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a server-side translation error when using the opencode.ai proxy with tool-enabled clients like Claude Code when targeting DeepSeek models. The proxy fails to correctly nest the tool name within the function object required by the OpenAI/DeepSeek schema.
Error Message
API Error: 400 Error from provider (DeepSeek): Failed to deserialize the JSON body into the target type: tools[0].function: missing field 'name'
Technical Details
When Claude Code sends tool definitions in Anthropic format, the proxy translates them to the OpenAI format. Currently, it appears the proxy is placing the name field at the top level of the tool instead of inside the function wrapper.
This issue might be a duplicate of an existing issue. Please check:
Anthropic 的 tools 格式转换为 OpenAI 的 tools 格式 #25107: Same issue — Anthropic tools format not being converted to OpenAI tools format when using the proxy with Claude Code targeting DeepSeek models, causing agent/tool functionality to fail.
If your issue is different or adds new context, please clarify how it differs from #25107.
Activity
github-actions commentedon May 12, 2026
This issue might be a duplicate of an existing issue. Please check:
toolsformat not being converted to OpenAItoolsformat when using the proxy with Claude Code targeting DeepSeek models, causing agent/tool functionality to fail.If your issue is different or adds new context, please clarify how it differs from #25107.
hoarfrost32 commentedon Jun 16, 2026
Opened a fix in #32448, could a maintainer approve the CI checks on the PR when you have a moment?
github-actions commentedon Aug 16, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.