ai-genie / chatgpt-vscode

Your best AI pair programmer in VS Code
https://marketplace.visualstudio.com/items?itemName=genieai.chatgpt-vscode
ISC License
1.22k stars 76 forks source link

o1-mini unusable : use 'max_completion_tokens' instead #193

Open TsiAizen opened 1 week ago

TsiAizen commented 1 week ago

Verify it's not a duplicate bug report

Describe the Bug

OpenAI error 400: { "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" } }

Please tell us if you have customized any of the extension settings or whether you are using the defaults.

model : o1-mini

Additional context

No response

nrbrt commented 1 day ago

I can confirm this bug. None of the o1-preview models work.