INNER CODE UNIT · Dart

showLogs

anasfik/openai · lib/src/instance/openai.dart:181

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

  /// This controls whether to log responses bodies or not.
  /// This uses  [dart:developer] internally, so it will show anyway only while debugging code.
  ///
  /// By default it is set to [false].
  ///
  /// Example:
  /// ```dart
  /// OpenAI.showResponsesLogs = true;
  /// ```
  static set showResponsesLogs(bool showResponsesLogs) {
    OpenAILogger.showResponsesLogs = showResponsesLogs;
  }

  // /// Whether the package is running on the web or not, example of this is the use of Flutter web.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…