INNER CODE UNIT · Dart

requestsTimeOut

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

  static set requestsTimeOut(Duration requestsTimeOut) {
    OpenAIConfig.requestsTimeOut = requestsTimeOut;
    OpenAILogger.requestsTimeoutChanged(requestsTimeOut);
  }

  // /// The HTTP client that will be used to make the requests to the OpenAI API.
  // /// you can set yout own client, or just set to [null] to use the default client.
  // ///
  // /// Example:
  // /// ```dart
  // /// final theClientUsedByThePackageAtAnyMoment = OpenAI.httpClient;
  // /// ```
  // static http.Client get httpClient => OpenAINetworkingClient.httpClient;

  /// This is used to initialize the [OpenAI] instance, by providing the API key.
  /// All the requests will be authenticated using this API key.
  /// ```dart
  /// OpenAI.apiKey = "YOUR_API_KEY";

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…