[PR #3602] [CLOSED] [BUG]: Fix gemini-2.5-pro-preview-03-25 model support #4333

Closed
opened 2026-02-22 18:35:37 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/3602
Author: @modimansi
Created: 4/6/2025
Status: Closed

Base: masterHead: fix-gemini-model-name


📝 Commits (3)

  • 2d89e36 Fix: Add gemini-2.5-pro-preview-03-25 to experimental models list
  • 5749192 Fix: Add context window for gemini-2.5-pro-preview-03-25 model
  • 1b3ae5e Fix: Add gemini-2.5-pro-preview-03-25 to v1BetaModels list

📊 Changes

2 files changed (+9 additions, -3 deletions)

View changed files

📝 server/utils/AiProviders/gemini/defaultModels.js (+7 -2)
📝 server/utils/AiProviders/modelMap.js (+2 -1)

📄 Description

Fix for Issue #3600

This PR fixes the issue where the Gemini 2.5 Pro Preview model (gemini-2.5-pro-preview-03-25) was returning an error:

[GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1/models/gemini-2.5-pro-preview-03-25:streamGenerateContent?alt=sse: [404 Not Found] models/gemini-2.5-pro-preview-03-25 is not found for API version v1, or is not supported for generateContent.

The changes include:

  1. Added gemini-2.5-pro-preview-03-25 to the experimental models list in defaultModels.js
  2. Added gemini-2.5-pro-preview-03-25 to the v1BetaModels list since it's a preview model
  3. Added context window size for the model in modelMap.js (using 2_097_152 which is the same as other pro models)

This fix allows users to use the latest Gemini 2.5 Pro Preview model without encountering API errors.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/3602 **Author:** [@modimansi](https://github.com/modimansi) **Created:** 4/6/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `fix-gemini-model-name` --- ### 📝 Commits (3) - [`2d89e36`](https://github.com/Mintplex-Labs/anything-llm/commit/2d89e3683ca1bc5cc6b5f668bcb264de08d44c64) Fix: Add gemini-2.5-pro-preview-03-25 to experimental models list - [`5749192`](https://github.com/Mintplex-Labs/anything-llm/commit/57491922278ffa46fe71923ea72318a930bcad7f) Fix: Add context window for gemini-2.5-pro-preview-03-25 model - [`1b3ae5e`](https://github.com/Mintplex-Labs/anything-llm/commit/1b3ae5e35ded7d83a48264222c25f6d8ab27e136) Fix: Add gemini-2.5-pro-preview-03-25 to v1BetaModels list ### 📊 Changes **2 files changed** (+9 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `server/utils/AiProviders/gemini/defaultModels.js` (+7 -2) 📝 `server/utils/AiProviders/modelMap.js` (+2 -1) </details> ### 📄 Description ### Fix for Issue #3600 This PR fixes the issue where the Gemini 2.5 Pro Preview model (`gemini-2.5-pro-preview-03-25`) was returning an error: > [GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1/models/gemini-2.5-pro-preview-03-25:streamGenerateContent?alt=sse: [404 Not Found] models/gemini-2.5-pro-preview-03-25 is not found for API version v1, or is not supported for generateContent. The changes include: 1. Added `gemini-2.5-pro-preview-03-25` to the experimental models list in `defaultModels.js` 2. Added `gemini-2.5-pro-preview-03-25` to the v1BetaModels list since it's a preview model 3. Added context window size for the model in `modelMap.js` (using 2_097_152 which is the same as other pro models) This fix allows users to use the latest Gemini 2.5 Pro Preview model without encountering API errors. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:35:37 -05:00
yindo closed this issue 2026-02-22 18:35:37 -05:00
yindo changed title from [PR #3602] [BUG]: Fix gemini-2.5-pro-preview-03-25 model support to [PR #3602] [CLOSED] [BUG]: Fix gemini-2.5-pro-preview-03-25 model support 2026-06-05 15:18:03 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4333