Skip to main content

Through options

Through a message

A system message becomes options.systemPrompt automatically:
Equivalent. When both are present, the explicit options.systemPrompt wins.

Writing one that works

Even with desktop headroom, the models here are small. Short, concrete instructions land; long personas do not.
Naming the exact output shape usually holds:
For a guaranteed shape rather than a requested one, use structured output.

Reuse

Keeping these in the main process rather than the renderer means a settings change does not need a window reload.