bentoml / BentoML

The easiest way to serve AI apps and models - Build Model Inference APIs, Job queues, LLM apps, Multi-model pipelines, and more!
https://bentoml.com
Apache License 2.0
7.18k stars 793 forks source link

fix: pin pydantic to < 2.10 and restore cwd when building bento #5093

Closed frostming closed 5 days ago

frostming commented 6 days ago

Signed-off-by: Frost Ming me@frostming.com

What does this PR address?

Fixes #(issue)

Before submitting:

aarnphm commented 6 days ago

what was the issue for this?

frostming commented 6 days ago

what was the issue for this?

When we build bento in Python code, it should better restore the cwd or it may cause problems, especially when the build ctx is a temp dir and gets destroyed after done.