-
Notifications
You must be signed in to change notification settings - Fork 51
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: add google provider #489
Conversation
* v1.0: chore: don't require UV to download tokenizers (#473)
@@ -2,6 +2,7 @@ use super::{ | |||
anthropic::AnthropicProvider, base::Provider, configs::ProviderConfig, | |||
databricks::DatabricksProvider, ollama::OllamaProvider, openai::OpenAiProvider, | |||
}; | |||
use crate::providers::google::GoogleProvider; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move this up into the super for consistency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this works for me!
download_tokenizer_files.py
Outdated
@@ -16,6 +16,7 @@ | |||
"Xenova/gpt-4o", | |||
"Xenova/claude-tokenizer", | |||
"Qwen/Qwen2.5-Coder-32B-Instruct", | |||
"Xenova/gemini-nano", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @zakiali would you please review this to check whether this file is correct? Thank you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doing a bit googling, it looks like gemini 1.5 flash uses the same tokenizer as gemma 2, so we can probably use this instead https://huggingface.co/Xenova/gemma-2-tokenizer
* origin/v1.0: stop bubbles filling screen (#495) chore: V1.0 release automation (#493) requires foreign architectures more xcompile deps x compilation tools chore: Cargo build tokenizers (#491) feat: build and release binaries to GH releases (#477) fix: width of bubbles and logging errors (#487) feat: add google provider (#489) feat: flappy goose easter egg (#479)
* v1.0: stop bubbles filling screen (#495) chore: V1.0 release automation (#493) requires foreign architectures more xcompile deps x compilation tools chore: Cargo build tokenizers (#491) feat: build and release binaries to GH releases (#477) fix: width of bubbles and logging errors (#487) feat: add google provider (#489) feat: flappy goose easter egg (#479)
Added google provider