Skip to content

Commit

Permalink
Fix region tags: "START [" > "[START " (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkDaoust authored Jul 19, 2024
1 parent ebd7b02 commit 7f8e8fe
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions genai/internal/samples/docs-snippets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ func ExampleGenerativeModel_GenerateContentStream() {
}
defer client.Close()

// START [text_gen_text_only_prompt_streaming]
// [START text_gen_text_only_prompt_streaming]
model := client.GenerativeModel("gemini-1.5-flash")
iter := model.GenerateContentStream(ctx, genai.Text("Write a story about a magic backpack."))
for {
Expand All @@ -324,7 +324,7 @@ func ExampleGenerativeModel_GenerateContentStream() {
}
printResponse(resp)
}
// END [text_gen_text_only_prompt_streaming]
// [END text_gen_text_only_prompt_streaming]
}

func ExampleGenerativeModel_GenerateContentStream_imagePrompt() {
Expand All @@ -335,7 +335,7 @@ func ExampleGenerativeModel_GenerateContentStream_imagePrompt() {
}
defer client.Close()

// START [text_gen_multimodal_one_image_prompt_streaming]
// [START text_gen_multimodal_one_image_prompt_streaming]
model := client.GenerativeModel("gemini-1.5-flash")

imgData, err := os.ReadFile(filepath.Join(testDataDir, "organ.jpg"))
Expand All @@ -355,7 +355,7 @@ func ExampleGenerativeModel_GenerateContentStream_imagePrompt() {
}
printResponse(resp)
}
// END [text_gen_multimodal_one_image_prompt_streaming]
// [END text_gen_multimodal_one_image_prompt_streaming]
}

func ExampleGenerativeModel_GenerateContentStream_videoPrompt() {
Expand All @@ -366,7 +366,7 @@ func ExampleGenerativeModel_GenerateContentStream_videoPrompt() {
}
defer client.Close()

// START [text_gen_multimodal_video_prompt_streaming]
// [START text_gen_multimodal_video_prompt_streaming]
model := client.GenerativeModel("gemini-1.5-flash")

file, err := uploadFile(ctx, client, filepath.Join(testDataDir, "earth.mp4"), "")
Expand All @@ -388,7 +388,7 @@ func ExampleGenerativeModel_GenerateContentStream_videoPrompt() {
}
printResponse(resp)
}
// END [text_gen_multimodal_video_prompt_streaming]
// [END text_gen_multimodal_video_prompt_streaming]
}

func ExampleGenerativeModel_CountTokens_contextWindow() {
Expand Down

0 comments on commit 7f8e8fe

Please sign in to comment.