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

Fix Pydantic validation of base_url assignment for ChatOpenAI model #512

Merged
merged 1 commit into from
May 21, 2024

Conversation

mmashnev
Copy link
Contributor

Pydantic alias 'base_url' for the field 'openai_api_base' is not working as expected for assignments outside the constructor, so changed the alias to the original field name for alternative OpenAI base_url.

Fix for the issue #511

Copy link
Owner

@assafelovic assafelovic left a comment

Choose a reason for hiding this comment

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

Perfect, thank you!

@assafelovic assafelovic merged commit 8b945be into assafelovic:master May 21, 2024
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