# AI Provider (Custom / OpenAI-compatible): temperature parameter causes errors with GPT-5+ models

**URL:** https://community.zammad.org/t/ai-provider-custom-openai-compatible-temperature-parameter-causes-errors-with-gpt-5-models/21389
**Category:** Technical assistance
**Created:** [October 14, 2026, 12:46am UTC](https://community.zammad.org/t/ai-provider-custom-openai-compatible-temperature-parameter-causes-errors-with-gpt-5-models/21389 "2026-10-14T00:46:30Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Bmarchese](https://community.zammad.org/user_avatar/community.zammad.org/bmarchese/32/12129_2.png) [@Bmarchese](https://community.zammad.org/u/Bmarchese)
#### Post date: [October 14, 2026, 12:46am UTC](https://community.zammad.org/t/ai-provider-custom-openai-compatible-temperature-parameter-causes-errors-with-gpt-5-models/21389/1 "2026-10-14T00:46:30Z")

</div>

### Infos:

- Used Zammad version: 7.1.3-1789383560.f56648e.el9
- Used Zammad installation type: package
- Operating system: Ubuntu
- Browser + version: Firefox

Description:  
When using the AI Provider feature with the **Custom (OpenAI-compatible)** option pointing to Azure AI Foundry, requests fail for OpenAI models from GPT-5 onward (including reasoning models), because Zammad always sends a `temperature` value in the request body.

### Expected behavior:

- Zammad should allow the request to succeed with these models.

### Actual behavior:

**Request sent by Zammad**

```auto
{
  "model": "gpt-5.6-luna",
  "messages": [
    { "role": "user", "content": "Hello" }
  ],
  "temperature": 0.1,
  "stream": false
}

```

**Response from the API (HTTP 400)**

```auto
{
  "error": {
    "message": "Unsupported value: 'temperature' does not support 0.1 with this model. Only the default (1) value is supported.",
    "type": "invalid_request_error",
    "param": "temperature",
    "code": "unsupported_value"
  }
}

```

**Problem**

Starting with GPT-5, OpenAI models no longer accept custom values for `temperature` (only the default value of `1` is supported). Since Zammad hard-codes `temperature: 0.1` in the request, every call to these models fails, making it impossible to use the AI features with current OpenAI models through the custom provider.

### Steps to reproduce the behavior:

- Create a gpt-5+ model deplyment in Microsoft AI Foundry

- Create a custom AI provider in Zammad, using the Foundry URL (http://\*\*\*\*\*\*.openai.azure.com), Model and Token

- Save the changes.

---

<div class="post-metadata">

### Author: ![dominikklein](https://community.zammad.org/user_avatar/community.zammad.org/dominikklein/32/8144_2.png) [@dominikklein](https://community.zammad.org/u/dominikklein)
#### Post date: [October 14, 2026, 6:05am UTC](https://community.zammad.org/t/ai-provider-custom-openai-compatible-temperature-parameter-causes-errors-with-gpt-5-models/21389/2 "2026-10-14T06:05:17Z")

</div>

Normally, we have already added a handling for that in the different providers, but maybe some edge cases are not working. We will check it.

---

<div class="post-metadata">

### Author: ![dominikklein](https://community.zammad.org/user_avatar/community.zammad.org/dominikklein/32/8144_2.png) [@dominikklein](https://community.zammad.org/u/dominikklein)
#### Post date: [October 14, 2026, 6:08am UTC](https://community.zammad.org/t/ai-provider-custom-openai-compatible-temperature-parameter-causes-errors-with-gpt-5-models/21389/3 "2026-10-14T06:08:52Z")

</div>

Is it failing directly on save or later when you want to use a feature? Did you change the configuration from another value?

---

<div class="post-metadata">

### Author: ![dominikklein](https://community.zammad.org/user_avatar/community.zammad.org/dominikklein/32/8144_2.png) [@dominikklein](https://community.zammad.org/u/dominikklein)
#### Post date: [October 14, 2026, 10:00am UTC](https://community.zammad.org/t/ai-provider-custom-openai-compatible-temperature-parameter-causes-errors-with-gpt-5-models/21389/4 "2026-10-14T10:00:15Z")

</div>

Or which specific model are you using?

---

<div class="post-metadata">

### Author: ![dominikklein](https://community.zammad.org/user_avatar/community.zammad.org/dominikklein/32/8144_2.png) [@dominikklein](https://community.zammad.org/u/dominikklein)
#### Post date: [October 14, 2026, 10:03am UTC](https://community.zammad.org/t/ai-provider-custom-openai-compatible-temperature-parameter-causes-errors-with-gpt-5-models/21389/5 "2026-10-14T10:03:41Z")

</div>

You should maybe also try first 7.2 because it could be that we already improved the situation:

> <https://github.com/zammad/zammad/commit/ebe5e9b519b11cc5ff7a279cac22d08ead2b7d84>
>
> Approved-by: Dusan Vuckovic \<dv@zammad.com\>

---

<div class="post-metadata">

### Author: ![Bmarchese](https://community.zammad.org/user_avatar/community.zammad.org/bmarchese/32/12129_2.png) [@Bmarchese](https://community.zammad.org/u/Bmarchese)
#### Post date: [October 14, 2026, 12:42pm UTC](https://community.zammad.org/t/ai-provider-custom-openai-compatible-temperature-parameter-causes-errors-with-gpt-5-models/21389/6 "2026-10-14T12:42:17Z")

</div>

it is failing immediately after I save the provider settings

---

<div class="post-metadata">

### Author: ![MrGeneration](https://community.zammad.org/user_avatar/community.zammad.org/mrgeneration/32/9260_2.png) [@MrGeneration](https://community.zammad.org/u/MrGeneration)
#### Post date: [October 14, 2026, 12:43pm UTC](https://community.zammad.org/t/ai-provider-custom-openai-compatible-temperature-parameter-causes-errors-with-gpt-5-models/21389/7 "2026-10-14T12:43:14Z")

</div>

Is that also for the latest 7.2.2? The productionlog might contain useful information.

---

<div class="post-metadata">

### Author: ![Bmarchese](https://community.zammad.org/user_avatar/community.zammad.org/bmarchese/32/12129_2.png) [@Bmarchese](https://community.zammad.org/u/Bmarchese)
#### Post date: [October 14, 2026, 12:46pm UTC](https://community.zammad.org/t/ai-provider-custom-openai-compatible-temperature-parameter-causes-errors-with-gpt-5-models/21389/8 "2026-10-14T12:46:44Z")

</div>

but this commit is for anthropic models. I’m having this problem with all the GPT models after GPT-5.

---

<div class="post-metadata">

### Author: ![Bmarchese](https://community.zammad.org/user_avatar/community.zammad.org/bmarchese/32/12129_2.png) [@Bmarchese](https://community.zammad.org/u/Bmarchese)
#### Post date: [October 14, 2026, 12:47pm UTC](https://community.zammad.org/t/ai-provider-custom-openai-compatible-temperature-parameter-causes-errors-with-gpt-5-models/21389/9 "2026-10-14T12:47:58Z")

</div>

no, my version is 7.1.3

---

<div class="post-metadata">

### Author: ![MrGeneration](https://community.zammad.org/user_avatar/community.zammad.org/mrgeneration/32/9260_2.png) [@MrGeneration](https://community.zammad.org/u/MrGeneration)
#### Post date: [October 14, 2026, 12:56pm UTC](https://community.zammad.org/t/ai-provider-custom-openai-compatible-temperature-parameter-causes-errors-with-gpt-5-models/21389/10 "2026-10-14T12:56:47Z")

</div>

You might want to test a supported stable. Or areyou certain nothing changed? Apart of CVEs of course.

---

<div class="post-metadata">

### Author: ![dominikklein](https://community.zammad.org/user_avatar/community.zammad.org/dominikklein/32/8144_2.png) [@dominikklein](https://community.zammad.org/u/dominikklein)
#### Post date: [October 14, 2026, 1:16pm UTC](https://community.zammad.org/t/ai-provider-custom-openai-compatible-temperature-parameter-causes-errors-with-gpt-5-models/21389/11 "2026-10-14T13:16:41Z")

</div>

> [@Bmarchese](#):
>
> it is failing immediately after I save the provider settings

The request with `"content": "Hello"` and `temperature: 0.1` is not a real AI request. It is a test Zammad sends when you save the provider settings, to find out whether the model accepts a temperature. A 400 with `unsupported_value` for `temperature` is the expected answer: Zammad then remembers that the model does not support it and leaves the temperature out of all later requests. That test request is logged because it failed, which is why it shows up right after saving.

So two questions:

1. When you click save, do you get an error message in the UI, and do the settings stay saved?
2. Does an actual AI feature (e.g. ticket summary) fail afterwards? If so, please share that log entry, it will contain the real prompt, not “Hello”.

The commit I linked is titled Anthropic, but the change is in code shared by all providers including Custom OpenAI. On 7.1 it matters for GPT models after GPT-5, so please try 7.2.2.

---

<div class="post-metadata">

### Author: ![Bmarchese](https://community.zammad.org/user_avatar/community.zammad.org/bmarchese/32/12129_2.png) [@Bmarchese](https://community.zammad.org/u/Bmarchese)
#### Post date: [October 14, 2026, 1:47pm UTC](https://community.zammad.org/t/ai-provider-custom-openai-compatible-temperature-parameter-causes-errors-with-gpt-5-models/21389/12 "2026-10-14T13:47:36Z")

</div>

ok. I understood. Thank you for your help
