To configure credentials, you can set environment variables directly in your code, use theDocumentation Index
Fetch the complete documentation index at: https://docs.perceptron.inc/llms.txt
Use this file to discover all available pages before exploring further.
configure() helper to set them for the process, or use the config() context manager to set them for a single context.
Environment variables
If you’re setting environment variables directly, you can set the following. The SDK will use them at runtime:Direct calls
If you’re using theconfigure() helper, you can pass in the credentials directly:
Context manager
You can also use theconfig() context manager when you need a one-off override—for example, to bump timeouts or retries around a specific call:
Configurable fields
Fields forconfigure() as a standalone function or the config() context manager:
| Setting | Default | Description |
|---|---|---|
base_url | None | Override the Perceptron endpoint (e.g., edge gateway). |
api_key | None | API key to send with requests. |
provider | None → auto-detected ("fal" when relevant) | Transport/provider name. |
model | None | Preferred model ID if your provider exposes multiple versions. |
timeout | 60.0 | Per-request timeout in seconds. |
retries | 3 | Automatic retry attempts on transient errors. |
strict | False | Enforce strict parsing (raises on schema mismatches). |
allow_multiple | False | Allow multiple responses when the task permits it. |
warn_on_implicit_anchor | True | Emit warnings if prompts rely on implicit spatial anchors. |
temperature | None | Generation temperature for text answers. |
max_tokens | None | Token cap for generations. |
top_p | None | Nucleus sampling parameter. |
top_k | None | Limits sampling to the top-k candidates when set. |
max_buffer_bytes | None | Caps streamed buffer size (useful for long outputs). |
resize_max_side | None | Downscale images so the longest side matches this value before upload. |
auto_coerce_paths | False | Automatically open local file paths passed into SDK helpers. |
configure / context manager → environment variables → library defaults.