How to format the responses from the assistant api similar to what it looks like in the playground

I want to be able to recieve the response already as markdown(for example) and convert it with pyton markdown. If that is not possible I would like to know the best way to format it in code.

Have you tried to just tell the model to reply in markdown? :thinking:

Markdown (gfm) should be one of the easiest formats to instruct, because it looks like that’s what the latest models are trained for.

1 Like