Class GenaiProviderManager

java.lang.Object
org.machanism.machai.ai.manager.GenaiProviderManager

public class GenaiProviderManager extends Object
  • Method Details

    • getProvider

      public static Genai getProvider(String chatModel, Configurator conf)
      Creates a provider instance for the given provider/model identifier and applies the selected model.
      Parameters:
      chatModel - the model identifier formatted as Provider:Model or just Model
      conf - configurator used to initialize the provider
      Returns:
      a new provider instance configured with the requested model
      Throws:
      IllegalArgumentException - if the provider cannot be resolved or instantiated