Class VLMOCRConfig.RuntimeConfig

java.lang.Object
org.apache.tika.parser.vlm.VLMOCRConfig
org.apache.tika.parser.vlm.VLMOCRConfig.RuntimeConfig
All Implemented Interfaces:
Serializable
Enclosing class:
VLMOCRConfig

public static class VLMOCRConfig.RuntimeConfig extends VLMOCRConfig
Runtime-only config that prevents modification of security-sensitive and cost-sensitive fields at parse time.

Always blocked: baseUrl, apiKey, model, maxTokens, allowRuntimePrompt.

Blocked by default (opt-in): prompt — set allowRuntimePrompt=true at initialization time to permit per-request prompt overrides.

The model field is unconditionally blocked because there is no legitimate reason to swap models per-request; if a different model is needed, configure a separate parser instance.

The maxTokens field cannot be raised above the init-time value at runtime to prevent cost attacks on paid API endpoints.

See Also: