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

Add other functions to count_tokens#482

Merged
MarkDaoust merged 2 commits intogoogle-gemini:mainfrom
shilpakancharla:count_tokens_rest_2
Jul 23, 2024
Merged

Add other functions to count_tokens#482
MarkDaoust merged 2 commits intogoogle-gemini:mainfrom
shilpakancharla:count_tokens_rest_2

Conversation

@shilpakancharla
Copy link
Contributor

@shilpakancharla shilpakancharla commented Jul 22, 2024

No description provided.

@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 Jul 22, 2024
file_uri=$(jq ".file.uri" file_info.json)
echo file_uri=$file_uri

curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:countTokens?key=$GOOGLE_API_KEY" \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we include the whole upload process in each sample, or should we move the region tag to just cover the main request?

@MarkDaoust MarkDaoust merged commit 353dc4f into google-gemini:main Jul 23, 2024
@github-actions github-actions bot removed the status:awaiting review PR awaiting review from a maintainer label Jul 23, 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