这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@modimansi
Copy link

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.

@modimansi
Copy link
Author

Hi there! I noticed that this PR changes the model name from learnlm-1.5-pro-experimental to learnllm-1.5-pro-experimental (adding an extra 'l').

Based on Google's documentation, the correct model name appears to be LearnLM with a single 'l', as can be confirmed on Google's AI developer documentation: https://ai.google.dev/gemini-api/docs/learnlm

I believe the original spelling with one 'l' (learnlm-1.5-pro-experimental) is correct. Could you please verify this before merging?

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.

1 participant