Package org.machanism.machai.ai.manager
Class GenaiProviderManager
java.lang.Object
org.machanism.machai.ai.manager.GenaiProviderManager
-
Method Summary
Modifier and TypeMethodDescriptionstatic GenaigetProvider(String chatModel, Configurator conf) Creates a provider instance for the given provider/model identifier and applies the selected model.
-
Method Details
-
getProvider
Creates a provider instance for the given provider/model identifier and applies the selected model.- Parameters:
chatModel- the model identifier formatted asProvider:Modelor justModelconf- 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
-