forked from phoenix/litellm-mirror
add support message on exception
This commit is contained in:
parent
c1fce0859c
commit
eb1c7220ff
5 changed files with 6 additions and 1 deletions
|
@ -114,7 +114,7 @@ const config = {
|
|||
position: 'right',
|
||||
value:
|
||||
`<a href=# class=navbar__link data-fr-widget>
|
||||
Feedback
|
||||
I'm Confused
|
||||
</a>`
|
||||
},
|
||||
],
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue