# Setting: `chatbot_max_tokens`

- **Constant:** `ConfigInterface::CHATBOT_MAX_TOKENS`
- **Category:** `chatbot`
- **Type:** `number`
- **Required:** no
- **Sensitive:** no
- **Validation:** `integer|min:1|max:8192`
- **Placeholder / default hint:** `2048`

## Description

Maximum number of tokens in AI responses

## Allowed options

_Free-form / no fixed options_

## Change via CLI

```bash
featherpanel saas getsetting chatbot_max_tokens
featherpanel saas setsetting chatbot_max_tokens "<value>"
```

## Change via API

```http
PATCH /api/admin/settings
Content-Type: application/json

{ "chatbot_max_tokens": "<value>" }
```
