Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Conversation

@shilpakancharla
Copy link
Collaborator

Description of the change

Count tokens functions demonstrated for the following use cases.

  • tokens_cached_content
  • tokens_cached_system_instruction
  • tokens_cached_tools
  • tokens_video_audio_file_api
  • tokens_multimodal_image_file_api
  • tokens_multimodal_image_inline
  • tokens_chat
  • tokens_text_only

Also included the sample.mp3 audio and organ.jpg image.

@github-actions github-actions bot added status:awaiting review PR awaiting review from a maintainer component:python sdk Issue/PR related to Python SDK labels Jun 27, 2024
@MarkDaoust MarkDaoust merged commit b6bd3ca into google-gemini:main Jun 28, 2024
@github-actions github-actions bot removed the status:awaiting review PR awaiting review from a maintainer label Jun 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

component:python sdk Issue/PR related to Python SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants