diff --git a/docs/my-website/docusaurus.config.js b/docs/my-website/docusaurus.config.js index 1ff9956bf..865bcb446 100644 --- a/docs/my-website/docusaurus.config.js +++ b/docs/my-website/docusaurus.config.js @@ -114,7 +114,7 @@ const config = { position: 'right', value: ` - Feedback + I'm Confused ` }, ], diff --git a/litellm/__pycache__/__init__.cpython-311.pyc b/litellm/__pycache__/__init__.cpython-311.pyc index e65faa9a7..a670e0d25 100644 Binary files a/litellm/__pycache__/__init__.cpython-311.pyc and b/litellm/__pycache__/__init__.cpython-311.pyc differ diff --git a/litellm/__pycache__/utils.cpython-311.pyc b/litellm/__pycache__/utils.cpython-311.pyc index 2b97701e7..cf6dbf096 100644 Binary files a/litellm/__pycache__/utils.cpython-311.pyc and b/litellm/__pycache__/utils.cpython-311.pyc differ diff --git a/litellm/tests/test_exceptions.py b/litellm/tests/test_exceptions.py index 6320b7131..b3a262638 100644 --- a/litellm/tests/test_exceptions.py +++ b/litellm/tests/test_exceptions.py @@ -45,6 +45,7 @@ def test_context_window(model): with pytest.raises(ContextWindowExceededError): completion(model=model, messages=messages) +test_context_window(model="gpt-3.5-turbo") # Test 2: InvalidAuth Errors @pytest.mark.parametrize("model", models) def invalid_auth(model): # set the model key to an invalid key, depending on the model diff --git a/litellm/utils.py b/litellm/utils.py index b77a927fb..9b4aad5e7 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -2062,6 +2062,10 @@ def exception_type( ): global user_logger_fn, liteDebuggerClient exception_mapping_worked = False + print() + print("\033[1;31mGive Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new\033[0m") + print() + print() if litellm.set_verbose == True: litellm.error_logs['EXCEPTION'] = original_exception litellm.error_logs['KWARGS'] = completion_kwargs