Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: duplicate exception_type for gemini #6768

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nobu007
Copy link
Contributor

@nobu007 nobu007 commented Nov 16, 2024

Type

🐛 Bug Fix
🧹 Refactoring

Changes

The exception_type for "gemini" is handled same as "palm" now.
Original code of "gemini" was in both "vertex_ai" and "palm".

Recentry, gemini often throws 503, so adding switch case as vertex_ai.

This is sample output.
Note: logger_fn of exception_logging() is always None. Understanding was not easy for me.
‘‘‘
{'exception': litellm.BadRequestError: GeminiException - {
"error": {
"code": 503,
"message": "The model is overloaded. Please try again later.",
"status": "UNAVAILABLE"
}
}
‘‘‘

Copy link

vercel bot commented Nov 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 16, 2024 3:50pm

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