# @ai-sdk/openai 2.0.143 adds prompt cache reuse for changed output schemas

published: 2026-11-11T14:05:36.094Z
topic: frameworks
source: https://github.com/vercel/ai/releases/tag/%40ai-sdk%2Fopenai%402.0.143
url: https://aiagentnews.io/stories/ai-sdk-openai-2-0-143-adds-prompt-cache-reuse-for-changed-output-schemas

Vercel's @ai-sdk/openai 2.0.143 adds support for positioned Responses API format updates, so changing structured output schemas can keep earlier reasoning and prompt cache reuse. The patch also adds a stable request-level text format override and prompt cache comparison diagnostics for generation and streaming results.

The patch release of the OpenAI provider in Vercel's AI SDK adds support for positioned Responses API format updates. Changing a structured output schema can now keep earlier reasoning and reuse the prompt cache.

The release also adds a request-level text format override, which is marked as stable. It lets a single request set its text format without changing the wider configuration.

It exposes prompt cache comparison diagnostics on both generation and streaming results, so cache behavior can be checked from each call's output.

## Why it matters if you build agents

Agent builders who revise structured output schemas between steps may keep earlier reasoning and avoid losing cache reuse after the change. The per-request text format override makes it possible to vary output format for one call. The new diagnostics give a way to check whether cache reuse is actually happening in a given run.

The release is a patch, not a breaking change, so upgrading within the same major version should not require code changes.
