INNER CODE UNIT · Dart

baseUrl

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

  static set baseUrl(String baseUrl) {
    OpenAIConfig.baseUrl = baseUrl;
  }

  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;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…