We are still evaluating if we would like to continue support framework API. You can continue to use the pre 1.2 ways of using framework, or with the new SDK, one can simply save the model
https://docs.bentoml.com/en/latest/guides/model-store.html
for FastAPI integration, documentation will be updated soon. for now, you can do like
this
@bentoml.service
class BentoService:
...
app = FastAPI()
BentoService.mount_asgi_app(app)