-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Labels
kind:bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behavior
Description
Before submitting your bug report
- I believe this is a bug. I'll try to join the Continue Discord for questions
- I'm not able to find an open issue that reports the same bug
- I've seen the troubleshooting guide on the Continue Docs
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
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"
}
}
Metadata
Metadata
Assignees
Labels
kind:bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behavior
Type
Projects
Status
Done