Skip to content

fix(deps): pin pydantic-ai to the 2.x major (<3.0) - #16

Open
michaelassraf wants to merge 1 commit into
mainfrom
fix/pin-pydantic-ai-major
Open

fix(deps): pin pydantic-ai to the 2.x major (<3.0)#16
michaelassraf wants to merge 1 commit into
mainfrom
fix/pin-pydantic-ai-major

Conversation

@michaelassraf

Copy link
Copy Markdown

pydantic-ai was unbounded (>=1.0.6), so pip install pulled whatever latest happened to be — which is exactly how the OpenAIModelOpenAIChatModel rename broke python -m codewiki with no code change on our side.

Pin it to the current major (>=2.0,<3.0) in pyproject.toml (used by the doc-orchestrator's pip install /tmp/CodeWiki) and requirements.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

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>
@coderabbitai

coderabbitai Bot commented Jul 25, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@michaelassraf, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 33 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: e45ee90f-94d0-431c-ad08-69c8920235ce

📥 Commits

Reviewing files that changed from the base of the PR and between 3ece14a and cf55c28.

📒 Files selected for processing (2)
  • pyproject.toml
  • requirements.txt
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/pin-pydantic-ai-major

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.

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.

1 participant