Skip to content

Implement models rework where provider becomes pydantic model#180

Open
anbuzin wants to merge 7 commits into
mainfrom
fix-models-3
Open

Implement models rework where provider becomes pydantic model#180
anbuzin wants to merge 7 commits into
mainfrom
fix-models-3

Conversation

@anbuzin

@anbuzin anbuzin commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Use global registry to load the correct provider when .model_validate-ing.

@anbuzin anbuzin requested a review from msullivan June 18, 2026 00:24
@vercel

vercel Bot commented Jun 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ai-python Ready Ready Preview, Comment Jun 18, 2026 8:15pm

Comment thread src/ai/providers/openai/provider.py

@msullivan msullivan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks really solid; I do want to understand the __init__s a bit better though

Comment thread src/ai/models/core/model.py Outdated
Comment thread src/ai/models/core/model.py Outdated
Comment thread src/ai/providers/ai_gateway/provider.py Outdated
Comment thread src/ai/providers/ai_gateway/provider.py Outdated
Comment thread src/ai/providers/anthropic/provider.py Outdated
Comment thread src/ai/providers/base.py Outdated
@socket-security

socket-security Bot commented Jun 18, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedpypi/​pydantic@​2.13.4100100100100100

View full report

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