fix: recover passthrough provider failover - #851
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthrough모델 그룹과 capability 기반 라우팅을 확장했습니다. 가상 모델의 provider failover를 제한된 오류에 적용했습니다. Structured Chat과 Responses 요청을 orchestration workflow로 처리하고, provider usage와 추정 usage를 cost ledger에 기록합니다. ChangesProvider orchestration 및 failover
Structured 및 Responses orchestration
Usage provenance
검증 및 테스트 실행
Estimated code review effort: 4 (Complex) | ~60 minutes Merge Risk: 🟠 High · up to The PR changes provider failover, replay behavior, structured-output routing, and usage accounting, but unresolved paths can skip healthy failover candidates, issue duplicate provider attempts, route explicit free-model requests to paid providers, or omit cost records. These correctness, availability, and billing risks should be fixed or explicitly accepted before merge. Sequence Diagram(s)sequenceDiagram
participant Client
participant Server
participant Orchestrator
participant Provider
participant CostLedger
Client->>Server: structured Chat 또는 Responses 요청
Server->>Orchestrator: orchestration 요청 전달
Orchestrator->>Provider: evidence 호출
Provider-->>Orchestrator: evidence 응답과 usage
Orchestrator->>Provider: synthesis 호출
Provider-->>Orchestrator: 최종 응답과 usage
Orchestrator->>CostLedger: usage와 measurement_status 기록
CostLedger-->>Server: 비용 및 usage record 반환
Server-->>Client: Chat 또는 Responses 응답
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 67.06% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 85 functions across 17 files. (2 skipped: 1 unsupported, 1 too large.) ✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 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 |
|
Stack update: #853 merged normally into this branch at merge commit |
…gh-provider-failover # Conflicts: # contextual_orchestrator/orchestrator.py
…st-valid feat: race explicitly equivalent model-group endpoints
Summary
Evidence
uv run --frozen --extra test --with pytest pytest -q-> 1886 passedgit diff --check-> cleanGrounding
docs/doctoring/provider-diverse-discovery-routing.mdAdvances #846 (passthrough failover slice only).
Summary by CodeRabbit
새 기능
개선 사항