Help with render GPT answer on web

Community, :wave:. I need your advice. Tell me, what is the best way to render answers from ChatGPT in the web interface? I’m trying to understand the easiest way to process and consider all cases: code, tags, etc.

By “the web interface”, whose web interface do you mean? Your own, or OpenAI’s? Also did you mean responses from the API or elsewhere?

Hello! You may find this library helpful. It includes a Flask example that incorporates Jinja. To find it, you can search for “MeSilicon7/LexiStreamKit” on Github.

If async, you may use webhooks as you can add more info and steps in between and need not be dependent on the response from LLM to show or preview data. Cheers!