What's Changed
⭐️ [Feat] Show correct provider in exceptions - for Mistral API, PerplexityAPI, Anyscale, XInference by ishaan-jaff in https://github.com/BerriAI/litellm/pull/1765, https://github.com/BerriAI/litellm/pull/1776
(Thanks dhruv-anand-aintech for the issue/help)
Exceptions for Mistral API, PerplexityAPI, Anyscale, XInference now show the correct provider name, before they would show `OPENAI_API_KEY` is missing when using PerplexityAI
shell
exception: PerplexityException - Traceback (most recent call last):
File "/Users/ishaanjaffer/Github/litellm/litellm/llms/perplexity.py", line 349, in completion
raise e
File "/Users/ishaanjaffer/Github/litellm/litellm/llms/perplexity.py", line 292, in completion
perplexity_client = perplexity(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/perplexity/_client.py", line 98, in __init__
raise perplexityError(
perplexity.perplexityError: The api_key client option must be set either by passing api_key to the client or by setting the PERPLEXITY_API_KEY environment variable
* fix(view_key_table_tsx): show abbreviated key name instead of hashed token by krrishdholakia in https://github.com/BerriAI/litellm/pull/1782
* fix(main.py): for health checks, don't use cached responses by krrishdholakia in https://github.com/BerriAI/litellm/pull/1785
**Full Changelog**: https://github.com/BerriAI/litellm/compare/v1.21.4...v1.21.5