cloudflare / cloudflare/ai

Calling GPT 5.2 with code-interpreter tool is rejected by OpenAI do to Zero Data Retention policy.

Open
#428 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.2k
Forks
345
Avg merge
13h 31m
Merged PRs (30d)
1

Description

Calling GPT 5.2 with code-interpreter provider-defined tool is rejected by OpenAI do to Zero Data Retention policy. In Cloudflare dash i have ZDR disabled. I worked around this by setting my own API key in the Provider Keys section.

My understanding is that ZDR is a setting that is forwarded to the provider based on cloudflare docs. I would like to move away from using my own keys so any help with getting this address would be greatly appreciated!

Contributor guide

Open the contributing guide

Research direction

No file or test is identified in the issue. Start by reproducing the GPT 5.2 request with the provider-defined code-interpreter tool while ZDR is disabled in the Cloudflare dashboard, then compare it with the Provider Keys workaround and trace how ZDR is forwarded. Done means the request is accepted without requiring a personal API key.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
ai, api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.