Package dev.langchain4j.model.ollama
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.OllamaClient
protected OllamaChatRequestParameters
protected List
<ChatModelListener> protected Set
<Capability> -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
void
doChat
(ChatRequest chatRequest, StreamingChatResponseHandler handler) provider()
protected void
validate
(ChatRequestParameters chatRequestParameters) 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.StreamingChatModel
chat, chat, chat
-
Field Details
-
client
protected dev.langchain4j.model.ollama.OllamaClient client -
defaultRequestParameters
-
listeners
-
supportedCapabilities
-
-
Constructor Details
-
OllamaStreamingChatModel
-
-
Method Details
-
doChat
- Specified by:
doChat
in interfaceStreamingChatModel
-
defaultRequestParameters
- Specified by:
defaultRequestParameters
in interfaceStreamingChatModel
-
listeners
- Specified by:
listeners
in interfaceStreamingChatModel
-
provider
- Specified by:
provider
in interfaceStreamingChatModel
-
supportedCapabilities
- Specified by:
supportedCapabilities
in interfaceStreamingChatModel
-
builder
-
validate
-