Class VlmModelApi
java.lang.Object
ai.docling.serve.api.convert.request.options.VlmModelApi
API details for using a vision-language model for the VLM pipeline.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull VlmModelApi.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 ResponseFormatType of response generated by the model.@Nullable IntegergetScale()Scale factor of the images used.@Nullable DurationTimeout for the API request.@Nullable URIgetUrl()Endpoint which accepts openai-api compatible requests.@NonNull VlmModelApi.Builder@NonNull StringtoString()
-
Method Details
-
builder
-
toBuilder
-
getUrl
Endpoint which accepts openai-api compatible requests.- Returns:
- the API endpoint URL, or null if not specified
-
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
-
getScale
Scale factor of the images used.- Returns:
- the image scale factor, or null if not specified
-
getResponseFormat
Type of response generated by the model.- Returns:
- the response format, or null if not specified
-
toString
-