Skip to content

Commit

Permalink
Fix snippet name.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkDaoust authored Jul 3, 2024
1 parent 2005923 commit 3b78e31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions samples/embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def test_embed_content(self):
print(result["embedding"])
# [END embed_content]

def batch_embed_content(self):
# [START batch_embed_content]
def batch_embed_contents(self):
# [START batch_embed_contents]
texts = [
"What is the meaning of life?",
"How much wood would a woodchuck chuck?",
Expand All @@ -40,7 +40,7 @@ def batch_embed_content(self):
model="models/text-embedding-004", content=texts, output_dimensionality=10
)
print(result)
# [END batch_embed_content]
# [END batch_embed_contents]


if __name__ == "__main__":
Expand Down

0 comments on commit 3b78e31

Please sign in to comment.