Skip to content

OpenAI requests fail with "Unsupported parameter: 'reasoning_effort' is not supported with this model" #1203

@Akhundoff

Description

@Akhundoff

What happened?

When using ProxyAI in PhpStorm with an OpenAI API token, requests fail with the following error:

Unsupported parameter: 'reasoning_effort' is not supported with this model

This happens in at least two places:

  1. Generating commit messages
  2. Selecting a code block and asking a question about it

The OpenAI token is successfully saved in the plugin settings, but actual requests fail.


Error message

Error from client: CodeGPTOpenAILLMClient
Status code: 400
Error body: {
  "error": {
    "message": "Unsupported parameter: 'reasoning_effort' is not supported with this model.",
    "type": "invalid_request_error",
    "param": "reasoning_effort",
    "code": "unsupported_parameter"
  }
}

### Relevant log output or stack trace

```shell
Unsupported parameter: 'reasoning_effort' is not supported with this model

Steps to reproduce

Open PhpStorm
Configure ProxyAI / CodeGPT plugin with a valid OpenAI API token
Try to generate a commit message
or
Select a code block and send a prompt/question to OpenAI
Observe the error

CodeGPT version

3.7.5-241.1

Operating System

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions