Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix o1 and o3 chat code formatting #4312

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

justinmilner1
Copy link
Contributor

Description

Fixes #4191

Starting with o1-2024-12-17, the o1 and o3 models won't use markdown formatting by default: https://community.openai.com/t/o3-mini-api-markdown-formatting-issue-with-php-code/1113307

Instead, you need to include this "Formatting re-enabled" developer message to get the markdown formatting.

THIS IS UNTESTED
I don't have access to o1/o3 models for another 7 days lol If someone else wants to test this go for it, otherwise I'll test it in a week.

Copy link

netlify bot commented Feb 23, 2025

Deploy Preview for continuedev canceled.

Name Link
🔨 Latest commit a08dd9c
🔍 Latest deploy log https://app.netlify.com/sites/continuedev/deploys/67bb786b3747ab0008b3ae4c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

openai o1, o3-mini chat response does not format code blocks
1 participant