Skip to content

Continue does not support Azure OpenAI o3-mini and o-4mini #5872

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

Open
3 tasks done
yazon opened this issue May 28, 2025 · 0 comments
Open
3 tasks done

Continue does not support Azure OpenAI o3-mini and o-4mini #5872

yazon opened this issue May 28, 2025 · 0 comments
Assignees
Labels
kind:bug Indicates an unexpected problem or unintended behavior

Comments

@yazon
Copy link

yazon commented May 28, 2025

Before submitting your bug report

Relevant environment info

- OS: Windows 10
- Continue version: 1.0.10
- IDE version: VS Code 1.100.2
- Model: Azure OpenAI o3-mini/o4-mini

Description

It looks that Azure OpenAI connection does not support o3-mini and o4-mini models. gpt-4o and gpt-4.1 works well. It may be related to the Responses API instead of Chat Completions API.

To reproduce

Image

Log output

Error handling webview message: {
  "msg": {
    "messageId": "4125bde5-336c-4e88-8b8b-38a8fd0c6342",
    "messageType": "llm/streamChat",
    "data": {
      "completionOptions": {},
      "title": "o4-mini",
      "messages": [
        {
          "role": "system",
          "content": "<important_rules>\n  You are in chat mode.\n\n  If the user asks to make changes to files offer that they can use the Apply Button on the code block, or switch to Agent Mode to make the suggested updates automatically.\n  If needed consisely explain to the user they can switch to agent mode using the Mode Selector dropdown and provide no other details.\n\n  Always include the language and file name in the info string when you write code blocks.\n  If you are editing \"src/main.py\" for example, your code block should start with ' src/main.py'\n\n  When addressing code modification requests, present a concise code snippet that\n  emphasizes only the necessary changes and uses abbreviated placeholders for\n  unmodified sections. For example:\n\n   /path/to/file\n  // ... existing code ...\n\n  {{ modified code here }}\n\n  // ... existing code ...\n\n  {{ another modification }}\n\n  // ... rest of code ...\n  \n\n  In existing files, you should always restate the function or class that the snippet belongs to:\n\n   /path/to/file\n  // ... existing code ...\n\n  function exampleFunction() {\n    // ... existing code ...\n\n    {{ modified code here }}\n\n    // ... rest of function ...\n  }\n\n  // ... rest of code ...\n  \n\n  Since users have access to their complete file, they prefer reading only the\n  relevant modifications. It's perfectly acceptable to omit unmodified portions\n  at the beginning, middle, or end of files using these \"lazy\" comments. Only\n  provide the complete file when explicitly requested. Include a concise explanation\n  of changes unless the user specifically asks for code only.\n\n</important_rules>"
        },
        {
          "role": "user",
          "content": [
            {
              "type": "text",
              "text": "Hi"
            }
          ]
        },
        {
          "role": "assistant",
          "content": ""
        }
      ]
    }
  }
}

Error: HTTP 400 Bad Request from https://xxxxyyyyyzzz/openai/deployments/o4-mini/chat/completions?api-version=2024-12-01-preview

{
  "error": {
    "message": "Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead.",
    "type": "invalid_request_error",
    "param": "max_tokens",
    "code": "unsupported_parameter"
  }
}
@sestinj sestinj self-assigned this May 28, 2025
@dosubot dosubot bot added the kind:bug Indicates an unexpected problem or unintended behavior label May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Indicates an unexpected problem or unintended behavior
Projects
Status: Todo
Development

No branches or pull requests

2 participants