Class AIClientFactory

java.lang.Object
com.developer.nefarious.zjoule.plugin.chat.AIClientFactory

public abstract class AIClientFactory extends Object
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 Details

    • getClient

      public static IAIClient getClient()
      Creates and returns an appropriate implementation of IAIClient based on the deployment's model name. If the model corresponds to OpenAI, an OpenAIClient is returned. If no supported model is found, the method returns null.
      Returns:
      an instance of IAIClient for the corresponding model, or null if unsupported.