[PR #3603] [CLOSED] [BUG]: Fix Gemini 2.5 Pro Preview model support and LearnLM spelling #4334

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/3603
Author: @modimansi
Created: 4/6/2025
Status: Closed

Base: masterHead: fix-gemini-model-and-learnlm-spelling


📝 Commits (1)

  • 9015bcd Fix LearnLM spelling and add gemini-2.5-pro-preview-03-25 model support

📊 Changes

2 files changed (+7 additions, -1 deletions)

View changed files

📝 server/utils/AiProviders/gemini/defaultModels.js (+6 -1)
📝 server/utils/AiProviders/modelMap.js (+1 -0)

📄 Description

Fix for Issue #3600

This PR fixes two issues:

  1. Adds support for the Gemini 2.5 Pro Preview model (gemini-2.5-pro-preview-03-25) which was returning an error. The changes include:

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

This fix allows users to use the latest Gemini 2.5 Pro Preview model without encountering API errors and ensures the LearnLM model name is spelled correctly.


🔄 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/3603 **Author:** [@modimansi](https://github.com/modimansi) **Created:** 4/6/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `fix-gemini-model-and-learnlm-spelling` --- ### 📝 Commits (1) - [`9015bcd`](https://github.com/Mintplex-Labs/anything-llm/commit/9015bcdf2b20ac4ba451ef5dceb79aa486ce80ff) Fix LearnLM spelling and add gemini-2.5-pro-preview-03-25 model support ### 📊 Changes **2 files changed** (+7 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `server/utils/AiProviders/gemini/defaultModels.js` (+6 -1) 📝 `server/utils/AiProviders/modelMap.js` (+1 -0) </details> ### 📄 Description ### Fix for Issue #3600 This PR fixes two issues: 1. Adds support for the Gemini 2.5 Pro Preview model (`gemini-2.5-pro-preview-03-25`) which was returning an error. The changes include: - Added `gemini-2.5-pro-preview-03-25` to the experimental models list in `defaultModels.js` - Added `gemini-2.5-pro-preview-03-25` to the v1BetaModels list since it's a preview model - Added context window size for the model in `modelMap.js` (using 2_097_152 which is the same as other pro models) 2. Corrects the spelling of the LearnLM model: - Fixed the name to be `learnlm-1.5-pro-experimental` (with a single 'l') which is the correct spelling according to Google's official documentation: https://ai.google.dev/gemini-api/docs/learnlm This fix allows users to use the latest Gemini 2.5 Pro Preview model without encountering API errors and ensures the LearnLM model name is spelled correctly. --- <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 #3603] [BUG]: Fix Gemini 2.5 Pro Preview model support and LearnLM spelling to [PR #3603] [CLOSED] [BUG]: Fix Gemini 2.5 Pro Preview model support and LearnLM spelling 2026-06-05 15:18:02 -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#4334