feat: provider-level default model options (e.g. OpenAI store) #6565

Open
opened 2026-02-16 18:04:36 -05:00 by yindo · 2 comments
Owner

Originally created by @cyhhao on GitHub (Jan 17, 2026).

Originally assigned to: @thdxr on GitHub.

OpenAI Responses store is a per-request option and doesn't fit well in generic provider.options (SDK init options).

Proposal:

  • Add provider.<id>.defaults for per-request model options applied to all models of that provider.
  • Keep provider.<id>.options for SDK init options (apiKey/baseURL/timeout, etc).
  • Migrate legacy provider.<id>.options.store -> provider.<id>.defaults.store automatically.

This enables setting defaults.store once for OpenAI (or other OpenAI-based providers) without repeating per-model options.

Originally created by @cyhhao on GitHub (Jan 17, 2026). Originally assigned to: @thdxr on GitHub. OpenAI Responses `store` is a per-request option and doesn't fit well in generic `provider.options` (SDK init options). Proposal: - Add `provider.<id>.defaults` for per-request model options applied to all models of that provider. - Keep `provider.<id>.options` for SDK init options (`apiKey`/`baseURL`/`timeout`, etc). - Migrate legacy `provider.<id>.options.store` -> `provider.<id>.defaults.store` automatically. This enables setting `defaults.store` once for OpenAI (or other OpenAI-based providers) without repeating per-model options.
Author
Owner

@github-actions[bot] commented on GitHub (Jan 17, 2026):

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

  • #8987: [BUG]: Items are not persisted when store is set to false - related to the store option configuration issue
  • #8288: Try again with store set to true, GPT 5.2 open ai subcription - similar store-related problems with per-request options

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 17, 2026): This issue might be a duplicate of existing issues. Please check: - #8987: [BUG]: Items are not persisted when store is set to false - related to the store option configuration issue - #8288: Try again with `store` set to true, GPT 5.2 open ai subcription - similar store-related problems with per-request options Feel free to ignore if none of these address your specific case.
Author
Owner

@kcfuler commented on GitHub (Jan 20, 2026):

encounter the same issue

Image
@kcfuler commented on GitHub (Jan 20, 2026): encounter the same issue <img width="1216" height="182" alt="Image" src="https://github.com/user-attachments/assets/f663eaf1-fee8-4ae9-a658-ecbbfc88bdad" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6565