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

Python: Fix pydantic alias issue #10027

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

john0isaac
Copy link
Contributor

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.

cosmosdb_settings = AzureCosmosDBSettings.create(
                env_file_path=env_file_path,
                connection_string=cosmos_connstr,
            )

Contribution Checklist

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,
            )
```
@john0isaac john0isaac requested a review from a team as a code owner December 22, 2024 17:54
@markwallace-microsoft markwallace-microsoft added python Pull requests for the Python Semantic Kernel memory labels Dec 22, 2024
@github-actions github-actions bot changed the title Fix pydantic alias issue Python: Fix pydantic alias issue Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
memory python Pull requests for the Python Semantic Kernel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Python: Bug: Azure MongoDB Connector Assigning Pydantic Fields not by alias
2 participants