Skip to content

Python: [Feature]: Support prompt cache breakpoints for GPT 5.6 models #7157

Description

@cecheta

Description

The GPT-5.6 models support a new prompt_cache_breakpoint parameter that explicitly sets breakpoints for where prompt prefixes should be saved to the cache. This is important for the newer models, as cache writes now cost.
https://developers.openai.com/api/docs/guides/prompt-caching#prompt-cache-breakpoints

Code Sample

Perhaps something like this.

Content.from_text(
  "Text input",
  additional_properties={
    "prompt_cache_breakpoint": {
      "mode": "explicit"
    }
  }
)

Language/SDK

Python

Metadata

Metadata

Labels

agentsUsage: [Issues, PRs], Target: Single agentpythonUsage: [Issues, PRs], Target: Python

Fields

No fields configured for Feature.

Projects

Status
No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions