-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Python: Fix pydantic alias issue #10027
Conversation
This PR removes the alias as pydantic requires the usage of the alias when initializing the class not the original name which prevents this code from working. ```py cosmosdb_settings = AzureCosmosDBSettings.create( env_file_path=env_file_path, connection_string=cosmos_connstr, ) ```
python/semantic_kernel/connectors/memory/azure_cosmosdb/azure_cosmosdb_settings.py
Show resolved
Hide resolved
python/semantic_kernel/connectors/memory/azure_cosmosdb/azure_cosmosdb_settings.py
Outdated
Show resolved
Hide resolved
forr pydantic 2.0
@eavanvalkenburg done, i tested it with my sample and it's working. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks clean, thanks!
There is a bug in a dependency, I've raised an issue for it: milvus-io/milvus-lite#242 |
and also created a seperate PR for it, now just need to find some approvers! |
python/semantic_kernel/connectors/memory/azure_cosmosdb/azure_cosmosdb_settings.py
Show resolved
Hide resolved
python/semantic_kernel/connectors/memory/azure_cosmosdb/azure_cosmosdb_settings.py
Outdated
Show resolved
Hide resolved
Head branch was pushed to by a user without write access
278b5d7
to
ba119ac
Compare
@eavanvalkenburg I will debug it and let you know the issue. |
ba119ac
to
6239045
Compare
no need, we have some intergration tests that just fail randomly, so sometimes takes one or two attempts |
I just noticed that it's a different test that fails each time 😆 |
merged now! thanks! |
Motivation and Context
fix #10026
Description
This PR removes the alias as pydantic requires the usage of the alias when initializing the class not the original name which prevents this code from working.
Contribution Checklist