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

[Feat] Show correct provider in exceptions - for Mistral API, PerplexityAPI #1765

Merged
merged 2 commits into from
Feb 2, 2024

Conversation

ishaan-jaff
Copy link
Contributor

@ishaan-jaff ishaan-jaff commented Feb 2, 2024

Improve Exception Mapping for

anyscale
mistral API
deepinfra
perplexity

New Perplexity API Exceptions - Change - we show PerplexityException

PerplexityException - <html>
<head><title>401 Authorization Required</title></head>
<body>
<center><h1>401 Authorization Required</h1></center>
<hr><center>openresty/1.21.4.3</center>
<script defer src="https://static.cloudflareinsights.com/beacon.min.js/v84a3a4012de94ce1a686ba8c167c359c1696973893317" integrity="sha512-euoFGowhlaLqXsPWQ48qSkBSCFs3DPRyiwVu3FjR96cMPx+Fr+gpWRhIafcHwqwCqWS42RZhIudOvEI+Ckf6MA==" data-cf-beacon='{"rayId":"84f3ecb18c9096c6","b":1,"version":"2024.2.0","token":"92730c73a9e747fbb6a25e1d6657122d"}' crossorigin="anonymous"></script>

Old Perplexity API Exceptions

OpenAIException - <html>
<head><title>401 Authorization Required</title></head>
<body>
<center><h1>401 Authorization Required</h1></center>
<hr><center>openresty/1.21.4.3</center>
<script defer src="https://static.cloudflareinsights.com/beacon.min.js/v84a3a4012de94ce1a686ba8c167c359c1696973893317" integrity="sha512-euoFGowhlaLqXsPWQ48qSkBSCFs3DPRyiwVu3FjR96cMPx+Fr+gpWRhIafcHwqwCqWS42RZhIudOvEI+Ckf6MA==" data-cf-beacon='{"rayId":"84f3ecb18c9096c6","b":1,"version":"2024.2.0","token":"92730c73a9e747fbb6a25e1d6657122d"}' crossorigin="anonymous"></script>

Copy link

railway-app bot commented Feb 2, 2024

This PR is being deployed to Railway 🚅

litellm: ◻️ REMOVED

Copy link

vercel bot commented Feb 2, 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 Feb 2, 2024 4:49pm
litellm-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 2, 2024 4:49pm

@ishaan-jaff
Copy link
Contributor Author

@dhruv-anand-aintech

@ishaan-jaff ishaan-jaff merged commit 01a69ea into main Feb 2, 2024
5 of 8 checks passed
@ishaan-jaff ishaan-jaff deleted the litellm_show_correct_provider_in_exception branch February 2, 2024 16:52
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