GoogleCloudPlatform / python-docs-samples

Code samples used on cloud.google.com
Apache License 2.0
7.08k stars 6.34k forks source link

feat(generative-ai): Add context caching samples (1) #11871

Closed gericdong closed 1 week ago

gericdong commented 2 weeks ago

Description

Fixes b346529113

Add context caching samples:

snippet-bot[bot] commented 2 weeks ago

Here is the summary of changes.

You are about to add 1 region tag. - [generative_ai/context_caching/create_context_cache.py:17](https://github.com/gericdong/edong-python-docs-samples/blob/ccbc7b142e2ea9d737c2fa3303a04dcfdb4f5798/generative_ai/context_caching/create_context_cache.py#L17), tag `generativeaionvertexai_gemini_create_context_cache`

This comment is generated by snippet-bot. If you find problems with this result, please file an issue at: https://github.com/googleapis/repo-automation-bots/issues. To update this comment, add snippet-bot:force-run label or use the checkbox below:

m-strzelczyk commented 1 week ago

I think #11875 will fix the problem in 3.11 build, but I don't know what's going on in 3.8.