Skip to content

feat(runtime): adopt Open Responses extension codecs for DeepSeek tools #4107

Description

@me2seeks

Summary

@ai-sdk/open-responses@2.0.35 now exposes the experimental extension-codec seam implemented by vercel/ai#18900 for vercel/ai#18899. Maka currently remains on 2.0.29 and fails closed for provider-executed tool replay and DeepSeek hosted web search.

Proposed scope

  • Upgrade @ai-sdk/open-responses to 2.0.35.
  • Register the DeepSeek tool, item, and streaming-event codecs supported by its wire contract.
  • Preserve provider-executed call/result ordering and opaque replay data across later requests.
  • Enable only capabilities proven by request, response, stream, and replay tests.
  • Keep unsupported or non-namespaced DeepSeek extensions disabled rather than passing unknown JSON through.

Acceptance checks

  • Mixed client and provider-executed tools retain execution ownership and chronology.
  • Non-streaming and streaming hosted-tool results finish normally without entering the client tool loop.
  • A later request replays each supported provider item exactly once.
  • Unregistered or incompatible provider tools remain fail-closed with an explicit warning.
  • Existing OpenAI and generic Open Responses behavior remains unchanged.

Follow-up to #2513 and #2972.

Upstream: vercel/ai#18899, vercel/ai#18900.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions