jina-ai / jina

☁️ Build multimodal AI applications with cloud-native stack
https://docs.jina.ai
Apache License 2.0
20.87k stars 2.22k forks source link

Allow to define parameters as Pydantic model, so that one can have a reach schema #5998

Closed JoanFM closed 1 year ago

JoanFM commented 1 year ago

Allow parameters to be a Pydantic model, so that the developer can enjoy a rich API when serving the model from HTTP.

Do not change the protobuf, just change plain dicts, and do the validation only at Executor level