Repository navigation
Add model-aware system prompt transforms - #40
Conversation
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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Essentials Run ID: 📒 Files selected for processing (1)
Included review availability: 1 review is currently available. Your included PR review attempts over the past 7 days set your current allowance at 3 reviews per hour. 📝 WalkthroughWalkthroughThis change adds validated provider-wide and model-specific system prompt policies. Eligible OpenAI chat-completions requests receive immutable prompt transformations. Audio, Responses, and unsupported message inputs remain unchanged. ChangesSystem prompt policy
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant Client
participant route_request
participant ProviderConfig
participant transform_system_prompt_messages
participant SelectedProvider
Client->>route_request: submit chat-completions payload
route_request->>ProviderConfig: resolve policy for model
ProviderConfig-->>route_request: return policy or no policy
route_request->>transform_system_prompt_messages: transform copied messages
transform_system_prompt_messages-->>route_request: return transformed messages
route_request->>SelectedProvider: dispatch request
Merge Risk: ⚪ Minimal · up to This configuration-only change introduces no identified merge-blocking risk. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 30.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 30 functions across 5 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #40 +/- ##
==========================================
+ Coverage 76.82% 76.94% +0.12%
==========================================
Files 38 39 +1
Lines 10902 11041 +139
Branches 1685 1720 +35
==========================================
+ Hits 8375 8496 +121
- Misses 1930 1939 +9
- Partials 597 606 +9 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
|
@coderabbitai review quota refreshed, review |
|
✅ Action performedReview finished.
|



Summary
/no_think, skip structured system content safely, and document configurationVerification
pytest -q— 1070 passed, 9 skippedruff check smolrouter/ tests/unit/test_system_prompts.pyvulture smolrouter/ --min-confidence=80 --exclude .venv --exclude venv --exclude .conda --exclude .cachegit diff --checkPeer-reviewed before and after implementation by GPT-5.6-Sol.
Summary by CodeRabbit
New Features
Behavior Updates
Documentation