From 5b2c74569b6a1b0515483d9e7e4baa9b30a65402 Mon Sep 17 00:00:00 2001 From: Nate Bosch Date: Tue, 9 Apr 2024 15:54:57 +0000 Subject: [PATCH] Add docs --- pkgs/google_generative_ai/lib/src/model.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/google_generative_ai/lib/src/model.dart b/pkgs/google_generative_ai/lib/src/model.dart index 9c27f79..6b95f7d 100644 --- a/pkgs/google_generative_ai/lib/src/model.dart +++ b/pkgs/google_generative_ai/lib/src/model.dart @@ -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}); }