Repository navigation
feat(ai): add PageSpace model aliases (standard/pro) for AI agents - #207
Conversation
- Add PAGESPACE_MODEL_ALIASES mapping 'standard' -> 'glm-4.5-air' and 'pro' -> 'glm-4.7' - Add resolvePageSpaceModel() to convert aliases to actual model IDs - New AI agents now default to provider='pagespace' and model='standard' - Provider factory resolves aliases before passing to backend - Agents can now use 'standard' or 'pro' without knowing underlying model names
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
📝 WalkthroughWalkthroughThe changes introduce PageSpace model aliasing (standard, pro) with resolver functions, add default AI provider and model values during agent creation, and integrate alias resolution into the provider factory to map user-friendly aliases to actual model IDs. Changes
Possibly related PRs
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧹 Recent nitpick comments
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
🧰 Additional context used📓 Path-based instructions (6)**/*.{ts,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.ts📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.{ts,tsx,js,jsx,json}📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*ai*.{ts,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
apps/web/src/**/*.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
apps/web/src/app/**/route.{ts,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (2)📚 Learning: 2025-12-22T20:04:40.910ZApplied to files:
📚 Learning: 2025-12-14T14:54:45.713ZApplied to files:
🧬 Code graph analysis (1)apps/web/src/lib/ai/core/provider-factory.ts (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (7)
✏️ Tip: You can disable this entire section by setting 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 |
Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.