Configure an LLM for Pro, Pro Plus, or Admin accounts.
Syntax
LLM(system_prompt, *, timeout_ms=10000, max_retries=1)Constructor parameters
| Name | Description |
|---|---|
system_promptString | Instructions sent with each call. A non-blank string of at most 4,000 UTF-16 units. Required · Positional or named No default |
timeout_msInt | Request budget in milliseconds, from 1,000 to 30,000. Includes image preparation, retries and model fallback. Optional · Keyword only Default: 10000 |
max_retriesInt | Additional attempts for temporary provider failures, from 0 to 2. Optional · Keyword only Default: 1 |
Returns
Example
Not documented