Skip to content

Commit c7e4686

Browse files
authored
fix: update model version in aiplatform samples (#15183)
1 parent 0ea2f10 commit c7e4686

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

google/cloud/aiplatform/samples/samples.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,18 +152,18 @@ void AutoRun(std::vector<std::string> const& argv) {
152152

153153
std::cout << "Executing GeminiGenerateFromTextInput sample:\n";
154154
GeminiGenerateFromTextInput(
155-
{project_id, "us-central1", "gemini-1.5-flash-001",
155+
{project_id, "us-central1", "gemini-2.0-flash-001",
156156
"What's a good name for a flower shop that specializes in selling "
157157
"bouquets of dried flowers?"});
158158

159159
std::cout << "\nExecuting GeminiGenerateWithImage sample:\n";
160-
GeminiGenerateWithImage({project_id, "us-central1", "gemini-1.5-flash-001",
160+
GeminiGenerateWithImage({project_id, "us-central1", "gemini-2.0-flash-001",
161161
"What's in this photo?", "image/png",
162162
"gs://generativeai-downloads/images/scones.jpg"});
163163

164164
std::cout << "\nExecuting GeminiVideoWithAudio sample:\n";
165165
GeminiVideoWithAudio(
166-
{project_id, "us-central1", "gemini-1.5-flash-001",
166+
{project_id, "us-central1", "gemini-2.0-flash-001",
167167
"Provide a description of the video.\n"
168168
"The description should also contain anything important which people "
169169
"say in the video.",

0 commit comments

Comments
 (0)