star-whale / starwhale

an MLOps/LLMOps platform
https://starwhale.ai
Apache License 2.0
208 stars 35 forks source link

chore(client): use pydantic v2 #3019

Closed jialeicui closed 11 months ago

jialeicui commented 11 months ago

Description

ref: https://docs.pydantic.dev/latest/migration/

Modules

Checklist

codecov[bot] commented 11 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (1f2320e) 82.67% compared to head (621993a) 91.89%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #3019 +/- ## ============================================ + Coverage 82.67% 91.89% +9.21% ============================================ Files 558 126 -432 Lines 30516 15036 -15480 Branches 1834 0 -1834 ============================================ - Hits 25230 13817 -11413 + Misses 4475 1219 -3256 + Partials 811 0 -811 ``` | [Flag](https://app.codecov.io/gh/star-whale/starwhale/pull/3019/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=star-whale) | Coverage Δ | | |---|---|---| | [console](https://app.codecov.io/gh/star-whale/starwhale/pull/3019/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=star-whale) | `?` | | | [controller](https://app.codecov.io/gh/star-whale/starwhale/pull/3019/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=star-whale) | `?` | | | [standalone](https://app.codecov.io/gh/star-whale/starwhale/pull/3019/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=star-whale) | `91.89% <100.00%> (-0.02%)` | :arrow_down: | | [unittests](https://app.codecov.io/gh/star-whale/starwhale/pull/3019/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=star-whale) | `91.89% <100.00%> (+0.26%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=star-whale#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

tianweidut commented 11 months ago

@anda-ren after this pr, can we use the standard gradio lib for StableDiffusionWebUI example?