Skip to navigation

Electron accepts up to 500 messages per request

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