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"