Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VertexAI] Make with_structured_output thread safe #642

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jzaldi
Copy link
Contributor

@jzaldi jzaldi commented Dec 12, 2024

PR Description

When calling with_structured_output with ChatVertexAI it modified the model's state directly. Now it returns a wrapper as it should and the original model is not modified.

Relevant issues

Fixes #636

Type

🆕 New Feature
🐛 Bug Fix
🧹 Refactoring
📖 Documentation
🚄 Infrastructure
✅ Test

Changes(optional)

Testing(optional)

Note(optional)

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.

Thread Safety and with_structured_output Wrapping
1 participant