# Autopilot - Config key mismatch - 'model' vs 'chatModel'

**URL:** https://discourse.getcockpit.com/t/autopilot-config-key-mismatch-model-vs-chatmodel/3270
**Category:** Addons
**Created:** [November 30, 2025, 9:28am UTC](https://discourse.getcockpit.com/t/autopilot-config-key-mismatch-model-vs-chatmodel/3270 "2025-11-30T09:28:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mickov3r](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/mickov3r/32/1597_2.png) [@mickov3r](https://discourse.getcockpit.com/u/mickov3r)
#### Post date: [November 30, 2025, 9:28am UTC](https://discourse.getcockpit.com/t/autopilot-config-key-mismatch-model-vs-chatmodel/3270/1 "2025-11-30T09:28:45Z")

</div>

I found a discrepancy between the documentation and implementation regarding the configuration key for the chat model.

**In the code** (`/addons/Autopilot/bootstrap.php`, line 31):

```php
'chatModel' => function() {
    return $this->app->retrieve('autopilot/openAI/chatModel', 'gpt-5-nano');
},

```

**In the documentation** (`/addons/Autopilot/README.md`, line 47 and 75):

```php
'model' => 'gpt-4o-mini', // Default chat model

```

The code expects the key `chatModel`, but the documentation instructs users to configure it using `model`. This means anyone following the README to override the default model would have their setting ignored.

---

<div class="post-metadata">

### Author: ![artur](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/artur/32/4_2.png) [@artur](https://discourse.getcockpit.com/u/artur)
#### Post date: [December 29, 2025, 12:44am UTC](https://discourse.getcockpit.com/t/autopilot-config-key-mismatch-model-vs-chatmodel/3270/2 "2025-12-29T00:44:00Z")

</div>

Thanks! Will be fixed with the next release!
