Skip to content

Commit

Permalink
chore: update README
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 712989512
  • Loading branch information
happy-qiao authored and copybara-github committed Jan 7, 2025
1 parent 81b8a23 commit afd4b84
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -515,19 +515,19 @@ else:

cached_content = client.caches.create(
model='gemini-1.5-pro-002',
contents=[
types.Content(
role='user',
parts=[
types.Part.from_uri(
file_uri=file_uris[0],
mime_type='application/pdf'),
types.Part.from_uri(
file_uri=file_uris[1],
mime_type='application/pdf',)])
],
system_instruction='What is the sum of the two pdfs?',
config=types.CreateCachedContentConfig(
contents=[
types.Content(
role='user',
parts=[
types.Part.from_uri(
file_uri=file_uris[0],
mime_type='application/pdf'),
types.Part.from_uri(
file_uri=file_uris[1],
mime_type='application/pdf',)])
],
system_instruction='What is the sum of the two pdfs?',
display_name='test cache',
ttl='3600s',
),
Expand Down

0 comments on commit afd4b84

Please sign in to comment.