Conversation
|
✅ Deterministic PR hygiene checks passed. |
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueNo actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: lidge-jun/opencodex/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe change adds LiteLLM-wrapped OpenAI error detection to opaque-blob recovery. It parses bounded embedded JSON, preserves existing rejection checks, documents the behavior, and tests both recovery and non-recovery cases. ChangesOpaque-blob recovery
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix Sequence Diagram(s)sequenceDiagram
participant Client
participant Responses as /v1/responses
participant Recovery as opaque-blob recovery
participant LiteLLM
Client->>Responses: send request containing opaque blob
Responses->>LiteLLM: forward request
LiteLLM-->>Responses: return wrapped OpenAI error
Responses->>Recovery: inspect error payload
Recovery-->>Responses: identify invalid_encrypted_content
Responses->>LiteLLM: resend sanitized request without opaque blob
LiteLLM-->>Responses: return success
Responses-->>Client: return recovered response
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 2 files. (1 skipped: 1 unsupported.) ✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 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 |
⏳ DRAFT
What to do
Review readiness checklist
0/4 boxes ticked. This PR stays in draft until every box above is ticked. |
리뷰 · 우선순위 66 / 80이 PR은 LiteLLM이 OpenAI의 다만 베이스가 라인 - 메인테이너의 판단이 필요한 지점 LiteLLM으로 감싼 ChatGPT/xAI/caller-mismatch 거부까지 같은 한 번 재시도를 허용할지(지금 코드), 아니면 문서대로 너의 추천 베이스를 이 댓글은 grok-bot이 작성했습니다 |
7e3e3c9 to
59bf39b
Compare
추가 리뷰 · 우선순위 73 / 80이전 리뷰 이후 머리가 라인 - 메인테이너의 판단이 필요한 지점 LiteLLM으로 감싼 ChatGPT/xAI/caller-mismatch까지 같은 한 번 재시도를 허용하는 현재 코드(그리고 이제 문서)를 그대로 둘지. 테스트에 그 래퍼 조합을 추가할지는 품질 선택입니다. 너의 추천 베이스·문서 문제는 해결됐으니, 체크리스트를 채우고 exact-head에서 opaque-blob 복구 테스트와 typecheck가 초록이면 Ready로 올린 뒤 머지해도 됩니다. 이 댓글은 grok-bot이 작성했습니다 |
|
Carried in narrowed form by #5266, merged to What landed: a gateway envelope is decided only by its embedded payload, and only an embedded Why not the full classifier: rerunning the whole opaque classifier on the embedded payload would also admit the code-less unverifiable-ciphertext wording, the #4469 caller mismatch, and the two decoder strings — identities that rest on evidence about how one specific upstream words its own rejection, which a gateway in between is not. The pre-existing anchored-wording checks already run on the whole message, and a gateway quotes the upstream's message inside its own, so a relayed caller mismatch would otherwise have satisfied the #4469 identity and gained exactly the resend that the strict check exists to withhold. If you have evidence that a specific gateway's relayed wording is safe to treat as its own identity, that is the thing to add here. |
This reverts commit 5a1698a.
|
Superseded by #5266, which includes the LiteLLM wrapped ciphertext recovery fix and preserves the contribution with a Co-authored-by trailer. Closing this duplicate PR. |
Summary
invalid_encrypted_contentresponse insideerror.message.Verification
bun test tests/responses/responses-opaque-blob-recovery.test.tsbun run typecheckbun run structure:checkbun run privacy:scanChecklist
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
Bug Fixes
Documentation
Tests