Skip to content

Commit 3b78e31

Browse files
authored
Fix snippet name.
1 parent 2005923 commit 3b78e31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

samples/embed.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ def test_embed_content(self):
2929
print(result["embedding"])
3030
# [END embed_content]
3131

32-
def batch_embed_content(self):
33-
# [START batch_embed_content]
32+
def batch_embed_contents(self):
33+
# [START batch_embed_contents]
3434
texts = [
3535
"What is the meaning of life?",
3636
"How much wood would a woodchuck chuck?",
@@ -40,7 +40,7 @@ def batch_embed_content(self):
4040
model="models/text-embedding-004", content=texts, output_dimensionality=10
4141
)
4242
print(result)
43-
# [END batch_embed_content]
43+
# [END batch_embed_contents]
4444

4545

4646
if __name__ == "__main__":

0 commit comments

Comments
 (0)