Please fix the formatting for input code
I started a few threads where I provided code in the input box and I think it took python comments as markdown and started displaying the code in a weird way.

I started a few threads where I provided code in the input box and I think it took python comments as markdown and started displaying the code in a weird way.

Log in to comment and vote
Comments3
Amber Beach
Something related also occurs in the reasoning tokens (in this case for R1 OpenRouter). The model does not properly tag the code as such and therefore the comments are rendered as headings. Not sure if there is a great way to fix this, but it happened to me multiple times now, so I wanted to report.
Mark Florkowski
will look into this as well. Might be able to tweak the prompt to get models to correctly output codeblocks
Mark Florkowski
Did you place the code in a markdown codeblock or just paste it in?