Class VlmModelApi.Builder
java.lang.Object
ai.docling.serve.api.convert.request.options.VlmModelApi.Builder
- Enclosing class:
- VlmModelApi
Builder for creating
VlmModelApi instances.
Generated by Lombok's @Builder annotation.
Builder methods:
url(URI)- Set the API endpoint URLheader(String, Object)- Add a single HTTP header (use with @Singular)headers(Map<String, Object>)- Set the map of HTTP headersparam(String, Object)- Add a single parameter (use with @Singular)params(Map<String, Object>)- Set the map of model parameterstimeout(Duration)- Set the timeout durationconcurrency(Integer)- Set the maximum concurrencyprompt(String)- Set the prompt textscale(Integer)- Set the image scale factorresponseFormat(ResponseFormat)- Set the response format
-
Method Summary
Modifier and TypeMethodDescription@NonNull VlmModelApibuild()@NonNull VlmModelApi.Builder@NonNull VlmModelApi.Builder@NonNull VlmModelApi.Builderconcurrency(@Nullable Integer concurrency) Maximum number of concurrent requests to the API.@NonNull VlmModelApi.Builder@NonNull VlmModelApi.Builder@NonNull VlmModelApi.Builder@NonNull VlmModelApi.Builder@NonNull VlmModelApi.BuilderPrompt used when calling the vision-language model.@NonNull VlmModelApi.BuilderresponseFormat(@Nullable ResponseFormat responseFormat) Type of response generated by the model.@NonNull VlmModelApi.BuilderScale factor of the images used.@NonNull VlmModelApi.BuilderTimeout for the API request.@NonNull StringtoString()@NonNull VlmModelApi.BuilderEndpoint which accepts openai-api compatible requests.
-
Method Details
-
url
Endpoint which accepts openai-api compatible requests.- Parameters:
url- the API endpoint URL, or null if not specified- Returns:
this.
-
header
-
headers
public @NonNull VlmModelApi.Builder headers(@NonNull Map<? extends String, ? extends Object> headers) -
clearHeaders
-
param
-
params
-
clearParams
-
timeout
Timeout for the API request.- Parameters:
timeout- the timeout duration, or null if not specified- Returns:
this.
-
concurrency
Maximum number of concurrent requests to the API.- Parameters:
concurrency- the maximum concurrency, or null if not specified- Returns:
this.
-
prompt
Prompt used when calling the vision-language model.- Parameters:
prompt- the prompt text, or null if not specified- Returns:
this.
-
scale
Scale factor of the images used.- Parameters:
scale- the image scale factor, or null if not specified- Returns:
this.
-
responseFormat
Type of response generated by the model.- Parameters:
responseFormat- the response format, or null if not specified- Returns:
this.
-
build
-
toString
-