Class OllamaStreamingChatModel
java.lang.Object
dev.langchain4j.model.ollama.OllamaStreamingChatModel
- All Implemented Interfaces:
dev.langchain4j.model.chat.StreamingChatModel
public class OllamaStreamingChatModel
extends Object
implements dev.langchain4j.model.chat.StreamingChatModel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected dev.langchain4j.model.ollama.OllamaClientprotected OllamaChatRequestParametersprotected List<dev.langchain4j.model.chat.listener.ChatModelListener> protected booleanprotected Set<dev.langchain4j.model.chat.Capability> -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionbuilder()voiddoChat(dev.langchain4j.model.chat.request.ChatRequest chatRequest, dev.langchain4j.model.chat.response.StreamingChatResponseHandler handler) List<dev.langchain4j.model.chat.listener.ChatModelListener> dev.langchain4j.model.ModelProviderprovider()Set<dev.langchain4j.model.chat.Capability> protected voidvalidate(dev.langchain4j.model.chat.request.ChatRequestParameters chatRequestParameters) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.langchain4j.model.chat.StreamingChatModel
chat, chat, chat
-
Field Details
-
client
protected dev.langchain4j.model.ollama.OllamaClient client -
defaultRequestParameters
-
returnThinking
protected boolean returnThinking -
listeners
-
supportedCapabilities
-
-
Constructor Details
-
OllamaStreamingChatModel
-
-
Method Details
-
doChat
public void doChat(dev.langchain4j.model.chat.request.ChatRequest chatRequest, dev.langchain4j.model.chat.response.StreamingChatResponseHandler handler) - Specified by:
doChatin interfacedev.langchain4j.model.chat.StreamingChatModel
-
defaultRequestParameters
- Specified by:
defaultRequestParametersin interfacedev.langchain4j.model.chat.StreamingChatModel
-
listeners
- Specified by:
listenersin interfacedev.langchain4j.model.chat.StreamingChatModel
-
provider
public dev.langchain4j.model.ModelProvider provider()- Specified by:
providerin interfacedev.langchain4j.model.chat.StreamingChatModel
-
supportedCapabilities
- Specified by:
supportedCapabilitiesin interfacedev.langchain4j.model.chat.StreamingChatModel
-
builder
-
validate
protected void validate(dev.langchain4j.model.chat.request.ChatRequestParameters chatRequestParameters)
-