explain-error-plugin icon indicating copy to clipboard operation
explain-error-plugin copied to clipboard

Azure OpenAI provider hardcodes `reasoning.effort: "minimal"`, which gpt-5.6 models reject (400 unsupported_value)

Open gsanjeev432 opened this issue 2 weeks ago • 1 comments

Description

AzureOpenAIProvider.addGpt5LatencyControls() sends reasoning.effort = "minimal" to any deployment whose name starts with gpt-5 (line 398):

payload.putObject("reasoning").put("effort", "minimal");

Newer GPT-5.x models such as gpt-5.6-luna-2026-07-09 no longer accept minimal, so every request to them fails, including Test Configuration.

Steps to reproduce

  1. Configure the Azure OpenAI provider with a gpt-5.6-luna-2026-07-09 deployment.
  2. Click Test Configuration.

Actual

Configuration test failed: Azure OpenAI request failed with status 400: {
  "error": {
    "message": "Unsupported value: 'minimal' is not supported with the 'gpt-5.6-luna-2026-07-09' model. Supported values are: 'none', 'low', 'medium', 'high', 'xhigh', and 'max'.",
    "type": "invalid_request_error",
    "param": "reasoning.effort",
    "code": "unsupported_value"
  }
}

Expected

The test and explanation requests succeed.

Suggested fix

  • Make reasoning effort a configurable field on the provider (default empty), or
  • Leave reasoning.effort out unless it's set, or fall back to low or none when the model rejects minimal.

The same method also forces text.verbosity: "low", which may be worth making optional too.

Environment

  • Plugin version: 229.v2a_5eb_46b_d79d (latest at time of filing)
  • Jenkins version: 2.541.3
  • Azure OpenAI API version: 2024-12-01-preview
  • Model: gpt-5.6-luna-2026-07-09

gsanjeev432 avatar Nov 19 '26 09:11 gsanjeev432

Hi @gsanjeev432

thanks for reporting the issue

Would you like to send a pull request to fix it?

shenxianpeng avatar Nov 19 '26 09:11 shenxianpeng