showLogs property

void showLogs=(bool newValue)

This controls whether to log steps inside the process of making a request, this helps debugging and pointing where something went wrong. This uses dart:developer internally, so it will show anyway only while debugging code.

By default it is set to true.

Example:

OpenAI.instance.showLogs = false;

Implementation

static set showLogs(bool newValue) {
  OpenAILogger.isActive = newValue;
}