test(test_completion.py): fix test

This commit is contained in:
Krrish Dholakia
2024-02-06 13:29:31 -08:00
parent 79c225a60f
commit fa5f4b9774
2 changed files with 4 additions and 4 deletions
+4 -3
View File
@@ -211,9 +211,10 @@ litellm_settings:
The proxy support 3 cache-controls:
- `ttl`: Will cache the response for the user-defined amount of time (in seconds).
- `s-maxage`: Will only accept cached responses that are within user-defined range (in seconds).
- `no-cache`: Will not return a cached response, but instead call the actual endpoint.
- `ttl`: *Optional(int)* - Will cache the response for the user-defined amount of time (in seconds).
- `s-maxage`: *Optional(int)* Will only accept cached responses that are within user-defined range (in seconds).
- `no-cache`: *Optional(bool)* Will not return a cached response, but instead call the actual endpoint.
- `no-store`: *Optional(bool)* Will not cache the response.
[Let us know if you need more](https://github.com/BerriAI/litellm/issues/1218)
-1
View File
@@ -565,7 +565,6 @@ def test_completion_openai():
assert len(response_str) > 1
litellm.api_key = None
raise Exception("it works!")
except Timeout as e:
pass
except Exception as e: