Skip to content

DeepSeek V4-Flash native Responses route: 400 missing field queries on replayed web_search_call #930

Description

@Hzzz7

``markdown

Client or integration

Codex App

Area

Proxy and routing

Summary

After a web search in a conversation using deepseek/deepseek-v4-flash (opencodex 2.10.0, DeepSeek native Responses route), every subsequent turn fails with HTTP 400 invalid_request_error from api.deepseek.com:

Failed to deserialize the JSON body into the target type: input: missing field 'queries' at line 1 column N

I expected the replayed web_search_call history to be accepted by DeepSeek's Responses API (or dropped on translated routes) so the conversation can continue.

Reproduction

  1. Start opencodex 2.10.0 (ocx start --port 10100) with the DeepSeek provider and model deepseek/deepseek-v4-flash on the native Responses route (responsesPath: "/responses").
  2. In the Codex App, run a turn that performs a web search, so a web_search_call history item is recorded.
  3. Send any follow-up message in the same conversation.
  4. Every subsequent turn fails with 400 missing field 'queries'.

Minimal repro against the proxy — POST /v1/responses with model: "deepseek/deepseek-v4-flash" and input containing:

{"type":"web_search_call","id":"ws_x","status":"completed","action":{"type":"search","query":"test"}}

→ 400 missing field 'queries'.

Changing the action to {"type":"search","queries":["test"]} → 200.

Version

2.10.0

Operating system

Windows (build 26200, DisplayVersion 25H2)

Provider and model

deepseek / deepseek-v4-flash

Logs or error output

HTTP 400 invalid_request_error from api.deepseek.com:
Failed to deserialize the JSON body into the target type: input: missing field 'queries' at line 1 column N

Screenshots and supporting files

None.

Redacted configuration

Not applicable — provider adapter routing for deepseek/deepseek-v4-flash as shipped in 2.10.0 (modelWireDefaults + responsesPath: "/responses").

Checks

  • I searched existing issues and documentation.
  • I removed secrets, tokens, account details, request credentials, and personal data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingproxyHTTP proxy, routing, reverse-proxy / management authtoolstool_calls, MCP, web-search / sidecar tools

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions