[PR #9029] feat(config): provider requestOptions for request-level params #12954

Open
opened 2026-02-16 18:17:50 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/9029

State: open
Merged: No


Fixes #9028.

Context

  • store is a per-request OpenAI Responses option; putting it under generic provider.options (SDK init options) is awkward.
  • Introduce a clear separation:
    • provider.<id>.options: SDK init / transport settings (apiKey, baseURL, timeout, ...)
    • provider.<id>.requestOptions: default per-request model options applied to all models in that provider.

Changes

  • Add provider.<id>.requestOptions and plumb into ProviderTransform.options().
  • Apply requestOptions.store only for OpenAI providers (OpenAI still defaults to store=false).
  • Migration: if users had provider.<id>.options.store, it is moved to provider.<id>.requestOptions.store during config load.

Example

{
  "provider": {
    "openai": {
      "requestOptions": { "store": true }
    }
  }
}
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9029 **State:** open **Merged:** No --- Fixes #9028. Context - `store` is a per-request OpenAI Responses option; putting it under generic `provider.options` (SDK init options) is awkward. - Introduce a clear separation: - `provider.<id>.options`: SDK init / transport settings (`apiKey`, `baseURL`, `timeout`, ...) - `provider.<id>.requestOptions`: default per-request model options applied to all models in that provider. Changes - Add `provider.<id>.requestOptions` and plumb into `ProviderTransform.options()`. - Apply `requestOptions.store` only for OpenAI providers (OpenAI still defaults to `store=false`). - Migration: if users had `provider.<id>.options.store`, it is moved to `provider.<id>.requestOptions.store` during config load. Example ```json { "provider": { "openai": { "requestOptions": { "store": true } } } } ```
yindo added the pull-request label 2026-02-16 18:17:50 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12954