Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Error when use context caching with gemini-1.5-flash-001

I am getting the following error when using context caching following vertextai's tutorials:

 InternalServerError: 500 Model gemini-1.5-flash-001 does not support cached content.

Please see the code snippets enclosed.

Name: google-cloud-aiplatform
Version: 1.57.0

SCR-20240702-juan.pngimage.png

Appreciate any help.

1 2 1,015
2 REPLIES 2