constructor(config = {}) {
    const { model = null } = config;
    super();
    const client = new OpenAI({
      baseURL: process.env.LOCAL_AI_BASE_PATH,
      apiKey: process.env.LOCAL_AI_API_KEY ?? null,
      maxRetries: 3,
    });

    this._client = client;
    this.model = model;
    this.verbose = true;
  }
The agent provider for the LocalAI provider.