Class OllamaStreamingChatModel

java.lang.Object
dev.langchain4j.model.ollama.OllamaStreamingChatModel
All Implemented Interfaces:
dev.langchain4j.model.chat.StreamingChatLanguageModel

public class OllamaStreamingChatModel extends Object implements dev.langchain4j.model.chat.StreamingChatLanguageModel
  • Constructor Details

    • OllamaStreamingChatModel

      public OllamaStreamingChatModel(dev.langchain4j.http.client.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, dev.langchain4j.model.chat.request.ResponseFormat responseFormat, Duration timeout, Boolean logRequests, Boolean logResponses, Map<String,String> customHeaders, List<dev.langchain4j.model.chat.listener.ChatModelListener> listeners, Set<dev.langchain4j.model.chat.Capability> supportedCapabilities)
  • Method Details

    • doChat

      public void doChat(dev.langchain4j.model.chat.request.ChatRequest chatRequest, dev.langchain4j.model.chat.response.StreamingChatResponseHandler handler)
      Specified by:
      doChat in interface dev.langchain4j.model.chat.StreamingChatLanguageModel
    • supportedCapabilities

      public Set<dev.langchain4j.model.chat.Capability> supportedCapabilities()
      Specified by:
      supportedCapabilities in interface dev.langchain4j.model.chat.StreamingChatLanguageModel
    • provider

      public dev.langchain4j.model.ModelProvider provider()
      Specified by:
      provider in interface dev.langchain4j.model.chat.StreamingChatLanguageModel
    • builder