explain-error-plugin
explain-error-plugin copied to clipboard
Azure OpenAI provider hardcodes `reasoning.effort: "minimal"`, which gpt-5.6 models reject (400 unsupported_value)
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
- Configure the Azure OpenAI provider with a
gpt-5.6-luna-2026-07-09deployment. - 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.effortout unless it's set, or fall back tolowornonewhen the model rejectsminimal.
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
Hi @gsanjeev432
thanks for reporting the issue
Would you like to send a pull request to fix it?