Package dev.langchain4j.model.ollama
Class OllamaStreamingChatModel
java.lang.Object
dev.langchain4j.model.ollama.OllamaStreamingChatModel
- All Implemented Interfaces:
StreamingChatLanguageModel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorsConstructorDescriptionOllamaStreamingChatModel
(HttpClientBuilder httpClientBuilder, String baseUrl, String modelName, Double temperature, Integer topK, Double topP, Double repeatPenalty, Integer seed, Integer numPredict, Integer numCtx, List<String> stop, String format, ResponseFormat responseFormat, Duration timeout, Boolean logRequests, Boolean logResponses, Map<String, String> customHeaders, List<ChatModelListener> listeners, Set<Capability> supportedCapabilities) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
void
doChat
(ChatRequest chatRequest, StreamingChatResponseHandler handler) provider()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.langchain4j.model.chat.StreamingChatLanguageModel
chat, chat, chat, defaultRequestParameters, listeners
-
Constructor Details
-
OllamaStreamingChatModel
public OllamaStreamingChatModel(HttpClientBuilder httpClientBuilder, String baseUrl, String modelName, Double temperature, Integer topK, Double topP, Double repeatPenalty, Integer seed, Integer numPredict, Integer numCtx, List<String> stop, String format, ResponseFormat responseFormat, Duration timeout, Boolean logRequests, Boolean logResponses, Map<String, String> customHeaders, List<ChatModelListener> listeners, Set<Capability> supportedCapabilities)
-
-
Method Details
-
doChat
- Specified by:
doChat
in interfaceStreamingChatLanguageModel
-
supportedCapabilities
- Specified by:
supportedCapabilities
in interfaceStreamingChatLanguageModel
-
provider
- Specified by:
provider
in interfaceStreamingChatLanguageModel
-
builder
-