forked from phoenix/litellm-mirror
(test) custom logger + cache
This commit is contained in:
parent
ab90a66a8e
commit
e49af2272d
1 changed files with 2 additions and 3 deletions
|
@ -317,12 +317,11 @@ def test_redis_cache_completion_stream():
|
|||
response_2_content += chunk.choices[0].delta.content or ""
|
||||
print("\nresponse 1", response_1_content)
|
||||
print("\nresponse 2", response_2_content)
|
||||
assert response_1_content == response_2_content, f"Response 1 != Response 2. Same params, Response 1{response_1_content} != Response 2{response_2_content}"
|
||||
assert response1.id == response2.id, f"Response 1 != Response 2. Same params, Response 1{response1.id} != Response 2{response2.id}"
|
||||
litellm.success_callback = []
|
||||
litellm._async_success_callback = []
|
||||
litellm.cache = None
|
||||
except Exception as e:
|
||||
print(e)
|
||||
litellm.success_callback = []
|
||||
raise e
|
||||
pytest.fail(f"Error occurred: {e}")
|
||||
raise e
|
Loading…
Add table
Add a link
Reference in a new issue