Skip to content

Commit 08c89d4

Browse files
authored
Update textgen_with_txt_img.go (#5341)
Update model used in image understanding Go code sample
1 parent 2cfeef2 commit 08c89d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

genai/text_generation/textgen_with_txt_img.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func generateWithTextImage(w io.Writer) error {
3535
return fmt.Errorf("failed to create genai client: %w", err)
3636
}
3737

38-
modelName := "gemini-2.0-flash-001"
38+
modelName := "gemini-2.5-flash"
3939
contents := []*genai.Content{
4040
{Parts: []*genai.Part{
4141
{Text: "What is shown in this image?"},

0 commit comments

Comments
 (0)