How can I get Assistant to format tables like ChatGPT?

Hi, any advice please on how to get my assistant to rspond tabular data in that nice HTML-looking table format that chat-GPT produces?
What my assistant produces is a load of ASCII table (numbers | seperated | by | vertical | bars | ) structure and its very hard to read, and not professional looking at all! Grateful for pointers :slight_smile:

Hi @aukinfo,

The assistant is giving you a nicely formatted table in markdown. All you have to do is render the markdown.

You can do so by using the markdown library in Python, marked in TS/JS, or react-markdown for rendering markdown in React.

2 Likes

Thanks @sps for pointing me in the right direction. I have successfully used react-markdown and remark-gfm to format the tables now.

2 Likes