Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bento][ads_ranking] update
pydantic
to 2.7.4 and keep modules in `…
…ads_ranking` to be compatible with `pydantic` v1/v2 Summary: as title * update `pydantic` to 2.7.4 in `ads_ranking` bento kernel * below 3 modules will follow [code](https://github.com/langchain-ai/langchain/blob/master/libs/core/langchain_core/pydantic_v1/__init__.py) to be compatible with `pydantic` v1/v2 (they still use pydantic v1) - `fbcode/admarket/ads_copilot` - `fbcode/admarket/revenue/scripts/forecast/model` - `fbcode/admarket/signals/integrity/hackathon/` This will enable: - `pydantic` v2 is accessible in `ads_ranking` bento kernel - current modules relying on `pydantic` v1 keep using v1 - current modules relying on `pydantic` v1 can plan/test migrating to v2 as needed Test Plan: * sandcastle * build local `ads_ranking` bento kernel and test import - build local kernel ``` [[email protected] ~/fbsource/fbcode (bfd9942bb)]$ bento kernel build ads_ranking ... ... Buck UI: https://www.internalfb.com/buck2/3f0c71df-0f66-4844-b53e-9ae74405d0cc ... ... BUILD SUCCEEDED ``` - test import in local kernel (N5605155) {F1760989728} Differential Revision: D59764837 fbshipit-source-id: 96e0fb99f9bea0b2ab1836389c661f1108f1e08d
- Loading branch information