Class OllamaStreamingChatLanguageModel
java.lang.Object
io.quarkiverse.langchain4j.ollama.OllamaStreamingChatLanguageModel
- All Implemented Interfaces:
dev.langchain4j.model.chat.StreamingChatModel
public class OllamaStreamingChatLanguageModel
extends Object
implements dev.langchain4j.model.chat.StreamingChatModel
Use to have streaming feature on models used trough Ollama.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builder for Ollama configuration. -
Method Summary
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, defaultRequestParameters, listeners, provider, supportedCapabilities
-
Method Details
-
builder
-
doChat
public void doChat(dev.langchain4j.model.chat.request.ChatRequest chatRequest, dev.langchain4j.model.chat.response.StreamingChatResponseHandler handler) - Specified by:
doChat
in interfacedev.langchain4j.model.chat.StreamingChatModel
-