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 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing import ClassVar

from pydantic import Field, SecretStr
from pydantic import ConfigDict, Field, SecretStr

from semantic_kernel.kernel_pydantic import KernelBaseSettings
from semantic_kernel.utils.experimental_decorator import experimental_class
Expand All @@ -22,3 +22,7 @@ class AzureCosmosDBSettings(KernelBaseSettings):

api: str | None = None
connection_string: SecretStr | None = Field(None, alias="AZCOSMOS_CONNSTR")
john0isaac marked this conversation as resolved.
Show resolved Hide resolved

model_config = ConfigDict(
eavanvalkenburg marked this conversation as resolved.
Show resolved Hide resolved
populate_by_name=True,
)
Loading