Breaking Changes
Python Kernel Upgrade to Pydantic v2.5.2
We are happy to announce an upgrade to Pydantic v2.5.2 in our Python kernel. This update not only brings cutting-edge features and syntax enhancements from the Pydantic team but also aligns our platform with major packages like OpenAI and PromptFlow. Key improvements include:
- Streamlined Classes: The new version has simplified numerous classes, enhancing their readability and precision.
- Unified
sk_pydantic
Classes: Previously distinct classes, such asskbasemodel
,skgeneric
, andpydantic
field, have been consolidated intoskbasemodel
. Please note that aliases from earlier versions will be deprecated in the future v1 release. - Changes to Dict Functionality: The dict function in Pydantic has evolved. It is now represented as model_dump and model_dump_json, which may impact your development process.
- Alignment with Leading Technologies: The Pydantic upgrade brings SK in line with other significant technologies like OpenAI and PromptFlow, ensuring seamless integration and consistency across platforms.
For a detailed guide on migrating to Pydantic V2 and understanding these changes better, please visit Pydantic's Migration Guide.
What's Changed
- Python: Bump pyarrow from 13.0.0 to 14.0.1 in /python by @dependabot in #3443
- Python: Bump qdrant-client from 1.5.4 to 1.6.4 in /python by @dependabot in #3410
- Python: Bump openapi-core from 0.18.1 to 0.18.2 in /python by @dependabot in #3409
- Python: fix deployment name parameter when using base_url by @eavanvalkenburg in #3880
- Python: readded user agent telemetry to openai classes by @eavanvalkenburg in #3881
- Python: Bug fix in Python sample notebook 10 by @rom212 in #3595
- Python: added grounding sample as code instead of notebook by @eavanvalkenburg in #3966
- Python: Bump transformers from 4.34.0 to 4.35.2 in /python by @dependabot in #3936
- Python: extra tests and a fix for the base_url by @eavanvalkenburg in #3967
- Python: Bump black from 23.10.1 to 23.11.0 in /python by @dependabot in #3934
- Python: allow default_headers configuration and users to pass in custom AzureOpenAI/OpenAI clients. by @moonbox3 in #3903
- Python: Bump Python version to 0.4.1. Make TextMemorySkill attributes ClassVar. by @moonbox3 in #4001
Full Changelog: python-0.4.0.dev...python-0.4.1.dev