Class OllamaApi.ChatRequest.Builder
java.lang.Object
org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Builder
- Enclosing class:
- OllamaApi.ChatRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Disable thinking mode for the model.Enable thinking mode for the model.messages(List<OllamaApi.Message> messages) options(OllamaChatOptions options) stream(boolean stream) think(ThinkOption think) Set thinking level to "high" (for GPT-OSS model).thinkLow()Set thinking level to "low" (for GPT-OSS model).Set thinking level to "medium" (for GPT-OSS model).tools(List<OllamaApi.ChatRequest.Tool> tools)
-
Constructor Details
-
Builder
-
-
Method Details
-
messages
-
stream
-
format
-
keepAlive
-
tools
-
options
-
think
-
enableThinking
Enable thinking mode for the model.- Returns:
- this builder
-
disableThinking
Disable thinking mode for the model.- Returns:
- this builder
-
thinkLow
Set thinking level to "low" (for GPT-OSS model).- Returns:
- this builder
-
thinkMedium
Set thinking level to "medium" (for GPT-OSS model).- Returns:
- this builder
-
thinkHigh
Set thinking level to "high" (for GPT-OSS model).- Returns:
- this builder
-
options
-
build
-