Repository navigation
feat(api): add cache settings and key options [2/2] - #4087
Conversation
Castiron-Internal-PR: openai/openai-python-internal#267 Castiron-Source-SHA: e748890d2046352bf289f1583e423d76880f453b Castiron-Public-Base-SHA: 9998c1a
Castiron custom codeEvaluated main: ✅ No new custom-code files detected. 36 mixed files remain; 0 existing customizations changed; 4 customizations removed; 10 generated baselines changed. Compared
30 existing customizations unchanged
A changed generated baseline means this report cannot reliably identify which handwritten lines changed. Inspect the custom-code diffDownload the exact patch produced by this run (requires repository access): gh run download 38839055530 --repo openai/openai-python \
--name castiron-custom-code-38839055530-1 --dir /tmp/castiron-custom-code-38839055530-1
git apply --stat /tmp/castiron-custom-code-38839055530-1/custom-code.patch
cat /tmp/castiron-custom-code-38839055530-1/custom-code.patchOr reproduce it from an SDK checkout containing the vendored reporter: git fetch --no-tags origin 9998c1a3806afda55cb3923de1f7f49adcff5a7f ecb5e394d83d28b74b3084bd2c5132e4f9912333
python3 scripts/castiron/custom_code_report.py report \
--base 9998c1a3806afda55cb3923de1f7f49adcff5a7f \
--head ecb5e394d83d28b74b3084bd2c5132e4f9912333 --fetch --require-head-hash --public \
--out /tmp/castiron-custom-code-ecb5e394d83d
cat /tmp/castiron-custom-code-ecb5e394d83d/custom-code.patchThis is the current full custom patch for mixed files, not an attribution of only the handwritten lines changed by this PR. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Why
Python users need optional cache controls for Decisions and independent scope or expiry updates for project keys.
High-level description
Add Decisions prompt-cache settings and text/image cache breakpoints. Allow project key scopes or expiry to be updated independently, and refresh model alias notices. Preserve existing WebSocket connection methods, defaults, credential handling, and API helpers.
Validation
CI passes, and all 236 consumer tests pass. Automated code and security reviews found no issues on the current head.
Existing WebSocket methods and signatures match the public baseline. Repeat generation produced identical files. An installed SDK generated with an unrelated WebSocket API passed eight real sync/async handshakes covering request hooks, credentials, events, reconnects, and cleanup, without changes to the SDK-owned runtime.