Hello, When I create an API using `bentoml.api` li...
# ask-for-help
k
Hello, When I create an API using
bentoml.api
like this:
Copy code
python


@bentoml.api(input_spec=AdsGenerationParams)
def generate(self, **params: t.Any) -> str:
I can send a dictionary in JSON format like this:
Copy code
json
Copy code
{
  "prompt": "xxxx",
  "data": [......]
}
However, is there a way to directly receive an array of JSON objects like this?
Copy code
json
[
Copy code
{
    "data": "aa1"
  },
  {
    "data": "aa2"
  }
]
Is it true that b`entoml.api` with
batchable=False
cannot directly receive array data and can only accept arrays as values inside a dictionary?