test(gateway): update auto-routing reasoning_effort test - #1049
Conversation
|
Warning Rate limit exceeded@steebchen has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 9 minutes and 15 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
WalkthroughA test in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
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 |
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
There was a problem hiding this comment.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
apps/gateway/src/api-individual.e2e.ts(3 hunks)
🧰 Additional context used
📓 Path-based instructions (6)
**/*.{ts,tsx,js,jsx}
📄 CodeRabbit inference engine (AGENTS.md)
Always use top-level import; never use require() or dynamic import()
Files:
apps/gateway/src/api-individual.e2e.ts
**/*.e2e.ts
📄 CodeRabbit inference engine (AGENTS.md)
End-to-end tests should be written in *.e2e.ts files
End-to-end test files should be named with the
.e2e.tssuffix
Files:
apps/gateway/src/api-individual.e2e.ts
apps/gateway/src/api-individual.e2e.ts
📄 CodeRabbit inference engine (AGENTS.md)
Place isolated/individual E2E test cases that need isolation in apps/gateway/src/api-individual.e2e.ts
Place isolated E2E test cases that need separation in
apps/gateway/src/api-individual.e2e.ts
Files:
apps/gateway/src/api-individual.e2e.ts
apps/{gateway,api}/**/*.ts
📄 CodeRabbit inference engine (AGENTS.md)
apps/{gateway,api}/**/*.ts: Use Hono for HTTP routing in Gateway and API services
Use Zod schemas for request/response validation in server routes
Files:
apps/gateway/src/api-individual.e2e.ts
**/*.{ts,tsx}
📄 CodeRabbit inference engine (CLAUDE.md)
**/*.{ts,tsx}: Never useanyoras anyin this TypeScript project unless absolutely necessary
Always use top-levelimport; do not userequireor dynamicimport()
Files:
apps/gateway/src/api-individual.e2e.ts
{apps/{api,gateway}/**/*.ts,packages/db/**/*.ts}
📄 CodeRabbit inference engine (CLAUDE.md)
For read operations, use
db().query.<table>.findMany()ordb().query.<table>.findFirst()
Files:
apps/gateway/src/api-individual.e2e.ts
🧬 Code graph analysis (1)
apps/gateway/src/api-individual.e2e.ts (1)
packages/db/src/schema.ts (1)
log(340-418)
Update auto-routing test to properly validate that reasoningEffort is set to "minimal" for gpt-5 models and "low" for other reasoning models. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Background
The existing test for auto-routing was too specific, assuming only
gpt-5-nanowould be selected withreasoning_effortset to "minimal". This prevented the test from passing when other reasoning models (which should use "low" effort) were selected.Changes
Auto-routing sets reasoning_effort to minimal for gpt-5 modelstoAuto-routing sets reasoning_effort appropriatelyinapps/gateway/src/api-individual.e2e.ts.usedModelMapping(gpt-5-nano).reasoning_effortcould be "minimal" (for gpt-5*) or "low" (for other reasoning models).Testing
e2e individual teststo verify the updated auto-routing logic.auto.Summary by CodeRabbit