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(vertexai): Add supported models in tokenizer #10939

Merged
merged 25 commits into from
Oct 1, 2024
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
4e0f70c
Add corpora_test for local tokenizer
happy-qiao Aug 27, 2024
5e0010d
Merge branch 'main' of https://github.com/googleapis/google-cloud-go
happy-qiao Aug 28, 2024
a86eec0
fix vet
happy-qiao Aug 30, 2024
e36a397
resolve comments
happy-qiao Aug 30, 2024
72c4720
resolve comments
happy-qiao Aug 31, 2024
5aa4a7d
remove commented code
happy-qiao Aug 31, 2024
bd316ec
resolve comments
happy-qiao Sep 6, 2024
b4aa934
Merge branch 'main' into main
happy-qiao Sep 6, 2024
370a2b0
add comments to explain NLTK skip
happy-qiao Sep 6, 2024
40dc85c
fix format
happy-qiao Sep 6, 2024
1538c66
use worker pool to run corpora test
happy-qiao Sep 10, 2024
fad12e3
resolve commented out code
happy-qiao Sep 10, 2024
997b186
Merge branch 'main' into main
happy-qiao Sep 10, 2024
f3da658
remove cycle import
happy-qiao Sep 10, 2024
3896d2d
use WorkerGroup
happy-qiao Sep 16, 2024
0553fc1
add defer close(numWorkersChan)
happy-qiao Sep 16, 2024
0934d86
improve naming
happy-qiao Sep 16, 2024
1c1cd24
revert changes in go.work.sun
happy-qiao Sep 16, 2024
d1eff55
minor fix
happy-qiao Sep 16, 2024
aa87724
Merge branch 'main' into main
gcf-merge-on-green[bot] Sep 17, 2024
4e4a79b
goroutine GenerateContent example
happy-qiao Sep 25, 2024
a0bffd5
Merge branch 'googleapis:main' into main
happy-qiao Sep 25, 2024
11b3e02
Merge branch 'googleapis:main' into tokenizer
happy-qiao Oct 1, 2024
80c9374
add supported model
happy-qiao Oct 1, 2024
bf0416f
Merge branch 'tokenizer' of github.com:happy-qiao/google-cloud-go int…
happy-qiao Oct 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions vertexai/genai/tokenizer/tokenizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ var supportedModels = map[string]bool{
"gemini-1.0-pro-001": true,
"gemini-1.0-pro-002": true,
"gemini-1.5-pro-001": true,
"gemini-1.5-pro-002": true,
"gemini-1.5-flash-001": true,
"gemini-1.5-flash-002": true,
}

// Tokenizer is a local tokenizer for text.
Expand Down
Loading