continuedev / continuedev/continue

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

Open
#4,191 3 comments 3 reactions 1 assignee View on GitHub

@RomneyDa is already working on this.

Since Feb 16, 2025.

area:chat ide:vscode kind:bug needs-triage os:windows
Dominant language
TypeScript
Stars
36k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.