Max output tokens

Overview

A per-chat max output tokens override in the model picker's options panel. It lets you cap how many tokens a model may generate per turn, instead of relying on each provider's default (which may be very large for reasoning models). It is stored on the chat record, so it travels with the chat and applies to whichever model the chat uses. Leaving the field blank uses the provider default.

Usage

  1. Tap the model trigger in the chat head to open the model picker.

  2. Tap the Model options gear button beside the search input.

  3. Enter a positive integer (e.g. 2048) in Max output tokens, or clear it to fall back to the provider default.

  4. Press Enter or blur the field to save. The value is written with PATCH /api/chats/:id ({ maxOutputTokens }) and applies to the next turn.

    The value is per chat, not per model: switching models keeps the same cap (or you can clear it for a specific chat). Blank means "no override — use the provider default."

Behavior