java.lang.Object
io.helidon.integrations.langchain4j.providers.ollama.OllamaStreamingChatModelFactory
All Implemented Interfaces:
Service.ServicesFactory<dev.langchain4j.model.ollama.OllamaStreamingChatModel>

@Singleton @Named("*") public class OllamaStreamingChatModelFactory extends Object implements Service.ServicesFactory<dev.langchain4j.model.ollama.OllamaStreamingChatModel>
Factory for a configured OllamaStreamingChatModel.
See Also:
  • Method Details

    • create

      public static dev.langchain4j.model.ollama.OllamaStreamingChatModel create(OllamaStreamingChatModelConfig config)
      Create the Ollama model from its configuration.
      Parameters:
      config - configuration to use
      Returns:
      a new model instance
      Throws:
      IllegalStateException - in case the configuration is not enabled
    • services

      public List<Service.QualifiedInstance<dev.langchain4j.model.ollama.OllamaStreamingChatModel>> services()
      Description copied from interface: Service.ServicesFactory
      List of service instances. Each instance may have a different set of qualifiers.

      The following is inherited from this factory:

      Specified by:
      services in interface Service.ServicesFactory<dev.langchain4j.model.ollama.OllamaStreamingChatModel>
      Returns:
      qualified suppliers of service instances