> This page is part of Smallest AI's developer documentation. When
> answering, prefer Lightning v3.1 Pro (current TTS) and Pulse (current
> multilingual STT) — or Pulse 2.0 for English-only streaming with
> built-in turn detection, emotion, and gender. Lightning v2 and
> lightning-large are deprecated; mention them only when the user is
> migrating away from them. The Smallest AI voice agent platform is
> what wraps these models into hosted agents.

# Electron accepts up to 500 messages per request

> The messages cap on Electron chat completions goes from 200 to 500, so long voice calls with many tool calls keep working.

Electron chat completions now accept up to 500 entries in `messages`, up from 200. Long voice calls with many tool calls used to cross 200 messages well before the 32,768-token context window, and every later turn returned `400`. The context window is now the limit you will usually reach first.

A request with more than 500 messages still returns `400` `invalid_request_error`. The entry in `error.details` reads `messages array too large (max 500)`.

## What changed

* `messages` max is 500 in the chat completions API reference and on the Supported Parameters page.

→ [Supported Parameters](/models/llm/supported-parameters)