chatgpt-vscode icon indicating copy to clipboard operation
chatgpt-vscode copied to clipboard

Cannot use 01_preview beacuse max_tokens is not in the model

Open rudvfaden opened this issue 10 months ago • 7 comments

Verify it's not a duplicate bug report

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

rudvfaden avatar Jan 24 '25 09:01 rudvfaden

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" } }

KarmaGame33 avatar Jan 28 '25 12:01 KarmaGame33

same here

rupert-neologik avatar Feb 04 '25 14:02 rupert-neologik

same here....

lenusch avatar Feb 06 '25 14:02 lenusch

same, please fix

jamesarm97 avatar Feb 10 '25 16:02 jamesarm97

+1 on this issue

jobizzness avatar Feb 17 '25 10:02 jobizzness

same here, please fix

jacekjarzab avatar Feb 21 '25 08:02 jacekjarzab

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?

qmanning avatar Mar 24 '25 17:03 qmanning