File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
generative_ai/context_caching Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1818PROJECT_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
4545if __name__ == "__main__" :
46- list_content_caches ()
46+ list_context_caches ()
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ def test_get_context_cache(cache_id: str) -> None:
5050
5151
5252def 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
You can’t perform that action at this time.
0 commit comments