Skip to content

Conversation

@lifeizhou-ap
Copy link
Collaborator

@lifeizhou-ap lifeizhou-ap commented Dec 17, 2024

Added google provider

@lifeizhou-ap lifeizhou-ap changed the title Lifei/google provider feat: add google provider Dec 17, 2024
@lifeizhou-ap lifeizhou-ap marked this pull request as ready for review December 17, 2024 20:02
anthropic::AnthropicProvider, base::Provider, configs::ProviderConfig,
databricks::DatabricksProvider, ollama::OllamaProvider, openai::OpenAiProvider,
};
use crate::providers::google::GoogleProvider;
Copy link
Collaborator

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?

Copy link
Collaborator

@zakiali zakiali left a 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!

"Xenova/gpt-4o",
"Xenova/claude-tokenizer",
"Qwen/Qwen2.5-Coder-32B-Instruct",
"Xenova/gemini-nano",
Copy link
Collaborator Author

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

Copy link
Collaborator

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

@lifeizhou-ap lifeizhou-ap merged commit 7154da7 into v1.0 Dec 18, 2024
3 checks passed
michaelneale added a commit that referenced this pull request Dec 18, 2024
* v1.0:
  feat: add google provider (#489)
  feat: flappy goose easter egg (#479)
  Restore command history when resuming session (#483)
  Newline in cli (#485)
  remove cliclack prompt (#484)
  feat:model-specific-configuration (#466)
salman1993 added a commit that referenced this pull request Dec 18, 2024
* 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)
jsibbison-square added a commit that referenced this pull request Dec 19, 2024
* 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)
@yingjiehe-xyz yingjiehe-xyz deleted the lifei/google-provider branch February 5, 2025 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants