Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
natebosch committed Apr 9, 2024
1 parent 20455a2 commit 5b2c745
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkgs/google_generative_ai/lib/src/model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,15 @@ enum Task {
batchEmbedContents;
}

/// Configuration for how a [GenerativeModel] makes requests.
///
/// This allows overriding the API version in use which may be required to use
/// some beta features.
final class RequestOptions {
/// The API version used to make requests.
///
/// By default the version is `v1`. This may be specified as `v1beta` to use
/// beta features.
final String? apiVersion;
const RequestOptions({this.apiVersion});
}
Expand Down

0 comments on commit 5b2c745

Please sign in to comment.