fix(deps): pin pydantic-ai to the 2.x major (<3.0) - #16
Conversation
pydantic-ai was unbounded (>=1.0.6), so pip pulled whatever latest was — that is how the OpenAIModel->OpenAIChatModel rename broke 'python -m codewiki' out of nowhere. The current fix targets the 2.x API; a future 3.x could rename again and break the import even with the try/except fallback (which expects the pre-2.x name). Pin >=2.0,<3.0 so majors are adopted deliberately, not silently. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 33 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
pydantic-aiwas unbounded (>=1.0.6), sopip installpulled whatever latest happened to be — which is exactly how theOpenAIModel→OpenAIChatModelrename brokepython -m codewikiwith no code change on our side.Pin it to the current major (
>=2.0,<3.0) inpyproject.toml(used by the doc-orchestrator'spip install /tmp/CodeWiki) andrequirements.txt. A future pydantic-ai 3.x could rename again and break even the try/except fallback (which expects the pre-2.x name), so majors should be adopted deliberately, not silently.🤖 Generated with Claude Code