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

openai o1, o3-mini chat response does not format code blocks #4191

Open
3 tasks done
timwillhack opened this issue Feb 16, 2025 · 1 comment · May be fixed by #4312
Open
3 tasks done

openai o1, o3-mini chat response does not format code blocks #4191

timwillhack opened this issue Feb 16, 2025 · 1 comment · May be fixed by #4312
Assignees
Labels
area:chat Relates to chat interface ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior "needs-triage"

Comments

@timwillhack
Copy link

timwillhack commented Feb 16, 2025

Before submitting your bug report

Relevant environment info

- OS:Windows 10
- Continue version: 0.9.268 pre release
- IDE version: VSCode 1.97.1
- Model: 03-mini
- config.json:
  
...
{
      "title": "GPTo3 mini",
      "provider": "openai",
      "model": "o3-mini",
      
      "contextLength": 10090,
      "apiKey": "itsmineyoucanthaveit!",
      "completionOptions": {
        "maxTokens": 6096
      }
    }

Description

Image

To reproduce

See screenshot. o1 acts the same as well. Raw response:

Here's a simple JavaScript function that outputs (returns) a random number between 0 (inclusive) and 1 (exclusive):

----------------------------------------------------
function getRandomNumber() {
  return Math.random();
}

console.log(getRandomNumber());
----------------------------------------------------

Explanation:
• Math.random() is a built-in JavaScript function that returns a random floating-point number in the range 0 (inclusive) to 1 (exclusive).
• getRandomNumber() simply wraps Math.random() and returns its value.
• The console.log call prints the random number to the console.

If you need a random number within a specific range, say between a minimum value (min) and a maximum value (max), you can modify the function like this:

----------------------------------------------------
function getRandomInRange(min, max) {
  return Math.random() * (max - min) + min;
}

console.log(getRandomInRange(1, 10));  // Outputs a random number between 1 and 10
----------------------------------------------------

Feel free to adjust the code according to your needs!

Log output

@dosubot dosubot bot added area:chat Relates to chat interface ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior labels Feb 16, 2025
@DoronovIV
Copy link

DoronovIV commented Feb 21, 2025

I have the same kind of problem.

I believe the exact model version is irrelevant: got such output for o1, o3-mini and 4o.

Image

@justinmilner1 justinmilner1 linked a pull request Feb 23, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:chat Relates to chat interface ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior "needs-triage"
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants