add support message on exception

This commit is contained in:
Krrish Dholakia 2023-09-26 17:48:24 -07:00
parent c1fce0859c
commit eb1c7220ff
5 changed files with 6 additions and 1 deletions

View file

@ -114,7 +114,7 @@ const config = {
position: 'right', position: 'right',
value: value:
`<a href=# class=navbar__link data-fr-widget> `<a href=# class=navbar__link data-fr-widget>
Feedback I'm Confused
</a>` </a>`
}, },
], ],

View file

@ -45,6 +45,7 @@ def test_context_window(model):
with pytest.raises(ContextWindowExceededError): with pytest.raises(ContextWindowExceededError):
completion(model=model, messages=messages) completion(model=model, messages=messages)
test_context_window(model="gpt-3.5-turbo")
# Test 2: InvalidAuth Errors # Test 2: InvalidAuth Errors
@pytest.mark.parametrize("model", models) @pytest.mark.parametrize("model", models)
def invalid_auth(model): # set the model key to an invalid key, depending on the model def invalid_auth(model): # set the model key to an invalid key, depending on the model

View file

@ -2062,6 +2062,10 @@ def exception_type(
): ):
global user_logger_fn, liteDebuggerClient global user_logger_fn, liteDebuggerClient
exception_mapping_worked = False 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: if litellm.set_verbose == True:
litellm.error_logs['EXCEPTION'] = original_exception litellm.error_logs['EXCEPTION'] = original_exception
litellm.error_logs['KWARGS'] = completion_kwargs litellm.error_logs['KWARGS'] = completion_kwargs