Class PictureDescriptionApi
java.lang.Object
ai.docling.serve.api.convert.request.options.PictureDescriptionApi
Configuration options for picture description API integration.
This class encapsulates settings for making API calls to describe pictures,
including URL, headers, parameters, timeout, concurrency, and custom prompts.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for creatingPictureDescriptionApiinstances. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull PictureDescriptionApi.Builderbuilder()@Nullable IntegerMaximum number of concurrent requests to the API.Headers used for calling the API endpoint.Model parameters.@Nullable StringPrompt used when calling the vision-language model.@Nullable DurationTimeout for the API request.@NonNull URIgetUrl()Endpoint which accepts openai-api compatible requests.@NonNull PictureDescriptionApi.Builder@NonNull StringtoString()
-
Method Details
-
builder
-
toBuilder
-
getUrl
Endpoint which accepts openai-api compatible requests.- Returns:
- the API endpoint URL
-
getHeaders
Headers used for calling the API endpoint. For example, it could include authentication headers.- Returns:
- the map of HTTP headers
-
getParams
Model parameters.- Returns:
- the map of model parameters
-
getTimeout
Timeout for the API request.- Returns:
- the timeout duration, or null if not specified
-
getConcurrency
Maximum number of concurrent requests to the API.- Returns:
- the maximum concurrency, or null if not specified
-
getPrompt
Prompt used when calling the vision-language model.- Returns:
- the prompt text, or null if not specified
-
toString
-