Skip to content

[FEATURE]:Support GPT-5.6 prompt caching defaults #36318

Closed as not planned
Closed as not planned

Description

@AbdoKnbGit

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

OpenAI introduced new prompt caching behavior for GPT-5.6 and later models.

We should make opencode automatically use the right GPT-5.6 cache defaults while keeping GPT-5.5 and older models on the existing behavior.

Docs: https://developers.openai.com/api/docs/guides/prompt-caching

Why

GPT-5.6 uses prompt_cache_key for more reliable cache matching and supports request-wide cache options through prompt_cache_options.

The GPT-5.6 family includes multiple model ids, such as:

  • gpt-5.6
  • gpt-5.6-sol
  • gpt-5.6-terra
  • gpt-5.6-luna

There may also be provider or suffix variants like gpt-5.6-fast, so detection should match the whole gpt-5.6* family rather than only the exact gpt-5.6 id.

Desired behavior

For GPT-5.6 family OpenAI models, opencode should send:

promptCacheOptions: {
  mode: "implicit",
  ttl: "30m"
}

Activity

  1. github-actions commented on Jul 10, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. rekram1-node commented on Jul 16, 2026

    @rekram1-node
    Collaborator

    yeah we will support this in v2

  3. github-actions commented on Sep 15, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions