fix(responses): strip unsupported prompt cache retention - #2091
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughChangesResponses parameter forwarding
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The change removes unsupported prompt-cache retention only for forwarded requests while preserving the API-key path, with focused regressions covering both behaviors. No actionable merge-blocking risk remains after normal checks and review. Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
✅ Deterministic PR hygiene checks passed. |
✅ READY
Review readiness checklist
✅ 4/4 boxes ticked. This pull request is already Ready for Review. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
deda6fa to
61ee2e9
Compare
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Closing decision on the Not a quality judgment on this diff — the collision is real and only one of the three can land. The deciding evidence is that the ChatGPT backend's cache handling is account-level and has provably varied by deployment: one deployment accepted Thanks for the fast turnaround on this one — the analysis in the description is what made the three-way comparison quick. |
리뷰 · 우선순위 46 / 80forward 경로의 코드는 테스트가 그 계약을 고정한다. API 키 어댑터는 #2099는 prefix 스코프, #2102는 정규 ChatGPT + 해결방안머지하지 마라. #2102가 랜 뒤 close하면 된다. 전체 forward 스트립을 더 밀지 마라. 계정/배포별 캐시 동작이 그 범위를 이미 반박했다. 테스트 패턴(API 키 보존)은 #2102 쪽이 이미 더 좁게 가지고 있다. 이 댓글은 grok-bot이 작성했습니다 |
|
Thanks for raising this, @luvs01 — closing as superseded by #2138, which fixes #2092. Your diagnosis was right and your patch was the simplest of the three. The reason #2138 follows @lilinxiong's narrower contract instead: extending |
Summary
prompt_cache_retentionwithinvalid_parameter.authMode: "forward"requests through the existing ChatGPT compatibility sanitizer.prompt_cache_retentionfor OpenAI API-key Responses requests, where supported models can still use extended retention.Verification
prompt_cache_retention: "24h"reached the wire.bun test --timeout 60000 tests/openai-responses-passthrough.test.ts— 69 passed, 0 failed.bun x tsc --noEmit— passed.bun run privacy:scanandgit diff --check— passed.bun run testbecame non-green on three Windows Log Guard assertions returning the existingunsafe_pathresult. Those tests and their direct implementation paths are byte-identical todevand do not call the Responses adapter; the run was stopped after the unrelated failures were established.Checklist
Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
All CI tests are green on my local testing.
I pushed my PR to the latest dev commit.
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.
Summary by CodeRabbit