feat: support gemini2
support gemini-exp-1206 and gemini-2.0-flash-exp
Summary by CodeRabbit
-
New Features
- Introduced two new bot classes:
Gemini20ExpAPIBotandGemini20FlashAPIBot. - Expanded localization support for the Gemini API with new entries in multiple languages, including English, German, Spanish, French, Italian, Japanese, Korean, Russian, Vietnamese, Chinese, and Traditional Chinese.
- Introduced two new bot classes:
-
Chores
- Added new bot instances to the existing bot imports and aggregation logic.
Walkthrough
This pull request introduces two new classes, Gemini20ExpAPIBot and Gemini20FlashAPIBot, which extend the existing GeminiAPIBot class. These classes include new static properties and are instantiated in the src/bots/index.js file. Additionally, new localization entries for these bots are added across multiple language files, enhancing the application's support for various languages.
Changes
| File Path | Change Summary |
|---|---|
src/bots/google/Gemini20ExpAPIBot.js |
Added class Gemini20ExpAPIBot extending GeminiAPIBot with static properties. |
src/bots/google/Gemini20FlashAPIBot.js |
Added class Gemini20FlashAPIBot extending GeminiAPIBot with static properties. |
src/bots/index.js |
Added imports for Gemini20FlashAPIBot and Gemini20ExpAPIBot; included in all array and botTags.api. |
src/i18n/locales/de.json |
Added localization entries for gemini-20-flash-exp and gemini-exp-1206. |
src/i18n/locales/en.json |
Added localization entries for gemini-20-flash-exp and gemini-exp-1206. |
src/i18n/locales/es.json |
Added localization entries for gemini-20-flash-exp and gemini-exp-1206. |
src/i18n/locales/fr.json |
Added localization entries for gemini-20-flash-exp and gemini-exp-1206. |
src/i18n/locales/it.json |
Added localization entries for gemini-20-flash-exp and gemini-exp-1206. |
src/i18n/locales/ja.json |
Added localization entries for gemini-20-flash-exp and gemini-exp-1206. |
src/i18n/locales/ko.json |
Added localization entries for gemini-20-flash-exp and gemini-exp-1206. |
src/i18n/locales/ru.json |
Added localization entries for gemini-20-flash-exp and gemini-exp-1206. |
src/i18n/locales/vi.json |
Added localization entries for gemini-20-flash-exp and gemini-exp-1206. |
src/i18n/locales/zh.json |
Added localization entries for gemini-20-flash-exp and gemini-exp-1206. |
src/i18n/locales/zhtw.json |
Added localization entries for gemini-20-flash-exp and gemini-exp-1206. |
Possibly related PRs
-
#882: The
Gemini20FlashAPIBotandGemini20ExpAPIBotclasses are both new classes that extend theGeminiAPIBot, similar to howGemini20ExpAPIBotextendsGeminiAPIBotin the main PR. -
#893: The addition of
Gemini20ExpAPIBotinsrc/bots/index.jsis directly related to the main PR, as it involves the same file and includes the new bot instance. - #924: The removal of deprecated models, including those related to the Claude API, indicates a cleanup that may relate to the overall management of bot instances, including those introduced in the main PR.
-
#934: The upgrade of the Claude 3 Haiku model to a newer version is relevant as it shows ongoing updates to bot models, similar to the introduction of
Gemini20ExpAPIBotin the main PR.
Suggested reviewers
- PeterDaveHello
Poem
🐰 In the fields where the bots play,
New friends hop in, hip-hip-hooray!
Gemini's here, both flash and exp,
With logos bright, they take their step.
Localization sings in many a tongue,
For every user, the joy has begun! 🌼
[!TIP] CodeRabbit's docstrings feature is now available as part of our Early Access Program! Simply use the command
@coderabbitai generate docstringsto have CodeRabbit automatically generate docstrings for your pull request. This feature will be included in our Pro Plan when released.
📜 Recent review details
Configuration used: CodeRabbit UI Review profile: CHILL Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between d6ca8163b05364aff4958bb98e72fe7ea86ec58f and 5a22f206005323fee9f88ca596a775729ca61b8b.
⛔ Files ignored due to path filters (2)
-
public/bots/gemini-2.0-exp-logo.pngis excluded by!**/*.png -
public/bots/gemini-2.0-flash-logo.pngis excluded by!**/*.png
📒 Files selected for processing (14)
-
src/bots/google/Gemini20ExpAPIBot.js(1 hunks) -
src/bots/google/Gemini20FlashAPIBot.js(1 hunks) -
src/bots/index.js(3 hunks) -
src/i18n/locales/de.json(1 hunks) -
src/i18n/locales/en.json(1 hunks) -
src/i18n/locales/es.json(1 hunks) -
src/i18n/locales/fr.json(1 hunks) -
src/i18n/locales/it.json(1 hunks) -
src/i18n/locales/ja.json(1 hunks) -
src/i18n/locales/ko.json(1 hunks) -
src/i18n/locales/ru.json(1 hunks) -
src/i18n/locales/vi.json(1 hunks) -
src/i18n/locales/zh.json(1 hunks) -
src/i18n/locales/zhtw.json(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (14)
- src/bots/google/Gemini20ExpAPIBot.js
- src/bots/google/Gemini20FlashAPIBot.js
- src/i18n/locales/ko.json
- src/i18n/locales/vi.json
- src/i18n/locales/es.json
- src/i18n/locales/ru.json
- src/i18n/locales/ja.json
- src/i18n/locales/en.json
- src/i18n/locales/fr.json
- src/i18n/locales/de.json
- src/i18n/locales/zh.json
- src/i18n/locales/it.json
- src/i18n/locales/zhtw.json
- src/bots/index.js
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
🪧 Tips
Chat
There are 3 ways to chat with CodeRabbit:
- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
-
I pushed a fix in commit <commit_id>, please review it. -
Generate unit testing code for this file. -
Open a follow-up GitHub issue for this discussion.
-
- Files and specific lines of code (under the "Files changed" tab): Tag
@coderabbitaiin a new review comment at the desired location with your query. Examples:-
@coderabbitai generate unit testing code for this file. -
@coderabbitai modularize this function.
-
- PR comments: Tag
@coderabbitaiin a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:-
@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase. -
@coderabbitai read src/utils.ts and generate unit testing code. -
@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format. -
@coderabbitai help me debug CodeRabbit configuration file.
-
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.
CodeRabbit Commands (Invoked using PR comments)
-
@coderabbitai pauseto pause the reviews on a PR. -
@coderabbitai resumeto resume the paused reviews. -
@coderabbitai reviewto trigger an incremental review. This is useful when automatic reviews are disabled for the repository. -
@coderabbitai full reviewto do a full review from scratch and review all the files again. -
@coderabbitai summaryto regenerate the summary of the PR. -
@coderabbitai generate docstringsto generate docstrings for this PR. (Experiment) -
@coderabbitai resolveresolve all the CodeRabbit review comments. -
@coderabbitai configurationto show the current CodeRabbit configuration for the repository. -
@coderabbitai helpto get help.
Other keywords and placeholders
- Add
@coderabbitai ignoreanywhere in the PR description to prevent this PR from being reviewed. - Add
@coderabbitai summaryto generate the high-level summary at a specific location in the PR description. - Add
@coderabbitaianywhere in the PR title to generate the title automatically.
CodeRabbit Configuration File (.coderabbit.yaml)
- You can programmatically configure CodeRabbit by adding a
.coderabbit.yamlfile to the root of your repository. - Please see the configuration documentation for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation:
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
Documentation and Community
- Visit our Documentation for detailed information on how to use CodeRabbit.
- Join our Discord Community to get help, request features, and share feedback.
- Follow us on X/Twitter for updates and announcements.