feat: add configuration for open ai store option on provider level
For organizations with ZDR enabled, currently we need to manually set the "store" option for every open ai model in configuration. This change adds support to specify it once on the provider level instead. Ref: https://github.com/anomalyco/opencode/issues/2966
The following comment was made by an LLM, it may be inaccurate:
No duplicate PRs found
A seperate note, but this existing snippet seems to possibly be dead code, or uninentional:
if (model.providerID.includes("codex")) {
result["store"] = false
}
The "provider ID" would not possibly include codex, was this supposed to check against the model with model.api.id? Or is there actually a provider with the keyword "codex" in it? But not sure why this was required in the first place as well 😅
cc @rekram1-node can I bug you for a review on this one?
need it to use OpenAI models & their zero data retention config in OC.