How to render GPT api responce

I’m using the Playground often, and when the GPT output includes Markdown or LaTeX, it is provided in the text format.
Of course, this is expected behavior, however, for my personal use, I would like to see a rendered output.

Maybe, there is some online tool, or library, that can help me to see the output as in chat.openai?

Hi and welcome to the Dev Community!

I use Streamlit for any chat-based demos or stuff I do.
Using st.markdown() will display any Markdown text in the manner you’re looking for.

You’ll have to actually call the API instead of using the playground though.