Class OllamaStreamingChatModel
java.lang.Object
dev.langchain4j.model.ollama.OllamaStreamingChatModel
- All Implemented Interfaces:
StreamingChatModel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected dev.langchain4j.model.ollama.OllamaClientprotected OllamaChatRequestParametersprotected List<ChatModelListener> protected booleanprotected Set<Capability> -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionbuilder()voiddoChat(ChatRequest chatRequest, StreamingChatResponseHandler handler) provider()protected voidvalidate(ChatRequestParameters chatRequestParameters) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface StreamingChatModel
chat, 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
- Specified by:
doChatin interfaceStreamingChatModel
-
defaultRequestParameters
- Specified by:
defaultRequestParametersin interfaceStreamingChatModel
-
listeners
- Specified by:
listenersin interfaceStreamingChatModel
-
provider
- Specified by:
providerin interfaceStreamingChatModel
-
supportedCapabilities
- Specified by:
supportedCapabilitiesin interfaceStreamingChatModel
-
builder
-
validate
-