Skip to content

Commit 113a8d0

Browse files
fix: typo in list_context_caches function name (#12753)
1 parent d6b7e47 commit 113a8d0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

generative_ai/context_caching/list_context_caches.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
PROJECT_ID = os.getenv("GOOGLE_CLOUD_PROJECT")
1919

2020

21-
def list_content_caches() -> list[str]:
21+
def list_context_caches() -> list[str]:
2222
# [START generativeaionvertexai_context_caching_list]
2323
import vertexai
2424

@@ -43,4 +43,4 @@ def list_content_caches() -> list[str]:
4343

4444

4545
if __name__ == "__main__":
46-
list_content_caches()
46+
list_context_caches()

generative_ai/context_caching/test_context_caching.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_get_context_cache(cache_id: str) -> None:
5050

5151

5252
def test_get_list_of_context_caches(cache_id: str) -> None:
53-
response = list_context_caches.list_content_caches()
53+
response = list_context_caches.list_context_caches()
5454
assert cache_id in response
5555

5656

0 commit comments

Comments
 (0)