context
to be initialized
(for authentication).
- Input as JSON dict (like above) or pydantic model.
- Automatic parsing of the response into an pydantic model using the
output_model
argument. predict_async
(recommended) orpredict_async
.- Streaming responses using
predict_async_stream
which returns an async bytes iterator. - Customized with
RPCOptions
.