mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
test(test_streaming.py): add exception mapping for palm timeout error
This commit is contained in:
parent
acae98fd50
commit
e07cf33cba
2 changed files with 10 additions and 0 deletions
|
@ -392,6 +392,8 @@ def test_completion_palm_stream():
|
|||
if complete_response.strip() == "":
|
||||
raise Exception("Empty response received")
|
||||
print(f"completion_response: {complete_response}")
|
||||
except litellm.Timeout as e:
|
||||
pass
|
||||
except litellm.APIError as e:
|
||||
pass
|
||||
except Exception as e:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue