Generate tokens as a stream when calling predict

OS 3.0.0/RHEL 8

Hi all, I was wondering how to call an LLM from within OpenSearch and get the result as a stream of tokens. I appreciate your help.

Thanks