From 203aa24aed7eb8f22d0990e10bf419b6d977c844 Mon Sep 17 00:00:00 2001 From: josearangos Date: Wed, 25 Oct 2023 15:57:26 -0500 Subject: [PATCH] docs error openai.error instead of openai.errors --- docs/my-website/docs/getting_started.md | 2 +- docs/my-website/docs/index.md | 2 +- docs/my-website/src/pages/index.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/my-website/docs/getting_started.md b/docs/my-website/docs/getting_started.md index 13118fd46..cc485c401 100644 --- a/docs/my-website/docs/getting_started.md +++ b/docs/my-website/docs/getting_started.md @@ -64,7 +64,7 @@ More details 👉 LiteLLM maps exceptions across all supported providers to the OpenAI exceptions. 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. ```python -from openai.errors import OpenAIError +from openai.error import OpenAIError from litellm import completion os.environ["ANTHROPIC_API_KEY"] = "bad-key" diff --git a/docs/my-website/docs/index.md b/docs/my-website/docs/index.md index f34f8e977..7d3a9f093 100644 --- a/docs/my-website/docs/index.md +++ b/docs/my-website/docs/index.md @@ -297,7 +297,7 @@ for chunk in response: LiteLLM maps exceptions across all supported providers to the OpenAI exceptions. 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. ```python -from openai.errors import OpenAIError +from openai.error import OpenAIError from litellm import completion os.environ["ANTHROPIC_API_KEY"] = "bad-key" diff --git a/docs/my-website/src/pages/index.md b/docs/my-website/src/pages/index.md index d472bff21..1abd77567 100644 --- a/docs/my-website/src/pages/index.md +++ b/docs/my-website/src/pages/index.md @@ -275,7 +275,7 @@ response = completion( LiteLLM maps exceptions across all supported providers to the OpenAI exceptions. 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. ```python -from openai.errors import OpenAIError +from openai.error import OpenAIError from litellm import completion os.environ["ANTHROPIC_API_KEY"] = "bad-key"