chatgpt-vscode
chatgpt-vscode copied to clipboard
Cannot use 01_preview beacuse max_tokens is not in the model
Verify it's not a duplicate bug report
- [x] I searched for similar bugs reported on GitHub and nobody has reported a similar issue. Search all issuees.
- [x] I read Troubleshooting guide on Readme and there is not a guide on how to solve my problem.
Describe the Bug
- change model to o1_preview
- ask a question
Please tell us if you have customized any of the extension settings or whether you are using the defaults.
No
Additional context
As I understand it max_tokens is replaced with max_completion_tokens in o1
Hi, same problem here. I have the following message : "Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead.",
full output :
HTTP 400 Bad Request. You may have exhausted your OpenAI subscription allowance or have an expired account. You can clear your API Key from VS Code's secrets storage with Genie: Clear API Key command. Check your allowance and account's expiration date here: https://platform.openai.com/account/usage
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" } }
same here
same here....
same, please fix
+1 on this issue
same here, please fix
Yup. Same. Still happening. o1 (Pro in particular) is pretty amazing at giving me the right answer with minimal issues. Are y'all looking into this yet?