From 1767285f6dbdd2e8b05de98398ba0458864e0fb9 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Sun, 1 Oct 2023 22:11:16 -0700 Subject: [PATCH] add exception mapping for vertexai, bedrock, sagemaker, to docs --- docs/my-website/docs/exception_mapping.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/my-website/docs/exception_mapping.md b/docs/my-website/docs/exception_mapping.md index 510e69aa1b6..bbc2cc3cb37 100644 --- a/docs/my-website/docs/exception_mapping.md +++ b/docs/my-website/docs/exception_mapping.md @@ -13,7 +13,7 @@ Base case we return APIError All our exceptions inherit from OpenAI's exception types, so any error-handling you have for that, should work out of the box with LiteLLM. -For all 4 cases, the exception returned inherits from the original OpenAI Exception but contains 3 additional attributes: +For all cases, the exception returned inherits from the original OpenAI Exception but contains 3 additional attributes: * status_code - the http status code of the exception * message - the error message * llm_provider - the provider raising the exception @@ -53,6 +53,8 @@ Base case - we return the original exception. | Huggingface | ✅ | ✅ | ✅ | ✅ | | | Openrouter | ✅ | ✅ | ✅ | ✅ | | | AI21 | ✅ | ✅ | ✅ | ✅ | | +| VertexAI | | |✅ | | | +| Bedrock | | |✅ | | | | TogetherAI | ✅ | ✅ | ✅ | ✅ | | | AlephAlpha | ✅ | ✅ | ✅ | ✅ | ✅ | @@ -61,4 +63,4 @@ Base case - we return the original exception. The `ContextWindowExceededError` is a sub-class of `InvalidRequestError`. It was introduced to provide more granularity for exception-handling scenarios. Please refer to [this issue to learn more](https://github.com/BerriAI/litellm/issues/228). - +Contributions to improve exception mapping are [welcome](https://github.com/BerriAI/litellm#contributing)