Class AIClientFactory
java.lang.Object
com.developer.nefarious.zjoule.plugin.chat.AIClientFactory
A factory class responsible for creating instances of
IAIClient
.
The AIClientFactory
determines the appropriate AI client to return
based on the deployment's model name. Currently, it supports creating clients
for OpenAI models.-
Method Summary
-
Method Details
-
getClient
Creates and returns an appropriate implementation ofIAIClient
based on the deployment's model name. If the model corresponds to OpenAI, anOpenAIClient
is returned. If no supported model is found, the method returnsnull
.- Returns:
- an instance of
IAIClient
for the corresponding model, ornull
if unsupported.
-