Skip to content

"Previous response cannot be used for this organization due to Zero Data Retention" #106

Open
@OmerRaviv

Description

@OmerRaviv

I am using a OpenAI Enterprise account, and no matter what query I put in, codex fails with the following message:

 OpenAI rejected the request (request ID: req_1a9b278241d22896524af079e9ba9c8c). Error details: Status: 400, Code: unsupported_parameter, Type: invalid_request_error, Message: 400 Previous
    response cannot be used for this organization due to Zero Data Retention.. Please verify your settings and try again.

Activity

bbrzoska

bbrzoska commented on Apr 16, 2025

@bbrzoska

same issue here

tibo-openai

tibo-openai commented on Apr 16, 2025

@tibo-openai
Collaborator

Currently we don't support ZDR orgs because we need store:true to leverage internal reasoning steps, but as per https://platform.openai.com/docs/guides/your-data#responses-api: "Unlike Chat completions, the Responses API has a 30 day retention period by default, or when the store parameter is set to true."

tibo-openai

tibo-openai commented on Apr 16, 2025

@tibo-openai
Collaborator

We should document this in the README for now.

ramgsuri

ramgsuri commented on Apr 17, 2025

@ramgsuri

How and where to set this parameter, can you help explain.

added a commit that references this issue on Apr 17, 2025
added a commit that references this issue on Apr 29, 2025
26663c9
TerminalGravity

TerminalGravity commented on May 2, 2025

@TerminalGravity

bump

MaccariTA

MaccariTA commented on May 5, 2025

@MaccariTA

Despite being on the latest version (0.1.2505021246) and the README mentions it does support ZDR, I'm still getting this issue.

I'm mentioning @fouad-openai who made the change in the README.

itsaphel

itsaphel commented on May 6, 2025

@itsaphel

I find that you need to also use the --disable-response-storage argument for codex to work with ZDR. With that flag, it seems to work for me.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @OmerRaviv@itsaphel@ramgsuri@TerminalGravity@MaccariTA

        Issue actions

          "Previous response cannot be used for this organization due to Zero Data Retention" · Issue #106 · openai/codex