fix(agent-routing): support API model aliases - #1546
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 (4)
📜 Recent review details🧰 Additional context used📓 Path-based instructions (7)**/*.{ts,tsx,js,jsx,py}📄 CodeRabbit inference engine (CONTRIBUTING.md)
Files:
**/*⚙️ CodeRabbit configuration file
Files:
**⚙️ CodeRabbit configuration file
Files:
**/*.test.{ts,js}📄 CodeRabbit inference engine (CONTRIBUTING.md)
Files:
{src/services/api/**,src/integrations/**,src/utils/model/**,src/utils/provider*.ts,src/commands/provider/**}⚙️ CodeRabbit configuration file
Files:
{src/**/*.test.ts,src/**/*.test.tsx,tests/**,scripts/**/*.test.ts,vscode-extension/**/*.test.js}⚙️ CodeRabbit configuration file
Files:
{README.md,CONTRIBUTING.md,docs/**,.github/pull_request_template.md}⚙️ CodeRabbit configuration file
Files:
🧠 Learnings (2)📓 Common learnings📚 Learning: 2026-06-04T23:13:58.119ZApplied to files:
🔇 Additional comments (4)
📝 WalkthroughWalkthroughThis PR adds support for aliasing route keys to different API model names in agent routing. A new optional ChangesAgent Model Aliasing Configuration
🎯 2 (Simple) | ⏱️ ~12 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 3❌ Failed checks (2 warnings, 1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
jatmn
left a comment
There was a problem hiding this comment.
Thanks for the contribution. I do not see any actionable issues from my review.
Summary
agentModelsentries to set an optional provider-facingmodelvalueagentModelskeyapi_keyentries so broken local aliases do not create provider overridesValidation
bun test src/services/api/agentRouting.test.ts src/tools/AgentTool/runAgent.routing.test.ts src/tools/AgentTool/AgentTool.routing.test.ts src/tools/AgentTool/AgentTool.teammateModel.test.ts src/utils/model/agent.test.ts src/utils/settings/flagSettings.test.tsSummary by CodeRabbit
New Features
modelfield inagentModelsto map a route key to a different API model name.Documentation
Tests