[PR #8621] chore: add Gemini newest experimental models (close #7121) #26111

Closed
opened 2026-02-21 20:35:43 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/8621

State: closed
Merged: Yes


Checklist:

Important

Please review the checklist below before submitting your pull request.

  • Please open an issue before creating a PR or link to an existing issue
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas (no code changes)
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods (no code changes)

Description

Close #7121, added new experimental models from Gemini according to documentation. Specifically, the following models are added:

  1. gemini-1.5-pro-exp-0827
  2. gemini-1.5-pro-exp-0801
  3. gemini-1.5-flash-exp-0827
  4. gemini-1.5-flash-8b-exp-0827

Also, the max context size for gemini-1.5-pro-latest has been updated to 2M.

This PR doesn't have any code changes, but dependencies are updated to access the newest models

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update, included: Dify Document
  • Improvement, including but not limited to code refactoring, performance optimization, and UI/UX improvement
  • Dependency upgrade

Testing Instructions

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Setup the local environmental via devcontainer and try running some LLM query in Chatbot, Agent and Workflow mode

Untitled picture
Screenshot 2024-09-21 163106
Screenshot 2024-09-21 163649
Screenshot 2024-09-21 165809

**Original Pull Request:** https://github.com/langgenius/dify/pull/8621 **State:** closed **Merged:** Yes --- # Checklist: > [!IMPORTANT] > Please review the checklist below before submitting your pull request. - [x] Please open an issue before creating a PR or link to an existing issue - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas (no code changes) - [x] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods (no code changes) # Description Close #7121, added new experimental models from Gemini according to [documentation](https://ai.google.dev/gemini-api/docs/models/gemini). Specifically, the following models are added: 1. `gemini-1.5-pro-exp-0827` 2. `gemini-1.5-pro-exp-0801` 3. `gemini-1.5-flash-exp-0827` 4. `gemini-1.5-flash-8b-exp-0827` Also, the max context size for `gemini-1.5-pro-latest` has been updated to 2M. This PR doesn't have any code changes, but dependencies are updated to access the newest models ## Type of Change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update, included: [Dify Document](https://github.com/langgenius/dify-docs) - [x] Improvement, including but not limited to code refactoring, performance optimization, and UI/UX improvement - [x] Dependency upgrade # Testing Instructions Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration - [x] Setup the local environmental via devcontainer and try running some LLM query in Chatbot, Agent and Workflow mode ![Untitled picture](https://github.com/user-attachments/assets/b3783f31-6baf-4855-9392-4bd2c0055b0b) ![Screenshot 2024-09-21 163106](https://github.com/user-attachments/assets/3586db9a-6e66-4086-b117-389355b0c558) ![Screenshot 2024-09-21 163649](https://github.com/user-attachments/assets/4ba185b0-d547-4572-a9b0-01f963a1e19c) ![Screenshot 2024-09-21 165809](https://github.com/user-attachments/assets/81acd07b-d519-4348-aa0f-b4ba21e9acaf)
yindo added the pull-request label 2026-02-21 20:35:43 -05:00
yindo closed this issue 2026-02-21 20:35:44 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#26111