Package org.apache.tika.inference
Class ImageEmbeddingConfig.RuntimeConfig
java.lang.Object
org.apache.tika.inference.ImageEmbeddingConfig
org.apache.tika.inference.ImageEmbeddingConfig.RuntimeConfig
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ImageEmbeddingConfig
Runtime-only config that prevents modification of security-sensitive
and cost-sensitive fields (
baseUrl, apiKey,
model) at parse time.
These fields must be set at initialization via the config file.
If a runtime ParseContext JSON config attempts to set them,
the overridden setters throw TikaConfigException.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.tika.inference.ImageEmbeddingConfig
ImageEmbeddingConfig.RuntimeConfig -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.tika.inference.ImageEmbeddingConfig
getApiKey, getBaseUrl, getMaxFileSizeToEmbed, getMinFileSizeToEmbed, getModel, getOutputField, getTimeoutSeconds, isSkipEmbedding, setMaxFileSizeToEmbed, setMinFileSizeToEmbed, setOutputField, setSkipEmbedding, setTimeoutSeconds
-
Constructor Details
-
RuntimeConfig
public RuntimeConfig()
-
-
Method Details
-
setBaseUrl
- Overrides:
setBaseUrlin classImageEmbeddingConfig- Throws:
TikaConfigException
-
setApiKey
- Overrides:
setApiKeyin classImageEmbeddingConfig- Throws:
TikaConfigException
-
setModel
- Overrides:
setModelin classImageEmbeddingConfig
-