Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(generativeai): Add compute token feature #12600

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

msampathkumar
Copy link
Member

Description

Fixes b358102024

Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.

Checklist

@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Sep 17, 2024
@msampathkumar
Copy link
Member Author

Update: When I used SDK @ google-cloud-aiplatform[tokenization] @ git+https://github.com/googleapis/python-aiplatform.git the following errors don't come up. I will wait for the pkg to be released.

TypeError: Tokenizer.count_tokens() got an unexpected keyword argument 'system_instruction'

AttributeError: 'ComputeTokensResult' object has no attribute 'tokens_info'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant