test(test_caching.py): fix test to check id

This commit is contained in:
Krrish Dholakia
2024-02-02 18:01:43 -08:00
parent a79f92533f
commit 93e8a9ff91
+1 -4
View File
@@ -95,10 +95,7 @@ def test_caching_with_cache_controls():
)
print(f"response1: {response1}")
print(f"response2: {response2}")
assert (
response2["choices"][0]["message"]["content"]
!= response1["choices"][0]["message"]["content"]
)
assert response2["id"] != response1["id"]
message = [{"role": "user", "content": f"Hey, how's it going? {uuid.uuid4()}"}]
## TTL = 5
response1 = completion(