Electron implements the OpenAI Chat Completions wire format. Most request fields pass through to the model verbatim. This page is the authoritative list of which fields are supported, which are explicitly rejected, and which carry Electron-specific semantics.
Unrecognized fields are accepted by the schema and forwarded to the model. They may be ignored if the model doesn’t recognize them.
These return HTTP 400 with invalid_request_error:
Exceeding any of these returns HTTP 400. The error.message will name the offending field.
Beyond the standard OpenAI response shape, Electron returns these additional fields:
For tool calls, Electron’s assistant message also typically includes a short filler phrase in content alongside tool_calls — see Tool Calling: the filler-phrase pattern.
Everything else — request shape, response shape, streaming format, error envelope — matches OpenAI’s. See Migrate from OpenAI for the side-by-side code diff.