INNER CODE UNIT · Dart

baseUrlVersion

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

  static set baseUrlVersion(String version) {
    OpenAIConfig.version = version;
  }

  /// If you have multiple organizations, you can set it's id with this.
  /// once this is set, it will be used in all the requests to the OpenAI API.
  ///
  /// Example:
  ///
  /// ```dart
  /// OpenAI.organization = "YOUR_ORGANIZATION_ID";
  /// ```
  static set organization(String? organizationId) {
    HeadersBuilder.organization = organizationId;
  }

  /// 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.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…