You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix: Remove unavailable Gemini model and improve error handling
- Remove gemini-2.5-pro-exp-03-25 from default models list (not available in API v1beta)
- Update fallback logic to use gemini-2.5-pro-preview-05-06 instead
- Add specific error handling for 404/model not found errors with clearer messages
- Prevents repeated 404 errors when model router selects unavailable models
elseif(error?.message?.includes('404')||error?.message?.includes('NOT_FOUND')||error?.message?.includes('is not found')){
986
+
// Model not found - provide helpful error message
987
+
constmodelNotFoundMessage=`Model "${modelName}" is not available. The model may have been deprecated or is not supported in the current API version. Please try a different model.`;
0 commit comments