Electron — Chat Completions
Electron — Chat Completions
Authentication
Header authentication of the form Bearer <token>
Request
Model ID. Currently only "electron".
Maximum output tokens. Combined input + output context ceiling is 32,768.
When true, response is text/event-stream. See the
Streaming guide.
Tool / function calling definitions. Standard OpenAI shape. See Tool Calling.
Output shape. {type: "text"} (default) or {type: "json_object"}.
Best-effort determinism.
Opaque end-user identifier. Not interpreted by Electron.
Response headers
Response
Non-streaming: standard OpenAI chat.completion object.
Streaming (stream: true): text/event-stream SSE — each
event is a chat.completion.chunk delta, terminated by
data: [DONE].

