Skip to content

Conversation

@qdaxb
Copy link
Contributor

@qdaxb qdaxb commented Nov 29, 2025

Summary

  • 根据团队的 agent_type 过滤模型列表(agno -> openai, claude/claudecode -> claude)
  • 当团队所有 bot 都有绑定的模型时,自动选择"默认"选项
  • 切换团队时,如果当前选中的模型不兼容,自动重置选择

Changes

  • 新增 compatibleProvider 计算属性,根据团队的 agent_type 映射到兼容的 provider
  • 新增 filteredModels 计算属性,根据 compatibleProvider 过滤模型列表
  • 修改模型选择逻辑,当 showDefaultOption 为 true 时自动选择默认模型
  • 新增团队切换时的模型兼容性检查逻辑

Test plan

  • 选择 Agno 类型的团队,验证模型列表只显示 OpenAI provider 的模型
  • 选择 Claude 类型的团队,验证模型列表只显示 Claude provider 的模型
  • 选择所有 bot 都有绑定模型的团队,验证模型选择框自动选择"默认"
  • 从一个团队切换到另一个不同类型的团队,验证不兼容的模型选择被重置

- Filter model list based on team's agent_type (agno -> openai, claude -> claude)
- Auto-select "Default" model when all bots in team have predefined models
- Reset model selection when team changes and current model is incompatible
- Improve model selection UX when switching between different team types
@coderabbitai
Copy link

coderabbitai bot commented Nov 29, 2025

Warning

Rate limit exceeded

@qdaxb has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 9 minutes and 13 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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.

📥 Commits

Reviewing files that changed from the base of the PR and between 8e505f6 and 5dc586b.

📒 Files selected for processing (1)
  • frontend/src/features/tasks/components/ModelSelector.tsx (7 hunks)
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch wegent/filter-models-by-team-protocol

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants