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.15k stars 791 forks source link

feature: JSON(pydantic=PydanticModel, sequence=True). -> List[PydanticModel] #3194

Closed KimSoungRyoul closed 1 year ago

KimSoungRyoul commented 2 years ago

Feature request

Hi Is it not intentionally supporting the Pydantic model Type which is wrapped as a Sequence Type?

Motivation

No response

Other

No response

Plozano94 commented 1 year ago

Would be nice, I cant find the best way to do this. Did you achieve it?

aarnphm commented 1 year ago

Hi @KimSoungRyoul, after a quick discussion internal, we are going to add two new IO descriptor, bentoml.io.PydanticModel and bentoml.io.AttrsClass, that extends the functionality of JSON and support newer feature.

I think that having support sequence is nice, lets make a new feature request for it.

Will close this in place of the new one #3929