O1 API doesn't separate code blocks with three backticks

While using other models with the API, code blocks are typically separated by three backticks. However, o1-2024-12-17 does not do this. Therefore, I need to add the instruction ‘Separate code blocks with three backticks,’ which feels somewhat odd.

Did you add Formatting re-enabled to your developer prompt as written in the documentation?

  • Markdown formatting: Starting with o1-2024-12-17, o1 models in the API will avoid generating responses with markdown formatting. To signal to the model when you do want markdown formatting in the response, include the string Formatting re-enabled on the first line of your developer message.
4 Likes